Addon modules

Addon modules of Morphosolver.

morphosolver.addons.growthfunctions

class morphosolver.addons.growthfunctions.GrowthFunctionBase(tissue)[source]

Base of the growth function (\(\mathcal{G}\)). Operates on the groth tensor G of a tissue, such that: \(\mathbf{G}(t+\delta t) = \mathbf{G}(t)(\mathcal{G}(t) dt + \mathbf{I})\)

Parameters:tissue (TissueBase) – A tissue to operate on
updateG(dt)[source]

Update the G tensor of a tissue.

Parameters:dt (float) – Timestep
class morphosolver.addons.growthfunctions.AnisoGrowthFunction(tissue)[source]

Anisotropic growth function. \(\mathcal{G} = g_0\mathbf{I} + (g_1-g_0)\gamma \otimes \gamma\)

where \(g_0 = g(1-a)\), \(g_1 = g(1+2a)\)

\(3g\) is relative volumetric expansion

\(a\) is anisotropy constant in range [0,1]

\(\gamma\) is an anisotropy vector

Parameters:tissue (TissueBase) – A tissue to operate on
projectAGG(a = dolfin.Constant(0.0), g = dolfin.Constant(0.0), gamma = dolfin.Constant([0, 0, 1]))[source]

Calculate and project growth function from given \(a\), \(g\) and \(\gamma\) values