Sim.set_forces: def of bend-prot@0.1.0.0 Import: import bend-prot@0.1.0.0/sim.bend as Sim Lines 169-173 of bend-prot@0.1.0.0/sim.bend: https://jend.leeeet.dev/read.txt?path=bend-prot@0.1.0.0/sim.bend&start_line=169&end_line=173 import Base import bend-prot@0.1.0.0/force.bend as F import bend-prot@0.1.0.0/bonded.bend as B # Fresh forces (uniform-LJ with exclusions + Coulomb + bonds) into state. def set_forces(+ds: List<&2, DynAtom>, +qs: List<&2, F32>, +bonds: List<&2, U32>, +p: SimParams) -> List<&2, DynAtom>: match p: case SP{+eps, +sig2, +c2, +ke, +kbond}: dyn_set_force(ds, add_forces(add_forces(B.lj_forces_excl(dyn_atoms(ds), dyn_atoms(ds), eps, sig2, c2, bonds), F.coul_forces(dyn_atoms(ds), qs, dyn_atoms(ds), qs, ke, c2)), B.bond_forces(dyn_atoms(ds), bonds, kbond))) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/bonded.bend&name=bond_forces https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/bonded.bend&name=lj_forces_excl https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/force.bend&name=coul_forces https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/sim.bend&name=DynAtom https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/sim.bend&name=SimParams https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/sim.bend&name=add_forces https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/sim.bend&name=dyn_atoms https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/sim.bend&name=dyn_set_force