-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem when load msh file #1035
Comments
And is it possible to directly change the vertex coordinate of a mesh and simulate it again? |
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")
Labeled cells are available as 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. |
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.
The text was updated successfully, but these errors were encountered: