FEM: gmsh, new interpolation parameter, add missing code (thanks to _UR)
This commit is contained in:
@@ -723,6 +723,17 @@ class GmshTools():
|
||||
geo.write("\n")
|
||||
geo.write("// mesh order\n")
|
||||
geo.write("Mesh.ElementOrder = " + self.order + ";\n")
|
||||
if self.order == "2":
|
||||
if hasattr(self.mesh_obj, "SecondOrderLinear") and self.mesh_obj.SecondOrderLinear is True:
|
||||
geo.write(
|
||||
"Mesh.SecondOrderLinear = 1; // Second order nodes are created "
|
||||
"by linear interpolation instead by curvilinear\n"
|
||||
)
|
||||
else:
|
||||
geo.write(
|
||||
"Mesh.SecondOrderLinear = 0; // Second order nodes are created "
|
||||
"by linear interpolation instead by curvilinear\n"
|
||||
)
|
||||
geo.write("\n")
|
||||
|
||||
geo.write(
|
||||
@@ -757,16 +768,6 @@ class GmshTools():
|
||||
geo.write("Coherence Mesh; // Remove duplicate vertices\n")
|
||||
else:
|
||||
geo.write("Mesh " + self.dimension + ";\n")
|
||||
if hasattr(self.mesh_obj, "SecondOrderLinear") and self.mesh_obj.SecondOrderLinear is True:
|
||||
geo.write(
|
||||
"Mesh.SecondOrderLinear = 1; // Second order nodes are created "
|
||||
"by linear interpolation instead by curvilinear\n"
|
||||
)
|
||||
else:
|
||||
geo.write(
|
||||
"Mesh.SecondOrderLinear = 0; // Second order nodes are created "
|
||||
"by linear interpolation instead by curvilinear\n"
|
||||
)
|
||||
geo.write("\n")
|
||||
|
||||
# save mesh
|
||||
|
||||
Reference in New Issue
Block a user