www.mooseframework.org
MixedModeEquivalentK.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #include "MixedModeEquivalentK.h"
9 
10 template <>
11 InputParameters
13 {
14  InputParameters params = validParams<GeneralPostprocessor>();
15  params.addRequiredParam<PostprocessorName>("KI_name", "The name of the KI postprocessor");
16  params.addRequiredParam<PostprocessorName>("KII_name", "The name of the KII postprocessor");
17  params.addRequiredParam<PostprocessorName>("KIII_name", "The name of the KIII postprocessor");
18  params.addRequiredParam<Real>("poissons_ratio", "Poisson's ratio for the material.");
19  return params;
20 }
21 
22 MixedModeEquivalentK::MixedModeEquivalentK(const InputParameters & parameters)
23  : GeneralPostprocessor(parameters),
24  _ki_value(getPostprocessorValue("KI_name")),
25  _kii_value(getPostprocessorValue("KII_name")),
26  _kiii_value(getPostprocessorValue("KIII_name")),
27  _poissons_ratio(getParam<Real>("poissons_ratio"))
28 {
29 }
30 
31 Real
33 {
34  return std::sqrt(_ki_value * _ki_value + _kii_value * _kii_value +
36 }
const PostprocessorValue & _ki_value
MixedModeEquivalentK(const InputParameters &parameters)
const PostprocessorValue & _kiii_value
virtual Real getValue()
This will return the degrees of freedom in the system.
const PostprocessorValue & _kii_value
InputParameters validParams< MixedModeEquivalentK >()