Nektar++
|
Functions | |
def | euler |
def | writefile |
def | show_usage |
def | fix_divide_by_zero |
Variables | |
tuple | pycml_path = os.path.dirname(os.path.realpath(__file__)) |
string | profile_name = '/tmp/pycml-profile-%f-%d' |
def CellMLToNektar.CellMLToNektar.euler | ( | doc, | |
t, | |||
nsteps = 1000 , |
|||
dt = 0.01 |
|||
) |
Definition at line 66 of file CellMLToNektar.py.
def CellMLToNektar.CellMLToNektar.fix_divide_by_zero | ( | doc | ) |
Several models have equations of a form that may give rise to a divide by zero error on simulation, especially when lookup tables are used. The general form is: (a * (V - v0)) / (exp(b * (V - v0)) - 1) When V = v0 this is undefined, however the limit of the function as V approaches v0 from either side is well-defined, and each limit is the same. We approximate the limit by linear interpolation between values of the expression for (V-v0) = +/- 1e-10.
Definition at line 97 of file CellMLToNektar.py.
def CellMLToNektar.CellMLToNektar.show_usage | ( | doc | ) |
Definition at line 91 of file CellMLToNektar.py.
def CellMLToNektar.CellMLToNektar.writefile | ( | doc, | |
outfn = 'test.cml' |
|||
) |
Definition at line 84 of file CellMLToNektar.py.
Referenced by Nektar::FieldUtils::OutputFld.Process(), and Nektar::FieldUtils::OutputPts.Process().
string CellMLToNektar.CellMLToNektar.profile_name = '/tmp/pycml-profile-%f-%d' |
Definition at line 58 of file CellMLToNektar.py.
tuple CellMLToNektar.CellMLToNektar.pycml_path = os.path.dirname(os.path.realpath(__file__)) |
Definition at line 44 of file CellMLToNektar.py.