public class StickyWalker extends Walker
Modifier and Type | Field and Description |
---|---|
boolean |
free
are we in the bulk or stuck to a the surface?
|
double |
lastStickTime
the last time we got stuck
|
int |
numSticks
counts the number of times we get stuck to the surface
|
double |
totalTimeStuck
total time stuck
|
boolean |
wasExtracellular
flag to say whether the spin was initially extracellular or intracellular
|
Constructor and Description |
---|
StickyWalker(double[] r0)
test constructor with unspecified stick state, assumes
unstuck.
|
StickyWalker(double[] r0,
StepGenerator freeStepGen,
StepGenerator surfaceStepGen,
Substrate substrate,
SyntheticScan scan,
java.io.DataOutputStream trajWriter,
boolean free,
double p_unstick)
main constructor.
|
StickyWalker(double[] r0,
StepGenerator stepGen,
Substrate substrate,
boolean free)
test constructor with specified stick state.
|
Modifier and Type | Method and Description |
---|---|
void |
getSubsCoords(double[] subsCoords) |
static void |
main(java.lang.String[] args) |
void |
update(double t,
int ti,
int n)
update walkers position.
|
getDisplacement, getLogMagnetisation, getPhaseShift, makeStep, testReplacePositionVector, toString
public boolean free
public boolean wasExtracellular
public int numSticks
public double lastStickTime
public double totalTimeStuck
public StickyWalker(double[] r0, StepGenerator freeStepGen, StepGenerator surfaceStepGen, Substrate substrate, SyntheticScan scan, java.io.DataOutputStream trajWriter, boolean free, double p_unstick)
r0
- initial positionfreeStepGen
- step generator for when diffusing in the bulksurfaceStepGen
- step gen for when bound on the surfacesubstrate
- substrate we're diffusing inscan
- measurement moduletrajWriter
- trajectories writer if presentfree
- flag saying if we're stuck to a surface or notpublic StickyWalker(double[] r0, StepGenerator stepGen, Substrate substrate, boolean free)
r0
- initial positionfree
- are we stuck?public StickyWalker(double[] r0)
r0
- initial position