Select Git revision
Get_Geometry.cpp
-
lburger authored
- VolUniDirShell : R is now referenced with respect to a plane which is parralel to the principal 3D axes, but not necessarily passing trhough the origin of the 3D plane. - VolCylShell : Extension of the cylindrical jacobian transformation along the X and Y axis, and not mandatorily along the Z axis. This new Jacobian Type is valid only 3D, as it is for the Jacobian Type VolUniDirShell. - Some modifications may be required so that Get_Geometry.cpp becomes more coherent to these Jacbian Types and avoid redundancies.
lburger authored- VolUniDirShell : R is now referenced with respect to a plane which is parralel to the principal 3D axes, but not necessarily passing trhough the origin of the 3D plane. - VolCylShell : Extension of the cylindrical jacobian transformation along the X and Y axis, and not mandatorily along the Z axis. This new Jacobian Type is valid only 3D, as it is for the Jacobian Type VolUniDirShell. - Some modifications may be required so that Get_Geometry.cpp becomes more coherent to these Jacbian Types and avoid redundancies.
msh_attributes.py 513 B
import gmsh
gmsh.initialize()
gmsh.model.occ.addBox(0,0,0,1,1,1)
gmsh.model.occ.synchronize()
gmsh.model.mesh.generate()
gmsh.model.setAttribute('Comments', ["Hello this is my comment on the block model",
"... and a second comment"])
gmsh.write('block_with_attribute.msh')
gmsh.finalize()
gmsh.initialize()
gmsh.open('block_with_attribute.msh')
for attr in gmsh.model.getAttributeNames():
print('Attribute ' + attr + " = ", gmsh.model.getAttribute(attr))
gmsh.finalize()