Creates and returns an esys.weipa dataset consisting of a Domain and Data objects. The returned object provides methods to access and export data.
esys.weipa does not support the function spaces Solution and ReducedSolution. This function interpolates Data defined on those function spaces to compatible alternatives.
Writes Data objects and their mesh to a file using the SILO file format.
Example:
temp=Scalar(..)
v=Vector(..)
saveSilo("solution.silo", temperature=temp, velocity=v)
temp and v are written to “solution.silo” where temp is named “temperature” and v is named “velocity”.
Parameters: |
|
---|---|
Note : | All data objects have to be defined on the same domain but they may be defined on separate FunctionSpace s. |
Writes Data objects and their mesh to a file using the VTK XML file format.
Example:
temp=Scalar(..)
v=Vector(..)
saveVTK("solution.vtu", temperature=temp, velocity=v)
temp and v are written to “solution.vtu” where temp is named “temperature” and v is named “velocity”.
Meta tags, e.g. a timeStamp, can be added to the file, for instance:
tmp=Scalar(..)
v=Vector(..)
saveVTK("solution.vtu", temperature=tmp, velocity=v,
metadata="<timeStamp>1.234</timeStamp>",
metadata_schema={"gml":"http://www.opengis.net/gml"})
The argument metadata_schema allows the definition of name spaces with a schema used in the definition of meta tags.
Parameters: |
|
---|---|
Note : | All data objects have to be defined on the same domain. They may not be in the same FunctionSpace but not all combinations of FunctionSpace s can be written to a single VTK file. Typically, data on the boundary and on the interior cannot be mixed. |