Core modules¶
The core modules of morphosolver.
morphosolver.core.tissuebase¶
-
class
morphosolver.core.tissuebase.TissueBase(mesh0=<sphinx.ext.autodoc.importer._MockObject object>, params={})[source]¶ TissueBase defines the problem geometry and mechanics. It is a base class, where
init()andupdate()functions should be overridden by the derived class.Parameters: - mesh0 (
dolfin.Mesh) – A mesh of the initial condition - params (
dict) – A dictionary of parameters
-
init()[source]¶ Virtual initialisation function. It ss only run once before the start of the simulation.
- mesh0 (
morphosolver.core.simulator¶
-
class
morphosolver.core.simulator.Simulator(tissue, outputDir='/home/docs/checkouts/readthedocs.org/user_builds/morphosolver/checkouts/latest/docs/source')[source]¶ Handles running the simulation of the problem defined by a
morphosolver.core.tissuebase.TissueBaseobjectParameters: - tissue (
morphosolver.core.tissuebase.TissueBase) – tissue to simulate - outputDir (
str) – path to an output directotry, defaults to the current workind directory
- tissue (
morphosolver.core.chemical¶
-
class
morphosolver.core.chemical.Chemical(tissue, name)[source]¶ Bases:
morphosolver.core.util.SmartFunctionChemical defines a concentration field which can be subject to diffusion and user-specified reaction.
Parameters: - tissue (
morphosolver.core.tissuebase.TissueBase) – the host - name (
str) – Name of the chemical
- tissue (
morphosolver.core.util¶
Collection of the utility functions.
-
class
morphosolver.core.util.SmartFunction(name, functionSpace0=None, function=None, functionSpace=None)[source]¶ Smart function is a derivative of the
dolfin.Functionwith an extended functionality. It allows to specify two function spaces (dolfin.FunctionSpace) for both an initial and current conditions. The state of the Smart functions are automatically saved at each simulation step to theoutputDirParameters: - name (
str) – Name of the function. The name is used for a filename, where the function state will be saved. - functionSpace0 (
dolfin.FunctionSpace) – Function space of the initial condition. - functionSpace (
dolfin.FunctionSpace) – Function space of the current condition. Either supplied at the initialisation or is derived from the suppliedfunction.
- name (