https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MandelConverter.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
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#include "MandelConverter.h"
11
16
17template <typename T, bool symmetrize>
20{
22 params.addClassDescription("Converts material property of type " +
23 demangle(typeid(FromType).name()) + " to type " +
24 demangle(typeid(ToType).name()));
25 params.addRequiredParam<MaterialPropertyName>("from", "Material property to convert from");
26 params.addRequiredParam<MaterialPropertyName>("to", "Material property to convert to");
27 return params;
28}
29
30template <typename T, bool symmetrize>
32 : Material(params),
33 _from(getMaterialProperty<FromType>("from")),
34 _to(declareProperty<ToType>("to"))
35{
36}
37
38template <typename T, bool symmetrize>
39void
44
45template <typename T, bool symmetrize>
46void
51
registerMooseObject("SolidMechanicsApp", RankTwoTensorToSymmetricRankTwoTensor)
const std::string name
Definition Setup.h:21
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
Convert tensorial material properties between Mandel notation and full notation.
typename MandelConversion< T, symmetrize >::from FromType
MandelConverter(const InputParameters &parameters)
typename MandelConversion< T, symmetrize >::to ToType
void initQpStatefulProperties() override
static InputParameters validParams()
void computeQpProperties() override
static InputParameters validParams()