-
Notifications
You must be signed in to change notification settings - Fork 148
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:
![Screenshot from 2024-05-06 17-41-15](https://private-user-images.githubusercontent.com/31960871/328138380-f4917f10-1761-470d-8e40-3b679708d66f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQwNTI3NTAsIm5iZiI6MTcyNDA1MjQ1MCwicGF0aCI6Ii8zMTk2MDg3MS8zMjgxMzgzODAtZjQ5MTdmMTAtMTc2MS00NzBkLThlNDAtM2I2Nzk3MDhkNjZmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE5VDA3MjczMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNlZWY5NDI0YmQwNDk0OWM5YTkxYWVjOTA0NWU5ZDAxNWUwY2IyOGEwZTM2ZGM3N2UwNDA5NzUzOGZlNzUxYzcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.-5e3s4zPvGT-nnk2WN-rCS3s4EoDmDGud9pZlY5AdVs)
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: