www.mooseframework.org
Public Member Functions | Static Public Member Functions | List of all members
TensorMechanicsActionBase Class Reference

#include <TensorMechanicsActionBase.h>

Inheritance diagram for TensorMechanicsActionBase:
[legend]

Public Member Functions

 TensorMechanicsActionBase (const InputParameters &params)
 

Static Public Member Functions

static MultiMooseEnum outputPropertiesType ()
 

Static Public Attributes

static const std::map< std::string, std::string > _ranktwoaux_table
 table data for output generation More...
 
static const std::vector< char > _component_table = {'x', 'y', 'z'}
 
static const std::map< std::string, std::pair< std::string, std::vector< std::string > > > _ranktwoscalaraux_table
 

Detailed Description

Definition at line 17 of file TensorMechanicsActionBase.h.

Constructor & Destructor Documentation

TensorMechanicsActionBase::TensorMechanicsActionBase ( const InputParameters &  params)

Definition at line 95 of file TensorMechanicsActionBase.C.

96  : Action(parameters)
97 {
98  // check if a container block with common parameters is found
99  auto action = _awh.getActions<CommonTensorMechanicsAction>();
100  if (action.size() == 1)
101  _pars.applyParameters(action[0]->parameters());
102 
103  // append additional_generate_output
104  if (isParamValid("additional_generate_output"))
105  {
106  MultiMooseEnum generate_output = getParam<MultiMooseEnum>("generate_output");
107  MultiMooseEnum additional_generate_output =
108  getParam<MultiMooseEnum>("additional_generate_output");
109  for (auto & output : additional_generate_output)
110  generate_output.push_back(output);
111 
112  _pars.set<MultiMooseEnum>("generate_output") = generate_output;
113  }
114 }
Store common tensor mechanics parameters.

Member Function Documentation

MultiMooseEnum TensorMechanicsActionBase::outputPropertiesType ( )
static

Definition at line 117 of file TensorMechanicsActionBase.C.

Referenced by validParams< TensorMechanicsAction >(), and validParams< TensorMechanicsActionBase >().

118 {
119  std::string options = "";
120  for (auto & r2a : _ranktwoaux_table)
121  for (unsigned int a = 0; a < 3; ++a)
122  for (unsigned int b = 0; b < 3; ++b)
123  options += (options == "" ? "" : " ") + r2a.first + '_' + _component_table[a] +
124  _component_table[b];
125 
126  for (auto & r2sa : _ranktwoscalaraux_table)
127  for (auto & t : r2sa.second.second)
128  options += " " + r2sa.first + "_" + t;
129 
130  return MultiMooseEnum(options);
131 }
static const std::vector< char > _component_table
static const std::map< std::string, std::pair< std::string, std::vector< std::string > > > _ranktwoscalaraux_table
static const std::map< std::string, std::string > _ranktwoaux_table
table data for output generation

Member Data Documentation

const std::vector< char > TensorMechanicsActionBase::_component_table = {'x', 'y', 'z'}
static
const std::map< std::string, std::string > TensorMechanicsActionBase::_ranktwoaux_table
static
Initial value:
= {
{"strain", "total_strain"},
{"stress", "stress"},
{"elastic_strain", "elastic_strain"},
{"plastic_strain", "plastic_strain"},
{"creep_strain", "creep_strain"}}

table data for output generation

Definition at line 26 of file TensorMechanicsActionBase.h.

Referenced by TensorMechanicsAction::actOutputGeneration(), and outputPropertiesType().

const std::map< std::string, std::pair< std::string, std::vector< std::string > > > TensorMechanicsActionBase::_ranktwoscalaraux_table
static
Initial value:
= {
{"vonmises", {"VonMisesStress", {"stress"}}},
{"hydrostatic", {"Hydrostatic", {"stress"}}},
{"max_principal", {"MaxPrincipal", {"stress"}}},
{"mid_principal", {"MidPrincipal", {"stress"}}},
{"min_principal", {"MinPrincipal", {"stress"}}},
{"effective", {"EffectiveStrain", {"plastic_strain", "creep_strain"}}},
{"firstinv", {"FirstInvariant", {"stress", "strain"}}},
{"secondinv", {"SecondInvariant", {"stress", "strain"}}},
{"thirdinv", {"ThirdInvariant", {"stress", "strain"}}}}

Definition at line 29 of file TensorMechanicsActionBase.h.

Referenced by TensorMechanicsAction::actOutputGeneration(), and outputPropertiesType().


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