Boundary elements using extrude in gmsh

Bug #1827298 reported by Louise Olsen-Kettle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
esys-escript
New
Undecided
Unassigned

Bug Description

When I use extrude for a 2D surface in gmsh to create a volume the mesh does not seem to have a boundary on the extruded surface in eScript.

I am attaching a plot of the boundary elements created using:

mydomain=ReadGmsh('meshselfsimilar.msh',3)
test_boundary=Scalar(1.,FunctionOnBoundary(mydomain))
saveVTK("Test_boundary.vtu",test_boundary=test_boundary)

Is there a way to ensure gmsh saves the boundary surfaces of the extruded volume using command Extrude in gmsh?

Revision history for this message
Louise Olsen-Kettle (lokettle) wrote :
Revision history for this message
Lutz Gross (l-gross) wrote :

The top surface and potentially all other surfaces need to be added as "Physical Surface" to the geometry otherwise the surface elements are not written into the mesh file.

It should work in the follwoing way:

out[] = Extrude { ... } { };

Physical Surface("top") = { out[0] }

PS: The "out[]"- list is explained in https://fossies.org/linux/gmsh/tutorial/t3.geo

Revision history for this message
Louise Olsen-Kettle (lokettle) wrote :

Thanks Lutz, what happens if you tag the same surface twice with two different physical tags - is this a problem?

For example I have complex holes and filling in the mesh i'm trying to create and the same line is extruded for surfaces to create volumes that are adjacent to each other. Is this a problem?

Revision history for this message
Lutz Gross (l-gross) wrote :

first question: I am not so sure if this is a problem. The question is which tag is finally used.

second question: Not sure I do understand the question. I assume you want to have an internal boundary between the volumes (something like continuous displacement and normal stress)?

Revision history for this message
Louise Olsen-Kettle (lokettle) wrote :

Thanks Lutz, I have solved it and what I thought was a problem is not a problem. Sorry for that.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.