#include <nimble_kokkos_material_factory.h>
◆ MaterialFactory()
nimble_kokkos::MaterialFactory::MaterialFactory |
( |
| ) |
|
|
explicit |
MaterialFactoryBase()
Definition nimble_material_factory_base.cc:56
nimble::Material * material_device
Definition nimble_kokkos_material_factory.h:94
◆ ~MaterialFactory()
nimble_kokkos::MaterialFactory::~MaterialFactory |
( |
| ) |
|
|
overridedefault |
◆ create()
void nimble_kokkos::MaterialFactory::create |
( |
| ) |
|
|
overrideprotectedvirtual |
Implements nimble::MaterialFactoryBase.
73{
75 if (name_string == "neohookean") {
78 } else if (name_string == "elastic") {
81 } else {
82 throw std::invalid_argument(
83 "\nError in Block::InstantiateMaterialModel(), invalid material model "
84 "name.\n");
85 }
86}
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
std::pair< std::shared_ptr< MatType >, MatType * > allocate_material_on_host_and_device(const nimble::MaterialParameters &mat_params_struct)
Definition nimble_kokkos_material_factory.cc:60
◆ get_material_device()
nimble::Material * nimble_kokkos::MaterialFactory::get_material_device |
( |
| ) |
const |
|
inline |
◆ get_material_host()
std::shared_ptr< nimble::Material > nimble_kokkos::MaterialFactory::get_material_host |
( |
| ) |
const |
|
inline |
◆ get_ngp_lame_data()
std::shared_ptr< nimble::NGPLAMEData > nimble_kokkos::MaterialFactory::get_ngp_lame_data |
( |
| ) |
const |
|
inline |
80 {
82 }
std::shared_ptr< nimble::NGPLAMEData > ngp_lame_data
Definition nimble_kokkos_material_factory.h:95
◆ material_device
- Note
- The variable material is used as 'material_host' (i.e. a variable defined on the host memory space).
◆ ngp_lame_data
std::shared_ptr<nimble::NGPLAMEData> nimble_kokkos::MaterialFactory::ngp_lame_data |
|
protected |
The documentation for this class was generated from the following files: