Open bladesaber opened 2 months ago
And is it possible to directly change the vertex coordinate of a mesh and simulate it again?
- When I load an msh file created by the GMSH package through Fipy.Gmsh2D class, it throws an error below:
FiPy is only able to read MSH file format 2. The .msh file you have here is version 4.1
You can load the .geo file, though:
mesh = fp.Gmsh2D("model.geo")
- Is it possible to use the physical group ID of the msh file in Fipy?Gmsh2D?
Labeled cells are available as mesh.physicalCells
and labeled faces as mesh.physicalFaces
, e.g.,
cellvar = fp.CellVariable(mesh=mesh)
cellvar.setValue(1., where=mesh.physicalCells['surface1'])
inflow1 = fp.FaceVariable(mesh=mesh, rank=1, value=mesh.faceNormals * mesh.physicalFaces['inflow1'])
See the help for Gmsh2D for more information.
Please ask your other two questions separately, preferably as a Discussion.
FiPy is only able to read MSH file format 2. The .msh file you have here is version 4.1
FWIW, this doesn't seem to be documented anywhere. We need to fix that.
Thank you
Reopening until we address the documentation issue
Hello everyone:
When I load an msh file created by the GMSH package through Fipy.Gmsh2D class, it throws an error below:
The related file is provided here:
mesh_files.zip
Is it possible to use the physical group ID of the msh file in Fipy?Gmsh2D?
How can I interpolate the value of some specific points?
Thanks for the whole work and looking forward to your response. Best regards.