www.mooseframework.org
ElasticModel.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 "ElasticModel.h"
8 
9 #include "SymmElasticityTensor.h"
10 
11 template <>
12 InputParameters
14 {
15  InputParameters params = validParams<ConstitutiveModel>();
16  return params;
17 }
18 
19 ElasticModel::ElasticModel(const InputParameters & parameters) : ConstitutiveModel(parameters) {}
20 
22 
24 
26 
27 void
28 ElasticModel::computeStress(const Elem & /*current_elem*/,
29  const SymmElasticityTensor & elasticity_tensor,
30  const SymmTensor & stress_old,
31  SymmTensor & strain_increment,
32  SymmTensor & stress_new)
33 {
34  stress_new = elasticity_tensor * strain_increment;
35  stress_new += stress_old;
36 }
This class defines a basic set of capabilities any elasticity tensor should have. ...
InputParameters validParams< ElasticModel >()
Definition: ElasticModel.C:13
virtual void computeStress(const Elem &current_elem, const SymmElasticityTensor &elasticity_tensor, const SymmTensor &stress_old, SymmTensor &strain_increment, SymmTensor &stress_new)
Compute the stress (sigma += deltaSigma)
Definition: ElasticModel.C:28
ElasticModel(const InputParameters &parameters)
Definition: ElasticModel.C:19
virtual ~ElasticModel()
Definition: ElasticModel.C:23
InputParameters validParams< ConstitutiveModel >()