|
PolyFEM
|
utility to create a map of all elastic materials More...
#include <AssemblerUtils.hpp>
Public Member Functions | |
| AllElasticMaterials () | |
| void | set_size (const int size) |
| void | add_multimaterial (const int index, const json ¶ms, const Units &units) |
| std::shared_ptr< assembler::ElasticityNLAssembler > | get_assembler (const std::string &name) const |
| std::map< std::string, Assembler::ParamFunc > | parameters () const |
Private Attributes | |
| std::unordered_map< std::string, std::shared_ptr< assembler::ElasticityNLAssembler > > | elastic_material_map_ |
utility to create a map of all elastic materials
Definition at line 47 of file AssemblerUtils.hpp.
| polyfem::assembler::AllElasticMaterials::AllElasticMaterials | ( | ) |
Definition at line 273 of file AssemblerUtils.cpp.
References elastic_material_map_, polyfem::assembler::AssemblerUtils::elastic_materials(), and polyfem::assembler::AssemblerUtils::make_assembler().
| void polyfem::assembler::AllElasticMaterials::add_multimaterial | ( | const int | index, |
| const json & | params, | ||
| const Units & | units | ||
| ) |
Definition at line 299 of file AssemblerUtils.cpp.
References elastic_material_map_.
Referenced by polyfem::assembler::MultiModel::add_multimaterial().
| std::shared_ptr< assembler::ElasticityNLAssembler > polyfem::assembler::AllElasticMaterials::get_assembler | ( | const std::string & | name | ) | const |
Definition at line 307 of file AssemblerUtils.cpp.
References elastic_material_map_.
Referenced by polyfem::assembler::MultiModel::assemble_gradient(), polyfem::assembler::MultiModel::assemble_hessian(), polyfem::assembler::MultiModel::assign_stress_tensor(), and polyfem::assembler::MultiModel::compute_energy().
| std::map< std::string, Assembler::ParamFunc > polyfem::assembler::AllElasticMaterials::parameters | ( | ) | const |
Definition at line 312 of file AssemblerUtils.cpp.
References elastic_material_map_.
Referenced by polyfem::assembler::MultiModel::parameters().
| void polyfem::assembler::AllElasticMaterials::set_size | ( | const int | size | ) |
Definition at line 291 of file AssemblerUtils.cpp.
References elastic_material_map_.
Referenced by polyfem::assembler::MultiModel::set_size().
|
private |
Definition at line 60 of file AssemblerUtils.hpp.
Referenced by add_multimaterial(), AllElasticMaterials(), get_assembler(), parameters(), and set_size().