MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / get_density

Method get_density

tools/Assembler/Materials/PeriodicMaterial.cpp:31–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31Float PeriodicMaterial::get_density(VectorF coord) const {
32 size_t mat_idx = choose_material(coord);
33 return m_materials[mat_idx]->get_density(coord);
34}
35
36Float PeriodicMaterial::get_density() const {
37 throw RuntimeError("Please specify a coordinate to get mixed material density.");

Callers

nothing calls this directly

Calls 1

RuntimeErrorClass · 0.85

Tested by

no test coverage detected