MML Examples Page
This is a collection of simple models illustrating the various MML constructs and GUI features.
Return to complete JSim model archives.
| intro_ode |
introductory ODE model
|
MML |
|
|
| intro_extern |
extern variable to provide input to model
|
MML |
|
|
| intro_const |
constraint example
|
MML |
|
|
| intro_unit |
introduction to MML unit conversion
|
MML |
|
|
| intro_alg |
introductory algebraic model
|
MML |
|
|
| units2 |
equivalent to example6a, but with unit conversion off
|
MML |
|
|
| units3 |
adding user-defined units
|
MML |
|
|
| units4 |
transcendental functions require dimensionless args
|
MML |
|
|
| units1 |
1st unit conversion example
|
MML |
|
|
| ode_implicit |
ODEs with implicit IC and state equations
|
MML |
|
|
| ode1 |
radioactive decay
|
MML |
|
|
| ode_order2 |
2nd order ODE: u:t:t = -u
|
MML |
|
|
| ode_serial |
flow through serial compartments
|
MML |
|
|
| ode_parallel |
flow through parallel compartments
|
MML |
|
|
| ode_comp3 |
3 compartment diffusion
|
MML |
|
|
| icbc1 |
IC/BC consistency problem
|
MML |
|
|
| pde2 |
2 codependent PDEs
|
MML |
|
|
| icbc2 |
IC/BC consistency via modified IC
|
MML |
|
|
| icbc3 |
IC/BC consistency via modified BC
|
MML |
|
|
| pde1 |
1st PDE example
|
MML |
|
|
| sum1 |
simple use of sum() operator
|
MML |
|
|
| legacy |
use of legacy sum() and integral() operators
|
MML |
|
|
| integral1 |
2 examples of integral() operator
|
MML |
|
|
| sum2 |
"summing out" one variable domain
|
MML |
|
|
| integral2 |
"integrating out" one variable domain
|
MML |
|
|
| implicit2 |
linear implicit eqns of 2 variables
|
MML |
|
|
| implicit4 |
linear implicit ODE state eqns
|
MML |
|
|
| implicit3 |
linear implicit eqns in ODE ICs
|
MML |
|
|
| implicit6 |
2 bounded non-linear implicit eqns
|
MML |
|
|
| implicit5 |
bounded non-linear implicit eqn
|
MML |
|
|
| implicit1 |
linear implicit eqn in one variable
|
MML |
|
|
| gate3 |
gate opening/closing drives model ODE
|
MML |
|
|
| gate1 |
event models gate opening/closing
|
MML |
|
|
| odedrop |
ODE variable with event-driven discontinuity fudge
|
MML |
|
|
| fibonacci |
event construct for recursive function call
|
MML |
|
|
| gate2 |
ensuring gate openings/closings occur alternately
|
MML |
|
|
| count |
event to count voltages above threshhold
|
MML |
|
|
| jintegral |
calculating integral via java function
|
MML |
|
|
| jreverse |
array reversal via java procedure
|
MML |
|
|
| jmean |
geometric mean via java function
|
MML |
|
|
| reentrant |
F&P reentrant tag for multi-processing support
|
MML |
|
|
| template1 |
simple MML template
|
MML |
|
|
| template3 |
extended template example
|
MML |
|
|
| expdecay |
exponential decay via ODE
|
MML |
|
|
| template2 |
nested template example
|
MML |
|
|
| mfax07 |
mixed mass-balance and fast reactions
|
MML |
|
|
| mfax19 |
recirculating flow with junction
|
MML |
|
|
| mfax06 |
flux-based dimerization
|
MML |
|
|
| mfax10f |
flux-based transport
|
MML |
|
|
| mfax05 |
dimerization with another forced concentration
|
MML |
|
|
| mfax09 |
consumption and production
|
MML |
|
|
| mfax12 |
flow junctions
|
MML |
|
|
| mfax10 |
membrane transport
|
MML |
|
|
| mfax14 |
injection
|
MML |
|
|
| mfax02 |
dimerization
|
MML |
|
|
| mfax17 |
flux-based transport
|
MML |
|
|
| mfax18 |
another flow junction
|
MML |
|
|
| mfax20 |
putting all the pieces together
|
MML |
|
|
| mfax03 |
dimerization with initial conditions
|
MML |
|
|
| mfax15 |
externally controlled injection
|
MML |
|
|
| mfax13 |
recirculating flow
|
MML |
|
|
| mfax01 |
simple MFAX reaction, without units
|
MML |
|
|
| mfax04 |
dimerization with 1 forced concentration
|
MML |
|
|
| mfax11 |
flow source, flow and flow sink
|
MML |
|
|
| mfax16 |
production, reaction with flow
|
MML |
|
|
| deriv3 |
derivative operator applied to complex expression
|
MML |
|
|
| interp1 |
variable interpolation
|
MML |
|
|
| deriv1 |
symbolic derivative
|
MML |
|
|
| hetero |
heterogeneous methods
|
MML |
|
|
| interp6 |
examines linear interpolation accuraccy
|
MML |
|
|
| interp_a05 |
interpolating extern data source
|
MML |
|
|
| startzero |
private variable enforces unchangable parameter
|
MML |
|
|
| rabbit |
using a private variable
|
MML |
|
|
| prop1 |
fma, opd properties
|
MML |
|
|
| inverter |
invert extern voltage
|
MML |
|
|
| summer |
changable input parameters
|
MML |
|
|
| interp2 |
bullet-proof interpolation
|
MML |
|
|
| prop2 |
using double braces for extensive property text
|
MML |
|
|
| square |
private variables vs. input variables
|
MML |
|
|
| opt1 |
Optimization tutorial model
|
MML |
|
|
| sens1 |
Sensitivity analysis tutorial model
|
MML |
|
|
| fgen1 |
function generator tutorial
|
MML |
|
|
| misc_pde4 |
PDE blood-tissue exchange
|
MML |
|
|
| misc6 |
4th order linear forced differential equation
|
MML |
|
|
| misc_pde1 |
PDE blood-tissue exchange
|
MML |
|
|
| misc_pde5 |
PDE blood-tissue exchange
|
MML |
|
|
| misc_pde3 |
PDE blood-tissue exchange
|
MML |
|
|
| misc2 |
Michaelis-Menten transport with non-linear PSg
|
MML |
|
|
| misc_pde2 |
PDE blood-tissue exchange
|
MML |
|
|
| misc3 |
time-varying parameter, Fp, with constant infusion
|
MML |
|
|
| misc4 |
conditional equations for PSg
|
MML |
|
|
Model development and archiving support at
physiome.org provided by the following grants: NIH/NHLBI T15
HL88516-01 Modeling for Heart, Lung and Blood: From Cell to Organ,
4/1/07-3/31/11; NSF BES-0506477 Adaptive Multi-Scale Model Simulation,
8/15/05-7/31/08; NIH/NHLBI R01 HL073598 Core 3: 3D Imaging and Computer
Modeling of the Respiratory Tract, 9/1/04-8/31/09; as well as prior
support from NIH/NCRR P41 RR01243 Simulation Resource in Circulatory Mass
Transport and Exchange, 12/1/1980-11/30/01 and NIH/NIBIB R01 EB001973
JSim: A Simulation Analysis Platform, 3/1/02-2/28/07.