public class MembraneDiffusion extends ConcentrationBasedModule<UpdatableDeltaFunction>
Membranes driven by the
MembranePermeability of the cargo. The cargo molecules are crossing a membrane from one side to the other side.
The flux of concentration is determined by terms of
JM = Pd * A * (c1 - c2)where Pd is the
MembranePermeability, A is the area of the membrane, and c1 and c2 are the concentrations on
both sides of the membrane; as in:
Stein, Wilfred. Transport and diffusion across cell membranes. Elsevier, 2012.This concentration based module applies
SemiDependentUpdates and is UpdatableSpecific.
// define the feature to parametrize the diffusion
MembranePermeability membranePermeability = new MembranePermeability(Quantities.getQuantity(3.5E-03, CENTIMETRE_PER_SECOND),
FeatureOrigin.MANUALLY_ANNOTATED);
// assign it to the chemical entity
SmallMolecule water = new SmallMolecule.Builder("water")
.assignFeature(membranePermeability)
.build();
// create the module
MembraneDiffusion.inSimulation(simulation)
.cargo(water)
.build();| Modifier and Type | Class and Description |
|---|---|
static interface |
MembraneDiffusion.BuildStep |
static interface |
MembraneDiffusion.CargoStep |
static class |
MembraneDiffusion.MembraneDiffusionBuilder |
supplier| Constructor and Description |
|---|
MembraneDiffusion() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize() |
static MembraneDiffusion.CargoStep |
inSimulation(Simulation simulation) |
String |
toString() |
addDeltaFunction, addModuleToSimulation, addReferencedEntities, addReferencedEntity, calculateUpdates, checkFeatures, deltaIsValid, determineLargestLocalError, getApplicationCondition, getDeltaCutoff, getErrorCutoff, getFeature, getFeatures, getIdentifier, getReferencedEntities, getRequiredFeatures, getScaledFeature, getScaledFeature, getScope, getSimulation, getSpecificity, getState, getStringForProtocol, getSupplier, handleDelta, listFeatures, onCompletion, onReset, optimizeTimeStep, resetState, scaleScalableFeatures, setApplicationCondition, setDeltaCutoff, setErrorCutoff, setFeature, setIdentifier, setSimulationpublic static MembraneDiffusion.CargoStep inSimulation(Simulation simulation)
public void initialize()
public String toString()
toString in class ConcentrationBasedModule<UpdatableDeltaFunction>Copyright © 2018. All rights reserved.