Nektar++
|
Public Member Functions | |
def | __init__ |
def | __repr__ |
def | __deepcopy__ |
def | clone_self |
def | get_original_of_clone |
def | get_component |
def | model |
def | eval |
Public Member Functions inherited from CellMLToNektar.pycml.element_base | |
def | __init__ |
def | __delattr__ |
def | __setattr__ |
def | rootNode |
def | cmeta_id |
def | xml_remove_child_at |
def | xml_doc |
def | xml_properties |
Static Public Member Functions | |
def | clone |
Properties | |
component = property(get_component) | |
Private Member Functions | |
def | _unset_cached_links |
def | _ensure_units_exist |
Private Attributes | |
_cml_component | |
_cml_model | |
_cml_source_expr_for_clone | |
Additional Inherited Members | |
Public Attributes inherited from CellMLToNektar.pycml.element_base | |
xml_attributes | |
def CellMLToNektar.pycml.mathml.__init__ | ( | self | ) |
def CellMLToNektar.pycml.mathml.__deepcopy__ | ( | self, | |
memo | |||
) |
|
private |
Ensure that there is an element in the XML tree giving this expression's units. Add a new <units> element if this expression has generated units. If units is not None, use the given units rather than those of this expression. Return an attribute dictionary with the appropriate units attribute.
Definition at line 3807 of file pycml.py.
References CellMLToNektar.pycml.extract(), CellMLToNektar.pycml.cellml_variable.get_units(), CellMLToNektar.pycml.mathml_cn.get_units(), CellMLToNektar.pycml.mathml_ci.get_units(), CellMLToNektar.pycml.mathml_apply.get_units(), and CellMLToNektar.pycml.mathml_piecewise.get_units().
Referenced by CellMLToNektar.pycml.mathml_constructor._eval_self().
|
private |
Forget cached component and variable references in this MathML tree. Used by partial evaluator when moving maths to a new component, and by simulation protocols.
Definition at line 3767 of file pycml.py.
References CellMLToNektar.pycml.mathml._unset_cached_links().
Referenced by CellMLToNektar.pycml.mathml._unset_cached_links().
|
static |
def CellMLToNektar.pycml.mathml.clone_self | ( | self, | |
register = False |
|||
) |
def CellMLToNektar.pycml.mathml.eval | ( | self, | |
elt | |||
) |
Evaluate the given element. Tries to evaluate the given element, and raises an EvaluationError if this is not possible.
Definition at line 3791 of file pycml.py.
Referenced by CellMLToNektar.pycml.mathml_piecewise._get_binding_time(), CellMLToNektar.pycml.mathml_and._get_binding_time(), CellMLToNektar.pycml.mathml_or._get_binding_time(), CellMLToNektar.pycml.mathml_piecewise._reduce(), CellMLToNektar.pycml.mathml_power._reduce(), CellMLToNektar.pycml.mathml_piecewise.evaluate(), CellMLToNektar.pycml.mathml_plus.evaluate(), CellMLToNektar.pycml.mathml_minus.evaluate(), CellMLToNektar.pycml.mathml_times.evaluate(), CellMLToNektar.pycml.mathml_divide.evaluate(), CellMLToNektar.pycml.mathml_exp.evaluate(), CellMLToNektar.pycml.mathml_ln.evaluate(), CellMLToNektar.pycml.mathml_log.evaluate(), CellMLToNektar.pycml.mathml_abs.evaluate(), CellMLToNektar.pycml.mathml_power.evaluate(), CellMLToNektar.pycml.mathml_root.evaluate(), CellMLToNektar.pycml.mathml_and.evaluate(), CellMLToNektar.pycml.mathml_or.evaluate(), CellMLToNektar.pycml.mathml_leq.evaluate(), CellMLToNektar.pycml.mathml_lt.evaluate(), CellMLToNektar.pycml.mathml_geq.evaluate(), CellMLToNektar.pycml.mathml_gt.evaluate(), CellMLToNektar.pycml.mathml_neq.evaluate(), CellMLToNektar.pycml.mathml_eq.evaluate(), CellMLToNektar.pycml.mathml_rem.evaluate(), CellMLToNektar.pycml.mathml_logbase.evaluate(), CellMLToNektar.pycml.mathml_degree.evaluate(), CellMLToNektar.pycml.mathml_sin.evaluate(), CellMLToNektar.pycml.mathml_cos.evaluate(), CellMLToNektar.pycml.mathml_tan.evaluate(), CellMLToNektar.pycml.mathml_arcsin.evaluate(), CellMLToNektar.pycml.mathml_arccos.evaluate(), CellMLToNektar.pycml.mathml_arctan.evaluate(), and CellMLToNektar.pycml.mathml_apply.get_units().
def CellMLToNektar.pycml.mathml.get_component | ( | self | ) |
Definition at line 3747 of file pycml.py.
References CellMLToNektar.pycml.mathml._cml_component.
def CellMLToNektar.pycml.mathml.get_original_of_clone | ( | self | ) |
If this is a clone with a registered original expression, return it. Otherwise returns None.
Definition at line 3740 of file pycml.py.
References CellMLToNektar.pycml.mathml._cml_source_expr_for_clone.
def CellMLToNektar.pycml.mathml.model | ( | self | ) |
Cache & return the enclosing model element.
Definition at line 3785 of file pycml.py.
References CellMLToNektar.pycml.mathml._cml_model.
Referenced by CellMLToNektar.pycml.mathml_apply.get_units().
|
private |
Definition at line 3686 of file pycml.py.
Referenced by CellMLToNektar.pycml.mathml.get_component().
|
private |
Definition at line 3687 of file pycml.py.
Referenced by CellMLToNektar.pycml.mathml.model().
|
private |
Definition at line 3688 of file pycml.py.
Referenced by CellMLToNektar.pycml.mathml.get_original_of_clone().
|
static |