PolyFEM
Loading...
Searching...
No Matches
NeoHookeanElasticityAutodiff.cpp
Go to the documentation of this file.
2
4
5namespace polyfem::assembler
6{
10
11 void NeoHookeanAutodiff::add_multimaterial(const int index, const json &params, const Units &units, const io::ResourceIO &resources)
12 {
13 params_.add_multimaterial(index, params, size() == 3, units.stress(), resources);
14 }
15} // namespace polyfem::assembler
DECLARE_DIFFSCALAR_BASE()
std::string stress() const
Definition Units.hpp:27
void add_multimaterial(const int index, const json &params, const bool is_volume, const std::string &stress_unit, const io::ResourceIO &resources)
void add_multimaterial(const int index, const json &params, const Units &units, const io::ResourceIO &resources) override
Read-only interface to a hierarchical collection of simulation resources.
Used for test only.
nlohmann::json json
Definition Common.hpp:9