www.mooseframework.org
ElasticityTensor.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 #include "ElasticityTensor.h"
8 
10  : ColumnMajorMatrix(9, 9), _constant(constant), _values_computed(false)
11 {
12 }
13 
14 void
16 {
17  if (!_constant || !_values_computed)
18  {
19  calculateEntries(qp);
20  _values_computed = true;
21  }
22 }
23 
24 ColumnMajorMatrix
25 ElasticityTensor::calculateDerivative(unsigned int /*qp*/, unsigned int /*i*/)
26 {
27  ColumnMajorMatrix m(9, 9);
28  return m;
29 }
virtual void calculateEntries(unsigned int qp)=0
Pure virtual (must be overriden by derived class).
virtual ColumnMajorMatrix calculateDerivative(unsigned int qp, unsigned int i)
bool _values_computed
Whether or not the values have been computed once.
ElasticityTensor(const bool constant=false)
Default constructor...
bool _constant
Whether or not the matrix is constant for all of time and space.
void calculate(unsigned int qp)
Public function that will be called whenever the values for this matrix need to be filled in...