Nektar++
|
Public Member Functions | |
def | independent_variable (self) |
def | dependent_variable (self) |
Public Member Functions inherited from CellMLToNektar.pycml.mathml_operator | |
def | wrong_number_of_operands (self, found, wanted) |
Public Member Functions inherited from CellMLToNektar.pycml.mathml | |
def | __init__ (self) |
def | __repr__ (self) |
def | __deepcopy__ (self, memo) |
def | clone_self (self, register=False) |
def | get_original_of_clone (self) |
def | get_component (self) |
def | model (self) |
def | eval (self, elt) |
Public Member Functions inherited from CellMLToNektar.pycml.element_base | |
def | __init__ (self) |
def | __delattr__ (self, key) |
def | __setattr__ (self, key, value) |
def | rootNode (self) |
def | cmeta_id (self) |
def | xml_remove_child_at (self, index=-1) |
def | xml_doc (self) |
def | xml_properties (self) |
Static Public Member Functions | |
def | create_new (elt, bvar, state_var, rhs) |
Static Public Member Functions inherited from CellMLToNektar.pycml.mathml | |
def | clone (expr) |
Private Member Functions | |
def | _set_var_types (self) |
def | _get_binding_time (self) |
def | _reduce (self) |
Additional Inherited Members | |
Public Attributes inherited from CellMLToNektar.pycml.element_base | |
xml_attributes | |
Properties inherited from CellMLToNektar.pycml.mathml | |
component = property(get_component) | |
Class representing the diff element, containing some useful methods.
|
private |
Return the binding time of the enclosing <apply> element. This is the binding time of the expression defining this ODE.
Definition at line 5483 of file pycml.py.
References CellMLToNektar.pycml.mathml_diff.dependent_variable(), and CellMLToNektar.pycml.mathml_diff.independent_variable().
Referenced by CellMLToNektar.pycml.mathml_ci._reduce(), CellMLToNektar.pycml.mathml_apply._reduce(), CellMLToNektar.pycml.mathml_piecewise._reduce(), CellMLToNektar.pycml.cellml_variable.get_value(), and CellMLToNektar.pycml.cellml_variable.is_statically_const().
|
private |
Reduce this expression by evaluating its static parts. If the whole expression is static, proceed as normal for an <apply>. Otherwise just rename the variable references. We can't instantiate the definition, because there will always be another user - external code. This operator is special cased because we need to alter its qualifier, but mathml_apply only considers operands. MathML data binding can be annoying at times!
Definition at line 5492 of file pycml.py.
|
private |
Set the types of the dependent & independent variables: State for the dependent variable and Free for the independent variable. Gives a validation warning if they already have 'incompatible' types.
Definition at line 5441 of file pycml.py.
References CellMLToNektar.pycml.mathml_diff.dependent_variable(), and CellMLToNektar.pycml.mathml_diff.independent_variable().
|
static |
Construct an ODE expression: d(state_var)/d(bvar) = rhs.
Definition at line 5516 of file pycml.py.
def CellMLToNektar.pycml.mathml_diff.dependent_variable | ( | self | ) |
Return the variable object being differentiated.
Definition at line 5431 of file pycml.py.
Referenced by CellMLToNektar.pycml.mathml_diff._get_binding_time(), and CellMLToNektar.pycml.mathml_diff._set_var_types().
def CellMLToNektar.pycml.mathml_diff.independent_variable | ( | self | ) |
Return the variable object w.r.t which we are differentiating.
Definition at line 5419 of file pycml.py.
Referenced by CellMLToNektar.pycml.mathml_diff._get_binding_time(), and CellMLToNektar.pycml.mathml_diff._set_var_types().