Applying boundary Id in Gmsh ; tethex

42 views
Skip to first unread message

HIMAL MAGAR

unread,
Feb 26, 2023, 9:26:32 PM2/26/23
to deal.II User Group
Warm greetings, 
I want to set boundary id on a geometry in gmsh and read it in deal.ii. I have done the followings:
1 . I have imported my geometry .STEP in gmsh. 
2 . Assigned elementary tag and physical surface "name" in the geometry section,
3 . Meshed 
4 . when this file is imported in gmsh, error pops up saying,"negative volume"
5 . so I used tethex for re-ordering, and the code reads the mesh,
6 . but I found out that tethex removes the physical ids and replaces it with 0.
Please tell me how to achieve this, or where I am going wrong!
Thank You.
P.s. in step-49,
geo th.jpg
but in my .geo file, it is written as  (" "), i.e.,
geo we.jpg 
has this anything to do with the problem?

Wolfgang Bangerth

unread,
Mar 3, 2023, 2:34:04 PM3/3/23
to dea...@googlegroups.com
On 2/26/23 19:26, HIMAL MAGAR wrote:
> I want to set boundary id on a geometry in gmsh and read it in deal.ii. I have
> done the followings:
> 1 . I have imported my geometry .STEP in gmsh.
> 2 . Assigned elementary tag and physical surface "name" in the geometry section,

You will generally want to use numbers instead of strings for the names.
deal.II uses numbers, not strings, and doesn't know what to do with them.


> 3 . Meshed
> 4 . when this file is imported in gmsh, error pops up saying,"negative volume"

Is this in gmsh? Or did you mean to say deal.II?

Best
W.

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


Reply all
Reply to author
Forward
0 new messages