Re: [deal.II] how to set the boundary name day and output to the file.

2022-10-28 Thread Technical Forex
I read in the uvn file generated by salome mesh with gridin. But it gives
me the following error . Attachment please find the unv file. I couldn't
find what caused the error.

terminate called after throwing an instance of
'dealii::StandardExceptions::ExcIO'
 what():

An error occurred in line <864> of file
 in function
   void dealii::GridIn::read_unv(std::istream&) [with int
dim = 2; int spacedim = 2; std::istream = std::basic_istream]
The violated condition was:
   in.fail() == false


Wolfgang Bangerth  于2022年10月29日周六 00:47写道:

> On 10/28/22 10:31, ztdepyahoo wrote:
> > I want to set the boundary coordinates of
> > the GridGenerator::hyper_cube(triangulation).
>
> Well, have you looked at the documentation of the function?
>
> https://dealii.org/developer/doxygen/deal.II/namespaceGridGenerator.html#acea0cbcd68e52ce8113d1134b87de403
> And at the other functions that are in that namespace, for example the
> hyper_rectangle function mentioned in the documentation linked to above?
>
> Best
>   W.
>
>
> --
> 
> Wolfgang Bangerth  email: bange...@colostate.edu
> www: http://www.math.colostate.edu/~bangerth/
>
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see
> https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "deal.II User Group" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/dealii/kcEiqmBrmug/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/c757517b-c21e-7833-b2fb-e1473b369bc1%40colostate.edu
> .
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/CANsL%3DkurbdLE5Hj8%2B7i7b7BLfPLawpGx-Z0LkURP-tm%2BC6%3D0HA%40mail.gmail.com.


3x3.unv
Description: Binary data


Re: [deal.II] how to set the boundary name day and output to the file.

2022-10-28 Thread Wolfgang Bangerth

On 10/28/22 10:31, ztdepyahoo wrote:
I want to set the boundary coordinates of 
the GridGenerator::hyper_cube(triangulation).


Well, have you looked at the documentation of the function?
https://dealii.org/developer/doxygen/deal.II/namespaceGridGenerator.html#acea0cbcd68e52ce8113d1134b87de403
And at the other functions that are in that namespace, for example the 
hyper_rectangle function mentioned in the documentation linked to above?


Best
 W.


--

Wolfgang Bangerth  email: bange...@colostate.edu
   www: http://www.math.colostate.edu/~bangerth/

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/c757517b-c21e-7833-b2fb-e1473b369bc1%40colostate.edu.


Re: [deal.II] how to set the boundary name day and output to the file.

2022-10-28 Thread ztdepyahoo






I want to set the boundary coordinates of the GridGenerator::hyper_cube(triangulation). 






 


ztdepyahooztdepya...@gmail.com


 

  
 Replied Message 
  
  

  

 From 


Wolfgang Bangerth


  
  

 Date 


10/29/2022 00:30

  
  

 To 


 
  


  

  
  

 Subject 


  Re: [deal.II] how to set the boundary name day and output to the file.

  

  
  On 10/28/22 09:54, ztdepyahoo wrote: Thanks, how to set the 4 corner nodes coordates of  a square domain.This is too short of a question. You've got to be more clear about what you're asking since I have no idea what the problem is :-)Best  W.-- Wolfgang Bangerth  email: bange...@colostate.eduwww: http://www.math.colostate.edu/~bangerth/-- The deal.II project is located at http://www.dealii.org/For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en--- You received this message because you are subscribed to a topic in the Google Groups "deal.II User Group" group.To unsubscribe from this topic, visit https://groups.google.com/d/topic/dealii/kcEiqmBrmug/unsubscribe.To unsubscribe from this group and all its topics, send an email to dealii+unsubscr...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/9474a841-5ee8-336d-75d7-51dd7f9f506e%40colostate.edu.








-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/E420A909-717A-4C14-A076-15469B5D5DFB%40gmail.com.


Re: [deal.II] how to set the boundary name day and output to the file.

2022-10-28 Thread Wolfgang Bangerth

On 10/28/22 09:54, ztdepyahoo wrote:

Thanks, how to set the 4 corner nodes coordates of  a square domain.


This is too short of a question. You've got to be more clear about what 
you're asking since I have no idea what the problem is :-)


Best
 W.

--

Wolfgang Bangerth  email: bange...@colostate.edu
   www: http://www.math.colostate.edu/~bangerth/

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/9474a841-5ee8-336d-75d7-51dd7f9f506e%40colostate.edu.


[deal.II] deal.II Newsletter #231

2022-10-28 Thread 'Rene Gassmoeller' via deal.II User Group
Hello everyone!

This is deal.II newsletter #231.
It automatically reports recently merged features and discussions about the 
deal.II finite element library.


## Below you find a list of recently proposed or merged features:

#14377: Move cuda to nvcc wrapper kokkos (proposed by masterleinad) 
https://github.com/dealii/dealii/pull/14377

#14376: fe_index: added changelog. (proposed by marcfehling) 
https://github.com/dealii/dealii/pull/14376

#14374: Fix dimension selection in COMSOL mphtxt reader. (proposed by bangerth; 
merged) https://github.com/dealii/dealii/pull/14374

#14371: Generalize precompilation of TensorProductMatrixSymmetricSum (proposed 
by peterrum) https://github.com/dealii/dealii/pull/14371

#14370: Rename process_dof_gather() to process_dofs() (proposed by peterrum) 
https://github.com/dealii/dealii/pull/14370

#14369: Fix assert message (proposed by peterrum; merged) 
https://github.com/dealii/dealii/pull/14369

#14367: Fix documentation misprint, modulus should be norm. (proposed by 
simonsticko) https://github.com/dealii/dealii/pull/14367

#14366: TensorProductMatrix: with arbitrary number of lanes (proposed by 
peterrum) https://github.com/dealii/dealii/pull/14366

#14365: Make Kokkos a required dependency and bundle Kokkos 3.7.00 (proposed by 
masterleinad) https://github.com/dealii/dealii/pull/14365

#14364: [WIP] Catch exceptions in consensus algorithm (proposed by gassmoeller) 
https://github.com/dealii/dealii/pull/14364

#14349: SolverGMRES: add classical Gram-Schmidt (proposed by peterrum; merged) 
https://github.com/dealii/dealii/pull/14349

#14225: Adjust interface in 'dofs' folder to new datatype 'types::fe_index'. 
(proposed by marcfehling; merged) https://github.com/dealii/dealii/pull/14225


## And this is a list of recently opened or closed discussions:

#14375: Missing library name(s) for IntelMKL in FindSCALAPACK (opened) 
https://github.com/dealii/dealii/issues/14375

#14373: Impossible to build dealii (Trilinos problem) on Macbook pro with M1Pro 
(opened and closed) https://github.com/dealii/dealii/issues/14373

#14372: Question about cmake Tpetra detection (opened) 
https://github.com/dealii/dealii/issues/14372

#14368: Epetra, Tpetra, and MueLu (opened) 
https://github.com/dealii/dealii/issues/14368

#14363: Missing cmake policy CMP0074 for use of -DBOOST_DIR (opened) 
https://github.com/dealii/dealii/issues/14363

#14358: dealii:when i use Gmsh to generate .msh file, Number of 
coupling nodes: 0 (closed) https://github.com/dealii/dealii/issues/14358


A list of all major changes since the last release can be found at 
https://www.dealii.org/developer/doxygen/deal.II/recent_changes.html.


Thanks for being part of the community!


Let us know about questions, problems, bugs or just share your experience by 
writing to dealii@googlegroups.com, or by opening issues or pull requests at 
https://www.github.com/dealii/dealii.
Additional information can be found at https://www.dealii.org/.

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/635bfc97.1c0a0220.f9852.18caSMTPIN_ADDED_MISSING%40gmr-mx.google.com.


Re: [deal.II] how to set the boundary name day and output to the file.

2022-10-28 Thread ztdepyahoo






Thanks, how to set the 4 corner nodes coordates of  a square domain. 







 


ztdepyahooztdepya...@gmail.com


 

  
 Replied Message 
  
  

  

 From 


Wolfgang Bangerth


  
  

 Date 


10/28/2022 22:41

  
  

 To 


 
  


  

  
  

 Subject 


  Re: [deal.II] how to set the boundary name day and output to the file.

  

  
  On 10/28/22 04:37, ztdep...@gmail.com wrote: **  I am running the first example "first_grid". I want to know does deal.ii  support the defination of the boundary name and output  it to a readable file. I have output the grid to ucd  file , but no boundary infors are stored in the  ucd file.   Could you please give me some advices.You might want to read through the documentation of the GridOut class. There are ways to also output boundary indicators, at least for some formats, via the various *Flags data structures.Best  W.-- Wolfgang Bangerth  email: bange...@colostate.eduwww: http://www.math.colostate.edu/~bangerth/-- The deal.II project is located at http://www.dealii.org/For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en--- You received this message because you are subscribed to a topic in the Google Groups "deal.II User Group" group.To unsubscribe from this topic, visit https://groups.google.com/d/topic/dealii/kcEiqmBrmug/unsubscribe.To unsubscribe from this group and all its topics, send an email to dealii+unsubscr...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/5f719963-7586-9676-76a5-fa371103d438%40colostate.edu.








-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/F8DB0AAE-A9CE-4D25-92C6-77DEC8FDA079%40gmail.com.


Re: [deal.II] Will locally_relevant_dofs be needed when reinit a vector?

2022-10-28 Thread Wolfgang Bangerth

On 10/28/22 00:50, 'yy.wayne' via deal.II User Group wrote:
I have a question that if ghost_indices should be past to a vector's reinit? 
In step-40 and line 89 of this test 
, 
system_rhs and solution are reinit with reinit(local_dofs, mpi_communicator) 
only. But in line 95 of that test 
, 
we need ghost_indices as argument. That's same for one of my code, where I 
found a bug because I didn't use locally_relevant_dofs when reinit a 
system_rhs. To reduce mistakes, should vectors always be reinit with 
ghost_indices then ?


No. The question is whether you need ghost elements in the vector or not, and 
that is typically a question on whether you need to *read* individual entries. 
When you build the right hand side and when you call a solver to compute the 
solution vector, we use "completely distributed vectors" that do not have 
ghost elements. When you want to output the solution graphically, however, you 
need to be able to read individual vector elements also for ghost entries, and 
so then you need the locally relevant dofs. Vectors with ghost elements are 
read-only.


Best
 W.


--

Wolfgang Bangerth  email: bange...@colostate.edu
   www: http://www.math.colostate.edu/~bangerth/

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/74232844-3e6d-2be1-7216-f3cf8e319422%40colostate.edu.


Re: [deal.II] how to set the boundary name day and output to the file.

2022-10-28 Thread Wolfgang Bangerth

On 10/28/22 04:37, ztdep...@gmail.com wrote:

**

I am running the first example "first_grid". I want to know does deal.ii 
support the defination of the boundary name and output  it to a readable file.
I have output the grid to ucd  file , but no boundary infors are stored in the 
ucd file.

  Could you please give me some advices.


You might want to read through the documentation of the GridOut class. There 
are ways to also output boundary indicators, at least for some formats, via 
the various *Flags data structures.


Best
 W.

--

Wolfgang Bangerth  email: bange...@colostate.edu
   www: http://www.math.colostate.edu/~bangerth/

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/5f719963-7586-9676-76a5-fa371103d438%40colostate.edu.


[deal.II] how to set the boundary name day and output to the file.

2022-10-28 Thread ztdep...@gmail.com
I am running the first example "first_grid". I want to know does deal.ii 
support the defination of the boundary name and output  it to a readable 
file. 
I have output the grid to ucd  file , but no boundary infors are stored in 
the ucd file. 
 Could you please give me some advices.

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/7d8ab1f8-ca7a-4be1-9dd4-4a6bceb32818n%40googlegroups.com.


[deal.II] Will locally_relevant_dofs be needed when reinit a vector?

2022-10-28 Thread 'yy.wayne' via deal.II User Group
I have a question that if ghost_indices should be past to a vector's 
reinit? In step-40 and line 89 of this test 
,
 
system_rhs and solution are reinit with reinit(local_dofs, 
mpi_communicator) only. But in line 95 of that test 
,
 
we need ghost_indices as argument. That's same for one of my code, where I 
found a bug because I didn't use locally_relevant_dofs when reinit a 
system_rhs. To reduce mistakes, should vectors always be reinit with 
ghost_indices then ?

Thank you

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/a6f7c108-040e-418a-81cb-38a719eef8fcn%40googlegroups.com.