Mesh

A general Mesh class representing data points in n-dimensions in either a structured or unstructured manner

Properties and Methods

get_npoints: method
get_gridpoints: method
get_mesh_subgrids: method
get_mesh_spacings: method
get_mesh_type: method
RegularMesh: method

 

__new__(cls, data, mesh_type=None): 
  • griddata: np.ndarray

    the raw grid-point data the mesh uses

  • mesh_type: None | str

    the type of mesh we have

  • opts: Any

    No description…

 

__init__(self, *args, **kwargs): 

 

__array_finalize__(self, mesh): 

 

@property
mesh_spacings(self): 

 

@property
subgrids(self): 

 

@property
dimension(self): 

Returns the dimension of the grid (not necessarily ndim)

  • :returns: int

    No description…

 

@property
npoints(self): 

Returns the number of gridpoints in the mesh

  • :returns: int

    No description…

 

@property
gridpoints(self): 

Returns the flattened set of gridpoints for a structured tensor grid and otherwise just returns the gridpoints

  • :returns: _

    No description…

 

get_slice_iter(self, axis=-1): 

Returns an iterator over the slices of the mesh along the specified axis

  • axis: Any

    No description…

  • :returns: _

    No description…

Examples


Edit Examples or Create New Examples
Edit Template or Create New Template
Edit Docstrings