www.mooseframework.org
ComputeElasticityTensorBase.h
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 #pragma once
11 
12 #include "DerivativeMaterialInterface.h"
13 #include "Material.h"
14 #include "RankFourTensor.h"
15 #include "GuaranteeProvider.h"
16 
18 
19 template <>
21 
25 class ComputeElasticityTensorBase : public DerivativeMaterialInterface<Material>,
26  public GuaranteeProvider
27 {
28 public:
29  static InputParameters validParams();
30 
31  ComputeElasticityTensorBase(const InputParameters & parameters);
32 
33 protected:
34  virtual void computeQpProperties();
35  virtual void computeQpElasticityTensor() = 0;
36 
37  const std::string _base_name;
39 
40  MaterialProperty<RankFourTensor> & _elasticity_tensor;
41  MaterialProperty<Real> & _effective_stiffness;
42 
44  const Function * const _prefactor_function;
45 };
ComputeElasticityTensorBase::ComputeElasticityTensorBase
ComputeElasticityTensorBase(const InputParameters &parameters)
Definition: ComputeElasticityTensorBase.C:29
GuaranteeProvider
Add-on class that provides the functionality to issue guarantees for declared material properties.
Definition: GuaranteeProvider.h:25
ComputeElasticityTensorBase::computeQpProperties
virtual void computeQpProperties()
Definition: ComputeElasticityTensorBase.C:43
ComputeElasticityTensorBase::_effective_stiffness
MaterialProperty< Real > & _effective_stiffness
Definition: ComputeElasticityTensorBase.h:41
ComputeElasticityTensorBase
ComputeElasticityTensorBase the base class for computing elasticity tensors.
Definition: ComputeElasticityTensorBase.h:25
ComputeElasticityTensorBase::computeQpElasticityTensor
virtual void computeQpElasticityTensor()=0
validParams< ComputeElasticityTensorBase >
InputParameters validParams< ComputeElasticityTensorBase >()
ComputeElasticityTensorBase::_elasticity_tensor
MaterialProperty< RankFourTensor > & _elasticity_tensor
Definition: ComputeElasticityTensorBase.h:40
ComputeElasticityTensorBase::validParams
static InputParameters validParams()
Definition: ComputeElasticityTensorBase.C:16
ComputeElasticityTensorBase::_elasticity_tensor_name
std::string _elasticity_tensor_name
Definition: ComputeElasticityTensorBase.h:38
GuaranteeProvider.h
ComputeElasticityTensorBase::_base_name
const std::string _base_name
Definition: ComputeElasticityTensorBase.h:37
ComputeElasticityTensorBase::_prefactor_function
const Function *const _prefactor_function
prefactor function to multiply the elasticity tensor with
Definition: ComputeElasticityTensorBase.h:44