www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ComputeVariableEigenstrain Class Reference

ComputeVariableEigenstrain computes an Eigenstrain that is a function of a single variable defined by a base tensor and a scalar function defined in a Derivative Material. More...

#include <ComputeVariableEigenstrain.h>

Inheritance diagram for ComputeVariableEigenstrain:
[legend]

Public Member Functions

 ComputeVariableEigenstrain (const InputParameters &parameters)
 

Protected Member Functions

virtual void computeQpEigenstrain ()
 

Protected Attributes

const unsigned int _num_args
 number of variables the prefactor depends on More...
 
std::vector< const MaterialProperty< Real > * > _dprefactor
 first derivatives of the prefactor w.r.t. to the args More...
 
std::vector< std::vector< const MaterialProperty< Real > * > > _d2prefactor
 second derivatives of the prefactor w.r.t. to the args More...
 
std::vector< MaterialProperty< RankTwoTensor > * > _delastic_strain
 first derivatives of the elastic strain w.r.t. to the args More...
 
std::vector< std::vector< MaterialProperty< RankTwoTensor > * > > _d2elastic_strain
 second derivatives of the elastic strain w.r.t. to the args More...
 

Detailed Description

ComputeVariableEigenstrain computes an Eigenstrain that is a function of a single variable defined by a base tensor and a scalar function defined in a Derivative Material.

Definition at line 17 of file ComputeVariableEigenstrain.h.

Constructor & Destructor Documentation

ComputeVariableEigenstrain::ComputeVariableEigenstrain ( const InputParameters &  parameters)

Definition at line 21 of file ComputeVariableEigenstrain.C.

22  : DerivativeMaterialInterface<ComputeEigenstrain>(parameters),
23  _num_args(coupledComponents("args")),
28 {
29  // fetch prerequisite derivatives and build elastic_strain derivatives and cross-derivatives
30  for (unsigned int i = 0; i < _num_args; ++i)
31  {
32  const VariableName & iname = getVar("args", i)->name();
33  _dprefactor[i] = &getMaterialPropertyDerivative<Real>("prefactor", iname);
34  _delastic_strain[i] =
35  &declarePropertyDerivative<RankTwoTensor>(_base_name + "elastic_strain", iname);
36 
37  _d2prefactor[i].resize(_num_args);
38  _d2elastic_strain[i].resize(_num_args);
39 
40  for (unsigned int j = i; j < _num_args; ++j)
41  {
42  const VariableName & jname = getVar("args", j)->name();
43  _d2prefactor[i][j] = &getMaterialPropertyDerivative<Real>("prefactor", iname, jname);
44  _d2elastic_strain[i][j] =
45  &declarePropertyDerivative<RankTwoTensor>(_base_name + "elastic_strain", iname, jname);
46  }
47  }
48 }
const unsigned int _num_args
number of variables the prefactor depends on
std::vector< std::vector< MaterialProperty< RankTwoTensor > * > > _d2elastic_strain
second derivatives of the elastic strain w.r.t. to the args
std::vector< std::vector< const MaterialProperty< Real > * > > _d2prefactor
second derivatives of the prefactor w.r.t. to the args
std::vector< MaterialProperty< RankTwoTensor > * > _delastic_strain
first derivatives of the elastic strain w.r.t. to the args
std::vector< const MaterialProperty< Real > * > _dprefactor
first derivatives of the prefactor w.r.t. to the args

Member Function Documentation

void ComputeVariableEigenstrain::computeQpEigenstrain ( )
protectedvirtual

Definition at line 51 of file ComputeVariableEigenstrain.C.

52 {
54 
55  // Define derivatives of the elastic strain
56  for (unsigned int i = 0; i < _num_args; ++i)
57  {
58  (*_delastic_strain[i])[_qp] = -_eigen_base_tensor * (*_dprefactor[i])[_qp];
59  for (unsigned int j = i; j < _num_args; ++j)
60  (*_d2elastic_strain[i][j])[_qp] = -_eigen_base_tensor * (*_d2prefactor[i][j])[_qp];
61  }
62 }
const unsigned int _num_args
number of variables the prefactor depends on
std::vector< std::vector< MaterialProperty< RankTwoTensor > * > > _d2elastic_strain
second derivatives of the elastic strain w.r.t. to the args
virtual void computeQpEigenstrain()
Compute the eigenstrain and store in _eigenstrain.
std::vector< std::vector< const MaterialProperty< Real > * > > _d2prefactor
second derivatives of the prefactor w.r.t. to the args
std::vector< MaterialProperty< RankTwoTensor > * > _delastic_strain
first derivatives of the elastic strain w.r.t. to the args
std::vector< const MaterialProperty< Real > * > _dprefactor
first derivatives of the prefactor w.r.t. to the args

Member Data Documentation

std::vector<std::vector<MaterialProperty<RankTwoTensor> *> > ComputeVariableEigenstrain::_d2elastic_strain
protected

second derivatives of the elastic strain w.r.t. to the args

Definition at line 36 of file ComputeVariableEigenstrain.h.

Referenced by computeQpEigenstrain(), and ComputeVariableEigenstrain().

std::vector<std::vector<const MaterialProperty<Real> *> > ComputeVariableEigenstrain::_d2prefactor
protected

second derivatives of the prefactor w.r.t. to the args

Definition at line 31 of file ComputeVariableEigenstrain.h.

Referenced by computeQpEigenstrain(), and ComputeVariableEigenstrain().

std::vector<MaterialProperty<RankTwoTensor> *> ComputeVariableEigenstrain::_delastic_strain
protected

first derivatives of the elastic strain w.r.t. to the args

Definition at line 34 of file ComputeVariableEigenstrain.h.

Referenced by computeQpEigenstrain(), and ComputeVariableEigenstrain().

std::vector<const MaterialProperty<Real> *> ComputeVariableEigenstrain::_dprefactor
protected

first derivatives of the prefactor w.r.t. to the args

Definition at line 29 of file ComputeVariableEigenstrain.h.

Referenced by computeQpEigenstrain(), and ComputeVariableEigenstrain().

const unsigned int ComputeVariableEigenstrain::_num_args
protected

number of variables the prefactor depends on

Definition at line 26 of file ComputeVariableEigenstrain.h.

Referenced by computeQpEigenstrain(), and ComputeVariableEigenstrain().


The documentation for this class was generated from the following files: