WARPXM v1.10.0
Loading...
Searching...
No Matches
warpy.variable.variable Class Reference
Inheritance diagram for warpy.variable.variable:

Detailed Description

See also
WmVariable
unstructuredArray

Public Member Functions

def __init__ (self, name, components, explodable=True, basis_array_set=None, subdomains=None, virtual_subdomains=None, phase_space_basis_array_set=None, v_space_num_elements=None)
 
def components (self, with_varname=False, stage=None, others=None)
 Gets the list of components in this variable.
 
def name (self, stage=None)
 Gets the name of this variable.
 
def __repr__ (self)
 Give variables a readable string representation.
 

Public Attributes

 subdomains
 
 explodable
 

Constructor & Destructor Documentation

◆ __init__()

def warpy.variable.variable.__init__ (   self,
  name,
  components,
  explodable = True,
  basis_array_set = None,
  subdomains = None,
  virtual_subdomains = None,
  phase_space_basis_array_set = None,
  v_space_num_elements = None 
)
Parameters
namevariable name
componentslist of components in this variable
explodableTrue to explode this variable with RK stages
BasisArraySetDG Basis array set name
subdomainsphysical subdomains this variable exists on
virtual_subdomainssubdomains this variable is allocated for, but don't physically exist on

Member Function Documentation

◆ __repr__()

def warpy.variable.variable.__repr__ (   self)

Give variables a readable string representation.

For use in debugging.

◆ components()

def warpy.variable.variable.components (   self,
  with_varname = False,
  stage = None,
  others = None 
)

Gets the list of components in this variable.

Parameters
with_varnameTrue to prepend variable name
stagewhat stage to use for

◆ name()

def warpy.variable.variable.name (   self,
  stage = None 
)

Gets the name of this variable.

Parameters
stageNone to get the base name, else a number to get the exploded RK stage name

Member Data Documentation

◆ explodable

warpy.variable.variable.explodable

◆ subdomains

warpy.variable.variable.subdomains

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