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

24 views
Skip to first unread message

hkch...@gmail.com

unread,
Apr 27, 2022, 9:39:36 AM4/27/22
to deal.II User Group
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

Wolfgang Bangerth

unread,
Apr 27, 2022, 1:37:28 PM4/27/22
to dea...@googlegroups.com
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: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

SebG

unread,
Apr 27, 2022, 1:41:33 PM4/27/22
to deal.II User Group
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

Wolfgang Bangerth

unread,
Apr 27, 2022, 1:48:56 PM4/27/22
to dea...@googlegroups.com

hkch...@gmail.com

unread,
Apr 28, 2022, 9:53:24 AM4/28/22
to deal.II User Group
Thank you, Wolfgang Bangerth and  SebG
I mean  (i) how to output the boundary id of faces into the vtk file. I want to look up my results only on some boundary ids or material ids.
And This URL is helpful to me!
Best
Chen
Reply all
Reply to author
Forward
0 new messages