Loading [MathJax]/extensions/tex2jax.js
PolyFEM
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
polyfem::assembler::AllElasticMaterials Class Reference

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 &params, const Units &units)
 
std::shared_ptr< assembler::NLAssemblerget_assembler (const std::string &name) const
 
std::map< std::string, Assembler::ParamFuncparameters () const
 

Private Attributes

std::unordered_map< std::string, std::shared_ptr< assembler::NLAssembler > > elastic_material_map_
 

Detailed Description

utility to create a map of all elastic materials

Definition at line 46 of file AssemblerUtils.hpp.

Constructor & Destructor Documentation

◆ AllElasticMaterials()

polyfem::assembler::AllElasticMaterials::AllElasticMaterials ( )

Definition at line 263 of file AssemblerUtils.cpp.

References elastic_material_map_, polyfem::assembler::AssemblerUtils::elastic_materials(), and polyfem::assembler::AssemblerUtils::make_assembler().

Here is the call graph for this function:

Member Function Documentation

◆ add_multimaterial()

void polyfem::assembler::AllElasticMaterials::add_multimaterial ( const int  index,
const json params,
const Units units 
)

Definition at line 289 of file AssemblerUtils.cpp.

References elastic_material_map_.

Referenced by polyfem::assembler::MultiModel::add_multimaterial().

Here is the caller graph for this function:

◆ get_assembler()

std::shared_ptr< assembler::NLAssembler > polyfem::assembler::AllElasticMaterials::get_assembler ( const std::string &  name) const

Definition at line 297 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().

Here is the caller graph for this function:

◆ parameters()

std::map< std::string, Assembler::ParamFunc > polyfem::assembler::AllElasticMaterials::parameters ( ) const

Definition at line 302 of file AssemblerUtils.cpp.

References elastic_material_map_.

Referenced by polyfem::assembler::MultiModel::parameters().

Here is the caller graph for this function:

◆ set_size()

void polyfem::assembler::AllElasticMaterials::set_size ( const int  size)

Definition at line 281 of file AssemblerUtils.cpp.

References elastic_material_map_.

Referenced by polyfem::assembler::MultiModel::set_size().

Here is the caller graph for this function:

Member Data Documentation

◆ elastic_material_map_

std::unordered_map<std::string, std::shared_ptr<assembler::NLAssembler> > polyfem::assembler::AllElasticMaterials::elastic_material_map_
private

The documentation for this class was generated from the following files: