MEDYAN.make_fila!
Tuple{MEDYAN.Context}
Return the tag of the plus tip of the new filament. Error if the filament isn’t initially at least 2 monomers long. Newly added filaments can’t be selected from nearby monomers until after minimization.
Keyword Arguments
type=1: filament type id or symbol.mono_states: Collection of theMonomerStateorSymbolof the monomers in the new filament. In order from minus end to plus end.length(mono_states)>1node_positions: Collection ofSVector{3,Float64}. The positions of the nodes, monomers are between nodes. The filament is straight between consecutive nodes, and the monomers between them are evenly spaced. The first node is at the minus end of the first monomer, and the last node is at the plus end of the last monomer. So for a straight filament at its rest length, the end nodes arelength(mono_states)*spacingapart. The nodes don’t need to be at chem cylinder boundaries; the chem beads are interpolated between them.fila_node_positionsreturns node positions in this format.node_mids: Collection ofInteger. The monomer ids at (slightly plus side of) thenode_positions. The monomer id with parenthesis(M)below will be innode_mids.node_mids[begin]is the id of the first monomer. It can be any integer; the chem cylinder boundaries are at monomer ids that are multiples ofnumpercylinder. Usuallylength(node_mids) == length(node_positions) - 1, because the id at the last node is implied. It can also include that id,node_mids[begin] + length(mono_states), as the last element, solength(node_mids) == length(node_positions).fila_node_midsreturns this form.
minus_end_mat_dir=nothing:SVector{3,Float64}. The mat direction of the minus end node.joint_twists=nothing:Collection ofFloat64`. The extra material frame axial rotation at the joints between the cylinders.tip_load_forces=(0.0=>0.0): tip load forces, usually don’t use this, because load forces will automatically get updated at the next minimization.minus_tip_extension=0.0: tip extension for the minus end in monomer spacings. 0=monomer center. Seefila_tip_extension.plus_tip_extension=0.0: tip extension for the plus end in monomer spacings. 0=monomer center. Seefila_tip_extension.
Example
A straight filament of 3 monomers along the x axis, with its minus end node at the origin, where spacing is the monomer spacing of the filament type:
The monomer centers are at x = 0.5*spacing, 1.5*spacing, and 2.5*spacing. With the default zero tip extensions, the tips are at the end monomer centers, x = 0.5*spacing and x = 2.5*spacing, half a spacing inside the end nodes.