|
The Open FUSION Toolkit 1.0.0-beta6
Modeling tools for plasma and fusion research and engineering
|
Class containing data for a single mesh from OFT plot files.
Public Member Functions | |
| __init__ (self, mesh_obj) | |
| Read in data and setup object. | |
| get_field (self, name, time=None, timestep=None) | |
| Get raw data associated with field at a given time or timestep. | |
| get_pyvista_grid (self) | |
| Get pyvista representation of grid. | |
Public Attributes | |
| lc = numpy.asarray(mesh_obj['LC']) | |
| nc = self.lc.shape[0] | |
| np = self.r.shape[0] | |
| r = numpy.asarray(mesh_obj['R']) | |
| dict | static_fields = {} |
| list | time_field_names = [] |
| list | time_fields = [] |
| list | times = [] |
| int | type = mesh_obj['TYPE'][()] |
| __init__ | ( | self, | |
| mesh_obj ) |
Read in data and setup object.
| mesh_obj | HDF5 group corresponding to mesh (file needs to be open) |
| get_field | ( | self, | |
| name, | |||
| time = None, | |||
| timestep = None ) |
Get raw data associated with field at a given time or timestep.
| name | Name of field |
| time | Time value to evaluate field (linear interpolation) |
| timestep | Timestep index to retrieve |
| get_pyvista_grid | ( | self | ) |
Get pyvista representation of grid.
| lc = numpy.asarray(mesh_obj['LC']) |
| nc = self.lc.shape[0] |
| np = self.r.shape[0] |
| r = numpy.asarray(mesh_obj['R']) |
| dict static_fields = {} |
| list time_field_names = [] |
| list time_fields = [] |
| list times = [] |
| int type = mesh_obj['TYPE'][()] |