The Open FUSION Toolkit 1.0.0-beta6
Modeling tools for plasma and fusion research and engineering
Loading...
Searching...
No Matches
XDMF_plot_mesh Class Reference

Detailed Description

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'][()]

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
mesh_obj )

Read in data and setup object.

Parameters
mesh_objHDF5 group corresponding to mesh (file needs to be open)

Member Function Documentation

◆ get_field()

get_field ( self,
name,
time = None,
timestep = None )

Get raw data associated with field at a given time or timestep.

Parameters
nameName of field
timeTime value to evaluate field (linear interpolation)
timestepTimestep index to retrieve

◆ get_pyvista_grid()

get_pyvista_grid ( self)

Get pyvista representation of grid.

Returns
pyvista.UnstructuredGrid object for grid

Member Data Documentation

◆ lc

lc = numpy.asarray(mesh_obj['LC'])

◆ nc

nc = self.lc.shape[0]

◆ np

np = self.r.shape[0]

◆ r

r = numpy.asarray(mesh_obj['R'])

◆ static_fields

dict static_fields = {}

◆ time_field_names

list time_field_names = []

◆ time_fields

list time_fields = []

◆ times

list times = []

◆ type

int type = mesh_obj['TYPE'][()]

The documentation for this class was generated from the following file: