MCPcopy Create free account
hub / github.com/ElectroZybr/LatticeLab / lj_min

Method lj_min

Lattice/Scripting/ScriptAPI.cpp:134–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134float ScriptAPI::lj_min(const std::string& speciesA, const std::string& speciesB) const {
135 const std::optional<AtomData::Type> atomA = findAtomTypeBySymbol(speciesA);
136 const std::optional<AtomData::Type> atomB = findAtomTypeBySymbol(speciesB);
137 if (!atomA.has_value() || !atomB.has_value()) {
138 throw std::runtime_error("scene:lj_min supports atoms only");
139 }
140 return simulation_.lj_min(*atomA, *atomB);
141}
142
143int ScriptAPI::random_fill(const sol::object& regionObject, const sol::object& compositionObject, const sol::object& optionsObject) {
144 const std::unique_ptr<Generators::Region> region = parseRegion(regionObject);

Callers

nothing calls this directly

Calls 1

findAtomTypeBySymbolFunction · 0.70

Tested by

no test coverage detected