waves
Basic FE playground
katoptron::MaterialsList< scalar > Class Template Reference

Class which stores the list of the used materials. More...

#include <MaterialsList.h>

Public Member Functions

 MaterialsList (Problem &pbl, Teuchos::RCP< Map > map)
 MaterialsList constructor. More...
 
Material< scalar > getMaterial (int current_material, int i_thread)
 Return a Material. More...
 

Public Attributes

Map::local_ordinal_type materials_T
 
Map::local_ordinal_type materials_E
 
Map::local_ordinal_type materials_nu
 
Map::local_ordinal_type materials_k
 
Map::local_ordinal_type materials_beta
 

Private Attributes

Kokkos::View< scalar ***, Kokkos::LayoutRight > materials
 
Map::local_ordinal_type materials_number
 

Detailed Description

template<typename scalar>
class katoptron::MaterialsList< scalar >

Class which stores the list of the used materials.

Constructor & Destructor Documentation

◆ MaterialsList()

template<typename scalar >
katoptron::MaterialsList< scalar >::MaterialsList ( Problem pbl,
Teuchos::RCP< Map map 
)

MaterialsList constructor.

This constructor allocates 1 Kokkos::View which stores all the constitutive parameters of each material.

Arguments:

  • pbl: A Problem object,
  • map: an RCP to a Map object..

Member Function Documentation

◆ getMaterial()

template<typename scalar >
Material< scalar > katoptron::MaterialsList< scalar >::getMaterial ( int  current_material,
int  i_thread 
)

Return a Material.

Arguments:

  • current_material: current material ID,
  • i_thread: thread ID.

Member Data Documentation

◆ materials

template<typename scalar >
Kokkos::View<scalar ***, Kokkos::LayoutRight> katoptron::MaterialsList< scalar >::materials
private

◆ materials_beta

template<typename scalar >
Map::local_ordinal_type katoptron::MaterialsList< scalar >::materials_beta

◆ materials_E

template<typename scalar >
Map::local_ordinal_type katoptron::MaterialsList< scalar >::materials_E

◆ materials_k

template<typename scalar >
Map::local_ordinal_type katoptron::MaterialsList< scalar >::materials_k

◆ materials_nu

template<typename scalar >
Map::local_ordinal_type katoptron::MaterialsList< scalar >::materials_nu

◆ materials_number

template<typename scalar >
Map::local_ordinal_type katoptron::MaterialsList< scalar >::materials_number
private

◆ materials_T

template<typename scalar >
Map::local_ordinal_type katoptron::MaterialsList< scalar >::materials_T

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