MEDYAN.chem_newfilament!
Tuple{MEDYAN.Context}
Return the filament id of a new filament.
Error if the filament isn’t initially over 2 monomers long.
Newly added filaments don’t have decimated_2mon sites, until after minimization.
Keyword Arguments
ftid=1
: filament type id.monomerstates
: Collection of theMonomerState
of the monomers in the new filament. In order from minus end to plus end.length(monomerstates)>1
nodepositions
: Collection ofSVector{3,Float64}
. The positions of the nodes, monomers are between nodes.node_mids
: Collection ofInteger
. The monomer ids at (slightly plus side of) thenodepositions
| -----+-----|-----+----- minus end <---- M | M | (M) | M ----> plus end -----+-----|-----+----- | ^ A nodeposition is indicated by the line.
The monomer id with parenthesis (M) will in
node_mids
length(node_mids) == length(nodepositions) - 1
endloadforces=(0.0=>0.0)
: end load forces, usually don’t use this, because load forces will automatically get updated at the next minimization.