|
PolyFEM
|
Used for test only. More...
Namespaces | |
| namespace | detail |
Typedefs | |
| template<typename T > | |
| using | DefGradMatrix = Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic, 0, 3, 3 > |
| template<typename T > | |
| using | AutoDiffGradMat = Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic, 0, 3, 3 > |
| template<typename T > | |
| using | AutoDiffVect = Eigen::Matrix< T, Eigen::Dynamic, 1 > |
Enumerations | |
| enum class | AutodiffType { FULL , STRESS , NONE } |
| enum class | BoundaryKind { Dirichlet , Neumann , NormalAlignedNeumann , PressureCavity } |
Functions | |
| Eigen::MatrixXd | read_growth_cell_array (const io::ResourceIO &resources, const std::string &path, const std::string &field, const int ncomp_expected) |
| Mixed (displacement, growth) assembler implementing the correction energy of finite areal growth of a thin wall: | |
| template<int dim> | |
| Eigen::Matrix< double, dim, dim > | hat (const Eigen::Matrix< double, dim, 1 > &x) |
| template<int dim> | |
| Eigen::Matrix< double, dim, 1 > | cross (const Eigen::Matrix< double, dim, 1 > &x, const Eigen::Matrix< double, dim, 1 > &y) |
Variables | |
| constexpr const char * | MATERIAL_ELEMENT_INDEX = "__polyfem_material_element_index" |
Used for test only.
| using polyfem::assembler::AutoDiffGradMat = typedef Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic, 0, 3, 3> |
Definition at line 12 of file MooneyRivlin3ParamSymbolic.hpp.
| using polyfem::assembler::AutoDiffVect = typedef Eigen::Matrix<T, Eigen::Dynamic, 1> |
Definition at line 14 of file MooneyRivlin3ParamSymbolic.hpp.
| using polyfem::assembler::DefGradMatrix = typedef Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic, 0, 3, 3> |
Definition at line 19 of file GenericElastic.hpp.
|
strong |
| Enumerator | |
|---|---|
| FULL | |
| STRESS | |
| NONE | |
Definition at line 11 of file GenericElastic.hpp.
|
strong |
| Enumerator | |
|---|---|
| Dirichlet | |
| Neumann | |
| NormalAlignedNeumann | |
| PressureCavity | |
Definition at line 15 of file Problem.hpp.
| Eigen::Matrix< double, dim, 1 > polyfem::assembler::cross | ( | const Eigen::Matrix< double, dim, 1 > & | x, |
| const Eigen::Matrix< double, dim, 1 > & | y | ||
| ) |
Definition at line 405 of file NeoHookeanElasticity.cpp.
Referenced by polyfem::utils::are_triangles_coplanar(), polyfem::utils::TetrahedronClipping::clip(), polyfem::mesh::irregular_triangle(), and polyfem::mesh::is_star_shaped().
| Eigen::Matrix< double, dim, dim > polyfem::assembler::hat | ( | const Eigen::Matrix< double, dim, 1 > & | x | ) |
Definition at line 388 of file NeoHookeanElasticity.cpp.
References x.
| Eigen::MatrixXd polyfem::assembler::read_growth_cell_array | ( | const io::ResourceIO & | resources, |
| const std::string & | path, | ||
| const std::string & | field, | ||
| const int | ncomp_expected | ||
| ) |
Mixed (displacement, growth) assembler implementing the correction energy of finite areal growth of a thin wall:
W = J^g * psi_e(Fe) - psi_e(F), Fe = F * inv(Fg), Fg = sqrt(theta) * (I - n0 x n0) + vn * n0 x n0, J^g = theta * vn,
with theta the scalar growth field (the psi-space DOF, interpolated at quadrature points), n0 the reference wall normal (per-element data), and vn the prescribed normal growth component (default 1: pure in-plane growth; a per-element field prescribes thickening or thinning).
The subtraction of psi_e(F) makes this an additive correction: the standard elastic form on the displacement block stays registered unchanged, and at theta == 1, vn == 1 the correction is identically zero (bitwise: both energy calls see the same def_grad), so an ungrown body reproduces the plain elastic material exactly.
psi_e is the fitted MaterialSum composition, re-composed here from concrete child materials (see GrowthElasticity.cpp) because SumModel's type-erased children expose no templated energy; the children's templated elastic_energy bodies are reused verbatim.
Follows the structure of ThermoElasticity (the in-tree precedent for a displacement/scalar mixed correction assembler). Read one CELL_DATA array of a legacy ASCII VTK (VECTORS, SCALARS or FIELD layout) as an (n_cells x ncomp_expected) matrix. Shared by the assembler (normal_direction, normal_growth) and the growth VarForm (growth_law threshold), so per-element growth data has one reader.
Definition at line 528 of file GrowthElasticity.cpp.
References polyfem::io::ResourceIO::describe(), and polyfem::io::ResourceIO::open().
Referenced by polyfem::assembler::detail::GrowthElasticityModel::add_multimaterial(), and polyfem::varform::GrowthElasticVarForm::compute_growth_node_weights().
|
inlineconstexpr |
Definition at line 10 of file MatParams.hpp.
Referenced by polyfem::assembler::LameParameters::add_multimaterial(), polyfem::assembler::Density::add_multimaterial(), polyfem::assembler::GenericMatParam::add_multimaterial(), polyfem::assembler::GenericMatParams::add_multimaterial(), polyfem::assembler::detail::GrowthElasticityModel::add_multimaterial(), polyfem::assembler::SumModel::add_multimaterial(), and polyfem::assembler::detail::ThermoElasticityModelImpl< Elasticity >::add_multimaterial().