CoordinateSet

A subclass of np.ndarray that lives in an explicit coordinate system and can convert between them

 

__new__(cls, coords, system=CoordinateSystem(Cartesian3D, dimension=(None, 3), matrix=None), converter_options=None): 

 

__init__(self, coords, system=CoordinateSystem(Cartesian3D, dimension=(None, 3), matrix=None), converter_options=None): 

 

__array_finalize__(self, coords): 

 

__str__(self): 

 

__eq__(self, other): 

 

@property
multiconfig(self): 

Determines whether self.coords represents multiple configurations of the coordinates

  • :returns: _

 

transform(self, tf): 

Applies a transformation to the stored coordinates

  • tf: Any

    the transformation function to apply to the system

  • :returns: _

 

convert(self, system, **kw): 

Converts across coordinate systems

  • system: CoordinateSystem

    the target coordinate system

  • :returns: CoordinateSet

    n e w _ c o o r d s

 

derivatives(self, function, order=1, coordinates=None, result_shape=None, **fd_options): 

Takes derivatives of function with respect to the current geometry

  • function: Any
  • order: Any
  • coordinates: Any
  • fd_options: Any
  • :returns: _

 

jacobian(self, system, order=1, coordinates=None, converter_options=None, all_numerical=False, analytic_deriv_order=None, **fd_options): 

Delegates to the jacobian function of the current coordinate system.

  • system: Any
  • order: Any
  • mesh_spacing: Any
  • prep: Any
  • coordinates: Any
  • fd_options: Any
  • :returns: _

Feedback

Examples

Templates

Documentation