oomph::GeneralElasticityTensor Class Reference

#include <elasticity_tensor.h>

+ Inheritance diagram for oomph::GeneralElasticityTensor:

Public Member Functions

 GeneralElasticityTensor ()
 Empy Constructor. More...
 
double independent_component (const unsigned &i) const
 Overload the independent coefficient function. More...
 
void set_value (const unsigned &i, const unsigned &j, const unsigned &k, const unsigned &l, const double &value)
 Allow the values to be set. More...
 
- Public Member Functions inherited from oomph::ElasticityTensor
virtual ~ElasticityTensor ()
 Empty virtual Destructor. More...
 
double operator() (const unsigned &i, const unsigned &j, const unsigned &k, const unsigned &l) const
 
virtual ~ElasticityTensor ()
 Empty virtual Destructor. More...
 
double operator() (const unsigned &i, const unsigned &j, const unsigned &k, const unsigned &l) const
 

Private Attributes

double C [21]
 

Additional Inherited Members

- Protected Member Functions inherited from oomph::ElasticityTensor
void range_check (const unsigned &i, const unsigned &j, const unsigned &k, const unsigned &l) const
 
 ElasticityTensor ()
 Empty Constructor. More...
 
void range_check (const unsigned &i, const unsigned &j, const unsigned &k, const unsigned &l) const
 
 ElasticityTensor ()
 Empty Constructor. More...
 
- Static Protected Attributes inherited from oomph::ElasticityTensor
static const unsigned Index [3][3][3][3]
 

Detailed Description

A general elasticity tensor that provides storage for all 21 independent components

Constructor & Destructor Documentation

◆ GeneralElasticityTensor()

oomph::GeneralElasticityTensor::GeneralElasticityTensor ( )
inline

Empy Constructor.

253  : ElasticityTensor()
254  {
255  // Initialise all independent components to zero
256  for (unsigned i = 0; i < 21; i++)
257  {
258  C[i] = 0.0;
259  }
260  }
int i
Definition: BiCGSTAB_step_by_step.cpp:9
ElasticityTensor()
Empty Constructor.
Definition: linear_elasticity/elasticity_tensor.h:111
Definition: matrices.h:74

References i.

Member Function Documentation

◆ independent_component()

double oomph::GeneralElasticityTensor::independent_component ( const unsigned i) const
inlinevirtual

Overload the independent coefficient function.

Reimplemented from oomph::ElasticityTensor.

264  {
265  return C[i];
266  }

References i.

◆ set_value()

void oomph::GeneralElasticityTensor::set_value ( const unsigned i,
const unsigned j,
const unsigned k,
const unsigned l,
const double value 
)
inlinevirtual

Allow the values to be set.

Reimplemented from oomph::ElasticityTensor.

274  {
275  C[this->Index[i][j][k][l]] = value;
276  }
static const unsigned Index[3][3][3][3]
Definition: linear_elasticity/elasticity_tensor.h:59
char char char int int * k
Definition: level2_impl.h:374
squared absolute value
Definition: GlobalFunctions.h:87
std::ptrdiff_t j
Definition: tut_arithmetic_redux_minmax.cpp:2

References i, oomph::ElasticityTensor::Index, j, k, and Eigen::value.

Member Data Documentation

◆ C

double oomph::GeneralElasticityTensor::C[21]
private

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