public class NetDiffuser extends java.lang.Object implements DiffusionCalculator
diffuse
from its NetDiffuser on the instance.Modifier and Type | Field and Description |
---|---|
(package private) int |
icall |
(package private) static int |
IERROR |
(package private) static int |
IOK |
(package private) OrderedNetMap |
orderedNetMap |
Constructor and Description |
---|
NetDiffuser(NetStructure dnetprop)
creates and initialises a CcNetDiffuser for any diffusive nets sharing the
same diffusiveNetProperties.
|
Modifier and Type | Method and Description |
---|---|
void |
advance(NetState difnet,
DiffusibleQuantity dq,
Timestep tstep)
Run the diffusion calculation for the supplied network, diffusible
quantity and timestep.
|
private void |
calculateFixedNodeCurrents(NetMapNode[] node) |
private int |
fullNetDiffuse(OrderedNetMap ordNM,
double dt) |
void |
init(NetStructure dnetprop)
initialise the internal mapping of the network geometry.
|
void |
printNet() |
void |
printNet(NetState ns) |
private int |
sparseNetDiffuse(OrderedNetMap ordNM,
double dt) |
int icall
static final int IOK
static final int IERROR
OrderedNetMap orderedNetMap
public NetDiffuser(NetStructure dnetprop)
dnetprop
- the shared properties for nets to be handled by this diffuser.public void init(NetStructure dnetprop)
init
in interface DiffusionCalculator
dnetprop
- the shared properties for nets to be handled by this diffuser.public void printNet()
public void printNet(NetState ns)
public void advance(NetState difnet, DiffusibleQuantity dq, Timestep tstep)
getValue(DiffusibleQuantity)
and set after the calculation
with setValue(DiffusibleQuantity, double)
advance
in interface DiffusionCalculator
difnet
- the DiffusiveNet to evolve. Note that its properties object must
be the same as that used to initialise the net diffuser.dq
- the diffusible quantity to use. One net may contain several
different diffusing quantitites - membrane potential, ions,
indicators and others. NB as yet dq is ignored ***timestep
- the timestep to be takenprivate int fullNetDiffuse(OrderedNetMap ordNM, double dt)
private int sparseNetDiffuse(OrderedNetMap ordNM, double dt)
private void calculateFixedNodeCurrents(NetMapNode[] node)
Copyright © 2013. All Rights Reserved.