|
PolyFEM
|
#include <MatParams.hpp>
Public Member Functions | |
| Density () | |
| virtual | ~Density ()=default |
| virtual bool | is_constant () const |
| Each material entry is independent of coordinates, time and index. | |
| virtual bool | is_time_dependent () const |
| virtual void | add_multimaterial (const int index, const json ¶ms, const std::string &density_unit, const io::ResourceIO &resources) |
| virtual double | operator() (double px, double py, double pz, double x, double y, double z, double t, int el_id) const |
| virtual double | operator() (const Eigen::MatrixXd ¶m, const Eigen::MatrixXd &p, double t, int el_id) const |
Private Member Functions | |
| void | set_rho (const json &rho) |
Private Attributes | |
| std::vector< utils::ExpressionValue > | rho_ |
| std::size_t | nonconstant_count_ = 0 |
| std::size_t | time_dependent_count_ = 0 |
Definition at line 116 of file MatParams.hpp.
| polyfem::assembler::Density::Density | ( | ) |
Definition at line 529 of file MatParams.cpp.
References rho_.
|
virtualdefault |
|
virtual |
Reimplemented in polyfem::assembler::NoDensity, and polyfem::assembler::ThermalMassDensity.
Definition at line 556 of file MatParams.cpp.
References polyfem::assembler::MATERIAL_ELEMENT_INDEX, nonconstant_count_, rho_, and time_dependent_count_.
Referenced by polyfem::assembler::NavierStokesFSIVelocity::add_multimaterial(), and polyfem::assembler::NavierStokesFSIInertia::add_multimaterial().
|
virtual |
Each material entry is independent of coordinates, time and index.
Densities may differ between materials. Custom evaluators must override these queries.
Reimplemented in polyfem::assembler::NoDensity, and polyfem::assembler::ThermalMassDensity.
Definition at line 535 of file MatParams.cpp.
References nonconstant_count_.
Referenced by polyfem::assembler::Mass::assemble().
|
virtual |
Reimplemented in polyfem::assembler::NoDensity, and polyfem::assembler::ThermalMassDensity.
Definition at line 540 of file MatParams.cpp.
References time_dependent_count_.
Referenced by polyfem::assembler::RhsAssembler::is_rhs_time_dependent().
|
inlinevirtual |
Definition at line 130 of file MatParams.hpp.
|
virtual |
Reimplemented in polyfem::assembler::NoDensity, and polyfem::assembler::ThermalMassDensity.
Definition at line 545 of file MatParams.cpp.
|
private |
|
private |
Definition at line 143 of file MatParams.hpp.
Referenced by add_multimaterial(), and is_constant().
|
private |
Definition at line 142 of file MatParams.hpp.
Referenced by add_multimaterial(), Density(), and operator()().
|
private |
Definition at line 144 of file MatParams.hpp.
Referenced by add_multimaterial(), and is_time_dependent().