Nektar++
|
Public Member Functions | |
def | __init__ (self) |
def | evaluate (self) |
def | get_units (self, return_set=True) |
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, value, units) |
Static Public Member Functions inherited from CellMLToNektar.pycml.mathml | |
def | clone (expr) |
Public Attributes | |
type | |
Public Attributes inherited from CellMLToNektar.pycml.element_base | |
xml_attributes | |
Private Member Functions | |
def | _get_binding_time (self) |
def | _reduce (self) |
Private Attributes | |
_cml_units | |
Additional Inherited Members | |
Properties inherited from CellMLToNektar.pycml.mathml | |
component = property(get_component) | |
def CellMLToNektar.pycml.mathml_cn.__init__ | ( | self | ) |
Reimplemented from CellMLToNektar.pycml.mathml.
Definition at line 4146 of file pycml.py.
References CellMLToNektar.pycml.mathml_cn.__init__().
Referenced by CellMLToNektar.pycml.mathml_cn.__init__().
|
private |
Return the binding time of this expression. The binding time of a <cn> element is always static, unless the CellML is annotated otherwise.
Definition at line 4184 of file pycml.py.
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. Is actually a no-op; we must have been annotated explicitly as dynamic.
Definition at line 4193 of file pycml.py.
|
static |
Create a new <cn> element with the given value and units.
Definition at line 4211 of file pycml.py.
def CellMLToNektar.pycml.mathml_cn.evaluate | ( | self | ) |
Convert the text content of this element to a floating point value and return it. Will handle the type attribute and, if relevant to the type, the sep child element, but does not yet handle the base attribute.
Definition at line 4151 of file pycml.py.
Referenced by CellMLToNektar.pycml.mathml_constructor._eval_self(), and CellMLToNektar.pycml.mathml_ci._reduce().
def CellMLToNektar.pycml.mathml_cn.get_units | ( | self, | |
return_set = True |
|||
) |
Return the units this number is expressed in.
Definition at line 4200 of file pycml.py.
References CellMLToNektar.pycml.cellml_model._cml_units, CellMLToNektar.pycml.cellml_component._cml_units, CellMLToNektar.pycml.mathml_units_mixin_tokens._cml_units, CellMLToNektar.pycml.mathml_units_mixin_container._cml_units, CellMLToNektar.pycml.mathml_cn._cml_units, CellMLToNektar.pycml.mathml_ci._cml_units, CellMLToNektar.pycml.mathml_apply._cml_units, CellMLToNektar.pycml.mathml_piecewise._cml_units, CellMLToNektar.pycml.cellml_variable.component, CellMLToNektar.pycml.mathml.component, CellMLToNektar.pycml.extract(), and CellMLToNektar.pycml.get_units_by_name().
Referenced by CellMLToNektar.pycml.mathml._ensure_units_exist(), CellMLToNektar.pycml.mathml_units_mixin_tokens._set_in_units(), and CellMLToNektar.pycml.mathml_apply._set_in_units().
|
private |
Definition at line 4148 of file pycml.py.
Referenced by CellMLToNektar.pycml.cellml_model._build_units_dictionary(), CellMLToNektar.pycml.cellml_component._build_units_dictionary(), CellMLToNektar.pycml.mathml_apply._set_in_units(), CellMLToNektar.pycml.mathml_piecewise._set_in_units(), CellMLToNektar.pycml.cellml_model.add_units(), CellMLToNektar.pycml.cellml_component.add_units(), CellMLToNektar.pycml.cellml_model.get_all_units(), CellMLToNektar.pycml.cellml_component.get_all_units(), CellMLToNektar.pycml.mathml_apply.get_units(), CellMLToNektar.pycml.mathml_piecewise.get_units(), CellMLToNektar.pycml.mathml_cn.get_units(), CellMLToNektar.pycml.mathml_ci.get_units(), CellMLToNektar.pycml.cellml_model.get_units_by_name(), CellMLToNektar.pycml.cellml_component.get_units_by_name(), and CellMLToNektar.pycml.cellml_model.has_units().