www.mooseframework.org
ComputeElasticityTensor.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 /****************************************************************/
8 #include "RotationTensor.h"
9 
10 template <>
11 InputParameters
13 {
14  InputParameters params = validParams<ComputeRotatedElasticityTensorBase>();
15  params.addClassDescription("Compute an elasticity tensor.");
16  params.addRequiredParam<std::vector<Real>>("C_ijkl", "Stiffness tensor for material");
17  params.addParam<MooseEnum>(
18  "fill_method", RankFourTensor::fillMethodEnum() = "symmetric9", "The fill method");
19  return params;
20 }
21 
22 ComputeElasticityTensor::ComputeElasticityTensor(const InputParameters & parameters)
24  _Cijkl(getParam<std::vector<Real>>("C_ijkl"),
25  (RankFourTensor::FillMethod)(int)getParam<MooseEnum>("fill_method"))
26 {
27  if (!isParamValid("elasticity_tensor_prefactor"))
29 
30  if (_Cijkl.isIsotropic())
32  else
33  {
34  // Define a rotation according to Euler angle parameters
35  RotationTensor R(_Euler_angles); // R type: RealTensorValue
36 
37  // rotate elasticity tensor
38  _Cijkl.rotate(R);
39  }
40 }
41 
42 void
44 {
45  // Assign elasticity tensor at a given quad point
47 }
ComputeRotatedElasticityTensorBase is an intermediate base class that rotates an elasticity tensor ba...
InputParameters validParams< ComputeElasticityTensor >()
ComputeElasticityTensor(const InputParameters &parameters)
void issueGuarantee(const MaterialPropertyName &prop_name, Guarantee guarantee)
InputParameters validParams< ComputeRotatedElasticityTensorBase >()
RankFourTensor _Cijkl
Individual material information.
virtual void computeQpElasticityTensor() override
This is a RealTensor version of a rotation matrix It is instantiated with the Euler angles...
MaterialProperty< RankFourTensor > & _elasticity_tensor