#include <nimble_material_factory.h>
◆ MaterialFactory()
nimble::MaterialFactory::MaterialFactory |
( |
| ) |
|
|
explicit |
MaterialFactoryBase()
Definition nimble_material_factory_base.cc:56
◆ ~MaterialFactory()
nimble::MaterialFactory::~MaterialFactory |
( |
| ) |
|
|
overridedefault |
◆ create()
void nimble::MaterialFactory::create |
( |
| ) |
|
|
overrideprotectedvirtual |
Implements nimble::MaterialFactoryBase.
58{
60 if (name_string == "neohookean") {
62 } else if (name_string == "elastic") {
64 } else {
65 throw std::invalid_argument(
66 "\nError in Block::InstantiateMaterialModel(), invalid material model "
67 "name.\n");
68 }
69}
std::shared_ptr< nimble::Material > material
Definition nimble_material_factory_base.h:125
std::shared_ptr< const nimble::MaterialParameters > material_params
Definition nimble_material_factory_base.h:126
The documentation for this class was generated from the following files: