www.mooseframework.org
ElasticityTensor.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #include "ElasticityTensor.h"
11 
13  : ColumnMajorMatrix(9, 9), _constant(constant), _values_computed(false)
14 {
15 }
16 
17 void
19 {
20  if (!_constant || !_values_computed)
21  {
22  calculateEntries(qp);
23  _values_computed = true;
24  }
25 }
26 
27 ColumnMajorMatrix
28 ElasticityTensor::calculateDerivative(unsigned int /*qp*/, unsigned int /*i*/)
29 {
30  ColumnMajorMatrix m(9, 9);
31  return m;
32 }
ElasticityTensor::calculate
void calculate(unsigned int qp)
Public function that will be called whenever the values for this matrix need to be filled in.
Definition: ElasticityTensor.C:18
ElasticityTensor::_constant
bool _constant
Whether or not the matrix is constant for all of time and space.
Definition: ElasticityTensor.h:48
ElasticityTensor::calculateEntries
virtual void calculateEntries(unsigned int qp)=0
Pure virtual (must be overriden by derived class).
ElasticityTensor::_values_computed
bool _values_computed
Whether or not the values have been computed once.
Definition: ElasticityTensor.h:53
ElasticityTensor.h
ElasticityTensor::calculateDerivative
virtual ColumnMajorMatrix calculateDerivative(unsigned int qp, unsigned int i)
Definition: ElasticityTensor.C:28
ElasticityTensor::ElasticityTensor
ElasticityTensor(const bool constant=false)
Default constructor...
Definition: ElasticityTensor.C:12