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