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

CompositeElasticityTensor provides a simple RankFourTensor type MaterialProperty that can be used as an Elasticity tensor in a mechanics simulation. More...

#include <CompositeElasticityTensor.h>

Inheritance diagram for CompositeElasticityTensor:
[legend]

Public Member Functions

 CompositeElasticityTensor (const InputParameters &parameters)
 

Static Public Member Functions

static InputParameters validParams ()
 

Protected Member Functions

void computeQpProperties ()
 

Protected Attributes

const std::string _base_name
 
const std::string _M_name
 
MaterialProperty< RankFourTensor > & _M
 

Detailed Description

CompositeElasticityTensor provides a simple RankFourTensor type MaterialProperty that can be used as an Elasticity tensor in a mechanics simulation.

This tensor is computes as a weighted sum of base elasticity tensors where each weight can be a scalar material property that may depend on simulation variables. The generic logic that computes a weighted sum of tensors is located in the templated base class CompositeTensorBase.

Definition at line 29 of file CompositeElasticityTensor.h.

Constructor & Destructor Documentation

◆ CompositeElasticityTensor()

CompositeElasticityTensor::CompositeElasticityTensor ( const InputParameters &  parameters)

Definition at line 29 of file CompositeElasticityTensor.C.

30  : CompositeTensorBase<RankFourTensor, Material>(parameters),
31  _base_name(isParamValid("base_name") ? getParam<std::string>("base_name") + "_" : ""),
32  _M_name(_base_name + "elasticity_tensor"),
33  _M(declareProperty<RankFourTensor>(_M_name))
34 {
35  // we take the tensor names to be the _base names_ of the elasticity tensors
36  for (unsigned int i = 0; i < _num_comp; ++i)
37  _tensor_names[i] += "_elasticity_tensor";
38 
39  initializeDerivativeProperties(_M_name);
40 }

Member Function Documentation

◆ computeQpProperties()

void CompositeElasticityTensor::computeQpProperties ( )
protected

Definition at line 43 of file CompositeElasticityTensor.C.

44 {
45  computeQpTensorProperties(_M);
46 }

◆ validParams()

InputParameters CompositeElasticityTensor::validParams ( )
static

Definition at line 17 of file CompositeElasticityTensor.C.

18 {
20  params.addClassDescription("Assemble an elasticity tensor from multiple tensor contributions "
21  "weighted by material properties");
22  params.addParam<std::string>("base_name",
23  "Optional parameter that allows the user to define "
24  "multiple mechanics material systems on the same "
25  "block, i.e. for multiple phases");
26  return params;
27 }

Member Data Documentation

◆ _base_name

const std::string CompositeElasticityTensor::_base_name
protected

Definition at line 39 of file CompositeElasticityTensor.h.

◆ _M

MaterialProperty<RankFourTensor>& CompositeElasticityTensor::_M
protected

Definition at line 42 of file CompositeElasticityTensor.h.

Referenced by computeQpProperties().

◆ _M_name

const std::string CompositeElasticityTensor::_M_name
protected

Definition at line 40 of file CompositeElasticityTensor.h.

Referenced by CompositeElasticityTensor().


The documentation for this class was generated from the following files:
CompositeElasticityTensor::_M
MaterialProperty< RankFourTensor > & _M
Definition: CompositeElasticityTensor.h:42
CompositeElasticityTensor::_base_name
const std::string _base_name
Definition: CompositeElasticityTensor.h:39
validParams
InputParameters validParams()
CompositeElasticityTensor::_M_name
const std::string _M_name
Definition: CompositeElasticityTensor.h:40