PolyFEM
Loading...
Searching...
No Matches
NeoHookeanElasticityAutodiff.cpp
Go to the documentation of this file.
1
#include "
NeoHookeanElasticityAutodiff.hpp
"
2
3
namespace
polyfem::assembler
4
{
5
NeoHookeanAutodiff::NeoHookeanAutodiff
()
6
{
7
}
8
9
void
NeoHookeanAutodiff::add_multimaterial
(
const
int
index,
const
json
¶ms,
const
Units
&units)
10
{
11
params_
.
add_multimaterial
(index, params,
size
() == 3, units.
stress
());
12
}
13
}
// namespace polyfem::assembler
NeoHookeanElasticityAutodiff.hpp
polyfem::Units
Definition
Units.hpp:12
polyfem::Units::stress
std::string stress() const
Definition
Units.hpp:25
polyfem::assembler::Assembler::size
int size() const
Definition
Assembler.hpp:63
polyfem::assembler::LameParameters::add_multimaterial
void add_multimaterial(const int index, const json ¶ms, const bool is_volume, const std::string &stress_unit)
Definition
MatParams.cpp:359
polyfem::assembler::NeoHookeanAutodiff::params_
LameParameters params_
Definition
NeoHookeanElasticityAutodiff.hpp:38
polyfem::assembler::NeoHookeanAutodiff::NeoHookeanAutodiff
NeoHookeanAutodiff()
Definition
NeoHookeanElasticityAutodiff.cpp:5
polyfem::assembler::NeoHookeanAutodiff::add_multimaterial
void add_multimaterial(const int index, const json ¶ms, const Units &units) override
Definition
NeoHookeanElasticityAutodiff.cpp:9
polyfem::assembler
Used for test only.
Definition
AMIPSEnergy.cpp:6
polyfem::json
nlohmann::json json
Definition
Common.hpp:9
src
polyfem
assembler
NeoHookeanElasticityAutodiff.cpp
Generated by
1.9.8