www.mooseframework.org
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)
 

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 30 of file CompositeElasticityTensor.h.

Constructor & Destructor Documentation

◆ CompositeElasticityTensor()

CompositeElasticityTensor::CompositeElasticityTensor ( const InputParameters &  parameters)

Definition at line 28 of file CompositeElasticityTensor.C.

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

Member Function Documentation

◆ computeQpProperties()

void CompositeElasticityTensor::computeQpProperties ( )
protected

Definition at line 42 of file CompositeElasticityTensor.C.

43 {
44  computeQpTensorProperties(_M);
45 }
MaterialProperty< RankFourTensor > & _M

Member Data Documentation

◆ _base_name

const std::string CompositeElasticityTensor::_base_name
protected

Definition at line 38 of file CompositeElasticityTensor.h.

◆ _M

MaterialProperty<RankFourTensor>& CompositeElasticityTensor::_M
protected

Definition at line 41 of file CompositeElasticityTensor.h.

Referenced by computeQpProperties().

◆ _M_name

const std::string CompositeElasticityTensor::_M_name
protected

Definition at line 39 of file CompositeElasticityTensor.h.

Referenced by CompositeElasticityTensor().


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