Sim.energy_sum: def of bend-prot@0.1.0.0 Import: import bend-prot@0.1.0.0/sim.bend as Sim Lines 264-268 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=264&end_line=268 import Base import bend-prot@0.1.0.0/protein.bend as P import bend-prot@0.1.0.0/bonded.bend as B # Reportable potential: excluded uniform LJ + Coulomb + bonds. def energy_sum(+xs: List<&2, P.Atom>, +qs: List<&2, F32>, +bonds: List<&2, U32>, +p: SimParams) -> F32: match p: case SP{+eps, +sig2, +c2, +ke, +kbond}: ((B.lj_total_excl(xs, xs, eps, sig2, c2, bonds) + B.coul_total_excl(xs, qs, xs, qs, ke, c2, bonds) : F32) + B.bond_total(xs, pairs_of_flat(bonds), kbond) : F32) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.add 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_total https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/bonded.bend&name=coul_total_excl https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/bonded.bend&name=lj_total_excl https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/protein.bend&name=Atom 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=pairs_of_flat