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

Constructor & Destructor Documentation

CompositeElasticityTensor::CompositeElasticityTensor ( const InputParameters &  parameters)

Definition at line 23 of file CompositeElasticityTensor.C.

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

Member Function Documentation

void CompositeElasticityTensor::computeQpProperties ( )
protected

Definition at line 37 of file CompositeElasticityTensor.C.

38 {
39  computeQpTensorProperties(_M);
40 }
MaterialProperty< RankFourTensor > & _M

Member Data Documentation

const std::string CompositeElasticityTensor::_base_name
protected

Definition at line 30 of file CompositeElasticityTensor.h.

MaterialProperty<RankFourTensor>& CompositeElasticityTensor::_M
protected

Definition at line 33 of file CompositeElasticityTensor.h.

Referenced by computeQpProperties().

const std::string CompositeElasticityTensor::_M_name
protected

Definition at line 31 of file CompositeElasticityTensor.h.

Referenced by CompositeElasticityTensor().


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