PolyFEM
|
#include <Units.hpp>
Public Member Functions | |
void | init (const json &json) |
const std::string & | length () const |
const std::string & | mass () const |
const std::string & | time () const |
double | characteristic_length () const |
double & | characteristic_length () |
std::string | stress () const |
std::string | density () const |
std::string | velocity () const |
std::string | acceleration () const |
std::string | force () const |
std::string | pressure () const |
std::string | energy () const |
std::string | viscosity () const |
Static Public Member Functions | |
static double | convert (const json &val, const std::string &unit_type) |
static double | convert (const double val, const std::string &unit, const std::string &unit_type) |
Private Attributes | |
std::string | length_ = "m" |
std::string | mass_ = "kg" |
std::string | time_ = "s" |
double | characteristic_length_ = 1 |
|
inline |
Definition at line 28 of file Units.hpp.
References length_, and time_.
Referenced by force(), pressure(), and polyfem::assembler::GenericTensorProblem::set_units().
|
inline |
Definition at line 23 of file Units.hpp.
References characteristic_length_.
|
inline |
Definition at line 22 of file Units.hpp.
References characteristic_length_.
Referenced by polyfem::solver::SolveData::init_forms(), polyfem::State::init_time(), polyfem::State::make_nl_solver(), and polyfem::State::solve_tensor_nonlinear().
|
static |
Definition at line 41 of file Units.cpp.
References polyfem::log_and_throw_error(), and val.
|
static |
Definition at line 31 of file Units.cpp.
References convert(), and val.
Referenced by polyfem::State::build_basis(), convert(), polyfem::State::init_time(), polyfem::mesh::read_fem_mesh(), and polyfem::mesh::read_obstacle_mesh().
|
inline |
Definition at line 26 of file Units.hpp.
References length_, and mass_.
Referenced by polyfem::assembler::Mass::add_multimaterial().
|
inline |
|
inline |
Definition at line 29 of file Units.hpp.
References acceleration(), and mass_.
Referenced by polyfem::assembler::GenericTensorProblem::set_units(), and viscosity().
void polyfem::Units::init | ( | const json & | json | ) |
Definition at line 9 of file Units.cpp.
References characteristic_length_, length_, mass_, and time_.
Referenced by polyfem::State::init().
|
inline |
Definition at line 19 of file Units.hpp.
References length_.
Referenced by polyfem::State::build_basis(), polyfem::mesh::read_fem_mesh(), polyfem::mesh::read_obstacle_mesh(), polyfem::assembler::GenericTensorProblem::set_units(), and polyfem::mesh::Obstacle::set_units().
|
inline |
|
inline |
Definition at line 30 of file Units.hpp.
References acceleration(), length_, and mass_.
Referenced by polyfem::assembler::GenericTensorProblem::set_units().
|
inline |
Definition at line 25 of file Units.hpp.
References length_, mass_, and time_.
Referenced by polyfem::assembler::FixedCorotational::add_multimaterial(), polyfem::assembler::HookeLinearElasticity::add_multimaterial(), polyfem::assembler::IncompressibleLinearElasticityDispacement::add_multimaterial(), polyfem::assembler::IncompressibleLinearElasticityPressure::add_multimaterial(), polyfem::assembler::LinearElasticity::add_multimaterial(), polyfem::assembler::MooneyRivlin3ParamElasticity::add_multimaterial(), polyfem::assembler::MooneyRivlin3ParamSymbolic::add_multimaterial(), polyfem::assembler::MooneyRivlinElasticity::add_multimaterial(), polyfem::assembler::NeoHookeanElasticity::add_multimaterial(), polyfem::assembler::NeoHookeanAutodiff::add_multimaterial(), polyfem::assembler::UnconstrainedOgdenElasticity::add_multimaterial(), polyfem::assembler::IncompressibleOgdenElasticity::add_multimaterial(), and polyfem::assembler::SaintVenantElasticity::add_multimaterial().
|
inline |
Definition at line 21 of file Units.hpp.
References time_.
Referenced by polyfem::State::init_time().
|
inline |
Definition at line 27 of file Units.hpp.
References length_, and time_.
Referenced by polyfem::State::build_basis(), and polyfem::assembler::GenericTensorProblem::set_units().
|
inline |
Definition at line 32 of file Units.hpp.
References force(), length_, and time_.
Referenced by polyfem::assembler::NavierStokesVelocity::add_multimaterial(), and polyfem::assembler::StokesVelocity::add_multimaterial().
|
private |
Definition at line 38 of file Units.hpp.
Referenced by characteristic_length(), characteristic_length(), and init().
|
private |
Definition at line 35 of file Units.hpp.
Referenced by acceleration(), density(), energy(), init(), length(), pressure(), stress(), velocity(), and viscosity().
|
private |
|
private |
Definition at line 37 of file Units.hpp.
Referenced by acceleration(), energy(), init(), stress(), time(), velocity(), and viscosity().