Hello,

I'm using fipy to model heat transport on 2D meshes.  I'd like to be able to
save the mesh into a standard hdf5 file, so that it can be easily read by
non-fipy users to check my simulations, and I'd also like to be able to
directly read the saved file back in and create the appropriate fipy mesh.

>From reviewing the code, it looks like the core class is the Mesh class, and
that the key variables for recreating the original mesh are the vertex
coordinates, the FaceVertexIDs, and the CellFaceIDs.  Which I can easily
retrieve from the mesh I generate and then and store in my hdf5 file.
However I have a couple of problems making this happen.

First, I can't seem to figure out how to import the Mesh class so that I can
pass it this information to re-instance the mesh (assuming this is the right
approach).  Second, while I understand what the vertex coordinates are, the
relationships between the coordinates and the face vertex and cell face IDs
is opaque to me, and I'm hoping someone would explain these to me.  Finally,
if this representation is not a standard, generally recognized method of
depicting a mesh, I should probably convert from these to something more
standard for storage, so that my data will be more comprehensible to
non-fipy users.

Any advice/help/insights on how to best store the mesh info is appreciated.

Best Regards,
Angus Hendrick

Reply via email to