[deal.II] Mark the position in the output result

2022-04-27 Thread hkch...@gmail.com
Hi, everyone.
In input mesh file, I mark some boundaries and materials by some numbers, 1 
to inlet boundary and 2 to outflow boundary for example. But the output 
files MyResults.vtk are not attached by the numbers, in other words, after 
importing the results to Paraview, I select the cell of boundary, but can 
not find the marked ID of 1 for inlet and 2 for outflow boundary?
So, my question is how to output the .vtk results with the mesh marked id?

Bset
Chen

-- 
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/01727fb6-fd55-49fc-9c7a-7f0b334772cfn%40googlegroups.com.


Re: [deal.II] Mark the position in the output result

2022-04-27 Thread Wolfgang Bangerth

On 4/27/22 07:39, hkch...@gmail.com wrote:
In input mesh file, I mark some boundaries and materials by some 
numbers, 1 to inlet boundary and 2 to outflow boundary for example. But 
the output files MyResults.vtk are not attached by the numbers, in other 
words, after importing the results to Paraview, I select the cell of 
boundary, but can not find the marked ID of 1 for inlet and 2 for 
outflow boundary?

So, my question is how to output the .vtk results with the mesh marked id?


Chen:
I'm not sure I completely understand the question. Are you asking (i) 
how to output the boundary id of faces into the vtk file, or (ii) to 
only output information on cells whose faces have a specific boundary id?


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/fd39e8d1-a81d-783c-5de6-b3b91c393c83%40colostate.edu.


Re: [deal.II] Mark the position in the output result

2022-04-27 Thread SebG
Dear Chen,

I don't know whether an output of boundary IDs, cell IDs etc. is possible 
with the DataOut 
 class, but I 
am quite sure that GridOut 
 supports 
this feature.

Best wishes,
Sebastian

hkch...@gmail.com schrieb am Mittwoch, 27. April 2022 um 15:39:36 UTC+2:

> Hi, everyone.
> In input mesh file, I mark some boundaries and materials by some numbers, 
> 1 to inlet boundary and 2 to outflow boundary for example. But the output 
> files MyResults.vtk are not attached by the numbers, in other words, 
> after importing the results to Paraview, I select the cell of boundary, but 
> can not find the marked ID of 1 for inlet and 2 for outflow boundary?
> So, my question is how to output the .vtk results with the mesh marked id?
>
> Bset
> Chen
>

-- 
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/ee9bdb8b-1c65-43fc-a0db-5ccd7f26ad5cn%40googlegroups.com.


Re: [deal.II] Mark the position in the output result

2022-04-27 Thread Wolfgang Bangerth

On 4/27/22 11:41, SebG wrote:


I don't know whether an output of boundary IDs, cell IDs etc. is 
possible with the DataOut 
 
class


Yes, for boundary ids, this will do:
https://github.com/bangerth/helmholtz/blob/master/helmholtz.cc#L696-L747

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/6158e4b4-7bf2-df5b-c48a-b063a8e33d07%40colostate.edu.