public class StickAndDiffuse extends ElasticReflector
Constructor and Description |
---|
StickAndDiffuse(Substrate substrate)
constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
amendStep(Walker walker,
double[] subsCoords,
double[] offset,
double[] step,
double[] normal,
double[] d,
double origLength,
double[] toBarrier,
double[] amended,
double[] unamended,
double[] L,
double t,
int n)
if a walker is free, it sticks it with a fixed prob.
|
public StickAndDiffuse(Substrate substrate)
substrate
- the substratepublic void amendStep(Walker walker, double[] subsCoords, double[] offset, double[] step, double[] normal, double[] d, double origLength, double[] toBarrier, double[] amended, double[] unamended, double[] L, double t, int n)
amendStep
in interface StepAmender
amendStep
in class ElasticReflector
walker
- the walkeroffset
- displacement from walker location to start of stepstep
- the step it wants to makenormal
- the normal of the membraned
- distance of plane from origin (array of length 1)origLength
- the length of the original step before ANY amendmenttoBarrier
- space to store step that will take the walker to the barrier but not through itamended
- space to store amended component of step.unamended
- space to store the step through the barrier.L
- substrate sizet
- current timen
- index of walker