PolyFEM
Loading...
Searching...
No Matches
NeoHookeanElasticityAutodiff.cpp
Go to the documentation of this file.
1
#include "
NeoHookeanElasticityAutodiff.hpp
"
2
3
DECLARE_DIFFSCALAR_BASE
();
4
5
namespace
polyfem::assembler
6
{
7
NeoHookeanAutodiff::NeoHookeanAutodiff
()
8
{
9
}
10
11
void
NeoHookeanAutodiff::add_multimaterial
(
const
int
index,
const
json
¶ms,
const
Units
&units)
12
{
13
params_
.
add_multimaterial
(index, params,
size
() == 3, units.
stress
());
14
}
15
}
// namespace polyfem::assembler
DECLARE_DIFFSCALAR_BASE
DECLARE_DIFFSCALAR_BASE()
NeoHookeanElasticityAutodiff.hpp
polyfem::Units
Definition
Units.hpp:12
polyfem::Units::stress
std::string stress() const
Definition
Units.hpp:27
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:403
polyfem::assembler::NeoHookeanAutodiff::params_
LameParameters params_
Definition
NeoHookeanElasticityAutodiff.hpp:38
polyfem::assembler::NeoHookeanAutodiff::NeoHookeanAutodiff
NeoHookeanAutodiff()
Definition
NeoHookeanElasticityAutodiff.cpp:7
polyfem::assembler::NeoHookeanAutodiff::add_multimaterial
void add_multimaterial(const int index, const json ¶ms, const Units &units) override
Definition
NeoHookeanElasticityAutodiff.cpp:11
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