pymgipsim.VirtualPatient.Models.Multiscale.BodyWeight.Model


Module attributes

time

This module provides various functions to manipulate time values.

class Model(sampling_time)[source]

Bases: BaseModel, UnitConversion

static from_scenario_multiscale(scenario_instance: scenario)[source]

Generate Parameters

static output_equilibrium(parameters: ndarray, inputs: ndarray) ndarray[source]

This calculates the steady state values for each state variable

preprocessing()[source]

This is going to function similar to ‘initialize’ the way I had it before. output_equilibrium does the initial condition calculation so this will just call that static method for this model.

The values in self.initial_conditions can be assigned individually based on that the output_equilibrium (e.g. self.initial_conditions .Sg = 0)