www.mooseframework.org
Public Member Functions | Public Attributes | Protected Attributes | Private Member Functions | Private Attributes | List of all members
MaterialOutputAction Class Reference

Creates AuxVariables and AuxKernels for automatic output of material properties. More...

#include <MaterialOutputAction.h>

Inheritance diagram for MaterialOutputAction:
[legend]

Public Member Functions

 MaterialOutputAction (InputParameters params)
 Class constructor. More...
 
virtual void act () override
 
void buildMaterialOutputObjects (FEProblemBase *problem_ptr)
 Builds the objects necessary for material property output. More...
 
const std::string & name () const
 The name of the action. More...
 
const std::string & type () const
 
InputParametersparameters ()
 
const InputParametersparameters () const
 
const std::string & specificTaskName () const
 
const std::set< std::string > & getAllTasks () const
 
bool isParamValid (const std::string &name) const
 
void appendTask (const std::string &task)
 
std::string getBaseName () const
 Deprecated name methods, use name() More...
 
std::string getShortName () const
 DEPRECATED METHODS. More...
 
template<typename T >
const T & getParam (const std::string &name) const
 Retrieve a parameter for the object. More...
 

Public Attributes

const ConsoleStream _console
 An instance of helper class to write streams to the Console objects. More...
 

Protected Attributes

InputParameters _pars
 Input parameters for the action. More...
 
std::string _registered_identifier
 
std::string _name
 The name of the action. More...
 
std::string _action_type
 
MooseApp_app
 The MOOSE application this is associated with. More...
 
Factory_factory
 The Factory associated with the MooseApp. More...
 
ActionFactory_action_factory
 Builds Actions. More...
 
std::string _specific_task_name
 This member will only be populated if this Action instance is only designed to handle one task. More...
 
std::set< std::string > _all_tasks
 A list of all the tasks that this Action will satisfy. More...
 
ActionWarehouse_awh
 Reference to ActionWarehouse where we store object build by actions. More...
 
const std::string & _current_task
 The current action (even though we have seperate instances for each action) More...
 
std::shared_ptr< MooseMesh > & _mesh
 
std::shared_ptr< MooseMesh > & _displaced_mesh
 
std::shared_ptr< FEProblemBase > & _problem
 Convenience reference to a problem this action works on. More...
 
std::shared_ptr< Executioner > & _executioner
 Convenience reference to an executioner. More...
 

Private Member Functions

template<typename T >
bool hasProperty (const std::string &property_name)
 Helper method for testing if the material exists as a block or boundary material. More...
 
template<typename T >
void materialOutputHelper (const std::string &property_name, std::shared_ptr< Material > material)
 Template method for creating the necessary objects for the various material property types. More...
 
std::shared_ptr< MooseObjectActioncreateAction (const std::string &type, const std::string &property_name, const std::string &variable_name, std::shared_ptr< Material > material)
 A method for creating an AuxVariable and associated action. More...
 
template<>
void materialOutputHelper (const std::string &material_name, std::shared_ptr< Material > material)
 
template<>
void materialOutputHelper (const std::string &material_name, std::shared_ptr< Material > material)
 
template<>
void materialOutputHelper (const std::string &material_name, std::shared_ptr< Material > material)
 
template<>
void materialOutputHelper (const std::string &property_name, std::shared_ptr< Material > material)
 
template<>
void materialOutputHelper (const std::string &property_name, std::shared_ptr< Material > material)
 
template<>
void materialOutputHelper (const std::string &property_name, std::shared_ptr< Material > material)
 

Private Attributes

std::shared_ptr< MaterialData_block_material_data
 Pointer the MaterialData object storing the block restricted materials. More...
 
std::shared_ptr< MaterialData_boundary_material_data
 Pointer the MaterialData object storing the boundary restricted materials. More...
 
std::map< std::string, std::set< SubdomainID > > _block_variable_map
 Map of variable name that contains the blocks to which the variable should be restricted. More...
 
std::set< std::string > _variable_names
 Set of variable names for boundary. More...
 
std::set< std::string > _material_variable_names
 List of variables for the current Material object. More...
 
std::map< OutputName, std::set< std::string > > _material_variable_names_map
 Map of output names and list of variables associated with the output. More...
 
OutputWarehouse_output_warehouse
 Reference to the OutputWarehouse. More...
 

Detailed Description

Creates AuxVariables and AuxKernels for automatic output of material properties.

Definition at line 33 of file MaterialOutputAction.h.

Constructor & Destructor Documentation

MaterialOutputAction::MaterialOutputAction ( InputParameters  params)

Class constructor.

Parameters
paramsInput parameters for this action object

Definition at line 45 of file MaterialOutputAction.C.

47 {
48 }
OutputWarehouse & _output_warehouse
Reference to the OutputWarehouse.
Action(InputParameters parameters)
Definition: Action.C:51
MooseApp & _app
The MOOSE application this is associated with.
Definition: Action.h:98
OutputWarehouse & getOutputWarehouse()
Get the OutputWarehouse objects.
Definition: MooseApp.C:840

Member Function Documentation

void MaterialOutputAction::act ( )
overridevirtual

Implements Action.

Definition at line 51 of file MaterialOutputAction.C.

Referenced by buildMaterialOutputObjects().

52 {
53  // Error if _problem is NULL, I don't know how this would happen
54  if (_problem.get() == NULL)
55  mooseError("FEProblemBase pointer is NULL, it is needed for auto material property output");
56 
58 }
void mooseError(Args &&...args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:182
std::shared_ptr< FEProblemBase > & _problem
Convenience reference to a problem this action works on.
Definition: Action.h:131
void buildMaterialOutputObjects(FEProblemBase *problem_ptr)
Builds the objects necessary for material property output.
void Action::appendTask ( const std::string &  task)
inlineinherited

Definition at line 82 of file Action.h.

82 { _all_tasks.insert(task); }
std::set< std::string > _all_tasks
A list of all the tasks that this Action will satisfy.
Definition: Action.h:119
void MaterialOutputAction::buildMaterialOutputObjects ( FEProblemBase problem_ptr)

Builds the objects necessary for material property output.

Definition at line 61 of file MaterialOutputAction.C.

Referenced by act().

62 {
63  // Do nothing if the application does not have output
64  if (!_app.actionWarehouse().hasActions("add_output"))
65  return;
66 
67  // Set the pointers to the MaterialData objects (Note, these pointers are not available at
68  // construction)
71 
72  // A complete list of all Material objects
73  const std::vector<std::shared_ptr<Material>> & materials =
74  problem_ptr->getMaterialWarehouse().getObjects();
75 
76  // Handle setting of material property output in [Outputs] sub-blocks
77  // Output objects can enable material property output, the following code examines the parameters
78  // for each Output object and sets a flag if any Output object has output set and also builds a
79  // list if the
80  // properties are limited via the 'show_material_properties' parameters
81  bool outputs_has_properties = false;
82  std::set<std::string> output_object_properties;
83 
84  const auto & output_actions = _app.actionWarehouse().getActionListByName("add_output");
85  for (const auto & act : output_actions)
86  {
87  // Extract the Output action
88  AddOutputAction * action = dynamic_cast<AddOutputAction *>(act);
89  mooseAssert(action != NULL, "No AddOutputAction with the name " << act->name() << " exists");
90 
91  // Add the material property names from the output object parameters to the list of properties
92  // to output
93  InputParameters & params = action->getObjectParams();
94  if (params.isParamValid("output_material_properties") &&
95  params.get<bool>("output_material_properties"))
96  {
97  outputs_has_properties = true;
98  std::vector<std::string> prop_names =
99  params.get<std::vector<std::string>>("show_material_properties");
100  output_object_properties.insert(prop_names.begin(), prop_names.end());
101  }
102  }
103 
104  // Loop through each material object
105  for (const auto & mat : materials)
106  {
107  // Extract the names of the output objects to which the material properties will be exported
108  std::set<OutputName> outputs = mat->getOutputs();
109 
110  // Extract the property names that will actually be output
111  std::vector<std::string> output_properties =
112  mat->getParam<std::vector<std::string>>("output_properties");
113 
114  // Append the properties listed in the Outputs block
115  if (outputs_has_properties)
116  output_properties.insert(output_properties.end(),
117  output_object_properties.begin(),
118  output_object_properties.end());
119 
120  // Clear the list of variable names for the current material object, this list will be populated
121  // with all the
122  // variables names for the current material object and is needed for purposes of controlling the
123  // which output objects
124  // show the material property data
125  _material_variable_names.clear();
126 
127  // Create necessary outputs for the properties if:
128  // (1) The Outputs block has material output enabled
129  // (2) If the Material object itself has set the 'outputs' parameter
130  if (outputs_has_properties || outputs.find("none") == outputs.end())
131  {
132  // Add the material property for output if the name is contained in the 'output_properties'
133  // list
134  // or if the list is empty (all properties)
135  const std::set<std::string> names = mat->getSuppliedItems();
136  for (const auto & name : names)
137  {
138  // Add the material property for output
139  if (output_properties.empty() ||
140  std::find(output_properties.begin(), output_properties.end(), name) !=
141  output_properties.end())
142  {
143  if (hasProperty<Real>(name))
144  materialOutputHelper<Real>(name, mat);
145 
146  else if (hasProperty<RealVectorValue>(name))
147  materialOutputHelper<RealVectorValue>(name, mat);
148 
149  else if (hasProperty<RealTensorValue>(name))
150  materialOutputHelper<RealTensorValue>(name, mat);
151 
152  else
153  mooseWarning("The type for material property '",
154  name,
155  "' is not supported for automatic output.");
156  }
157 
158  // If the material object as limited outputs, store the variables associated with the output
159  // objects
160  if (!outputs.empty())
161  for (const auto & output_name : outputs)
162  _material_variable_names_map[output_name].insert(_material_variable_names.begin(),
164  }
165  }
166  }
167 
168  // Create the AuxVariables
169  FEType fe_type(
170  CONSTANT,
171  MONOMIAL); // currently only elemental variables are support for material property output
172  for (const auto & var_name : _variable_names)
173  problem_ptr->addAuxVariable(var_name, fe_type);
174 
175  // When a Material object has 'output_properties' defined all other properties not listed must be
176  // added to
177  // the hide list for the output objects so that properties that are not desired do not appear.
178  for (const auto & it : _material_variable_names_map)
179  {
180  std::set<std::string> hide;
181  std::set_difference(_variable_names.begin(),
182  _variable_names.end(),
183  it.second.begin(),
184  it.second.end(),
185  std::inserter(hide, hide.begin()));
186 
188  }
189 }
std::map< OutputName, std::set< std::string > > _material_variable_names_map
Map of output names and list of variables associated with the output.
OutputWarehouse & _output_warehouse
Reference to the OutputWarehouse.
std::set< std::string > _material_variable_names
List of variables for the current Material object.
const std::list< Action * > & getActionListByName(const std::string &task) const
Retrieve a constant list of Action pointers associated with the passed in task.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
bool hasActions(const std::string &task) const
Check if Actions associated with passed in task exist.
std::shared_ptr< MaterialData > _boundary_material_data
Pointer the MaterialData object storing the boundary restricted materials.
std::shared_ptr< MaterialData > _block_material_data
Pointer the MaterialData object storing the block restricted materials.
Action for creating output objects.
InputParameters & getObjectParams()
Retreive the parameters of the object to be created by this action.
ActionWarehouse & actionWarehouse()
Definition: MooseApp.h:130
std::shared_ptr< MaterialData > getMaterialData(Moose::MaterialDataType type, THREAD_ID tid=0)
const MaterialWarehouse & getMaterialWarehouse()
const std::string & name() const
The name of the action.
Definition: Action.h:51
void addInterfaceHideVariables(const std::string &output_name, const std::set< std::string > &variable_names)
Insert variable names for hiding via the OutoutInterface.
virtual void act() override
const std::vector< std::shared_ptr< T > > & getObjects(THREAD_ID tid=0) const
Retrieve complete vector to the all/block/boundary restricted objects for a given thread...
MooseApp & _app
The MOOSE application this is associated with.
Definition: Action.h:98
std::set< std::string > _variable_names
Set of variable names for boundary.
void mooseWarning(Args &&...args)
Emit a warning message with the given stringified, concatenated args.
Definition: MooseError.h:194
void addAuxVariable(const std::string &var_name, const FEType &type, const std::set< SubdomainID > *const active_subdomains=NULL)
std::shared_ptr< MooseObjectAction > MaterialOutputAction::createAction ( const std::string &  type,
const std::string &  property_name,
const std::string &  variable_name,
std::shared_ptr< Material material 
)
private

A method for creating an AuxVariable and associated action.

Parameters
typeThe action type to create
property_nameThe property name to associated with that action
variable_nameThe AuxVariable name to create
materialA pointer to the Material object containing the property of interest

Definition at line 192 of file MaterialOutputAction.C.

Referenced by materialOutputHelper().

196 {
197  // Append the list of variables to create
198  _variable_names.insert(variable_name);
199 
200  // Append the list of output variables for the current material
201  _material_variable_names.insert(variable_name);
202 
203  // Generate the name
204  std::ostringstream name;
205  name << material->name() << "_" << variable_name;
206 
207  // Set the action parameters
208  InputParameters action_params = _action_factory.getValidParams("AddKernelAction");
209  action_params.set<std::string>("type") = type;
210  action_params.set<ActionWarehouse *>("awh") = &_awh;
211  action_params.set<std::string>("task") = "add_aux_kernel";
212 
213  // Create the action
214  std::shared_ptr<MooseObjectAction> action = std::static_pointer_cast<MooseObjectAction>(
215  _action_factory.create("AddKernelAction", name.str(), action_params));
216 
217  // Set the object parameters
218  InputParameters & object_params = action->getObjectParams();
219  object_params.set<MaterialPropertyName>("property") = property_name;
220  object_params.set<AuxVariableName>("variable") = variable_name;
221  object_params.set<MultiMooseEnum>("execute_on") = "timestep_end";
222 
223  if (material->boundaryRestricted())
224  object_params.set<std::vector<BoundaryName>>("boundary") = material->boundaryNames();
225  else
226  object_params.set<std::vector<SubdomainName>>("block") = material->blocks();
227 
228  // Return the created action
229  return action;
230 }
ActionWarehouse & _awh
Reference to ActionWarehouse where we store object build by actions.
Definition: Action.h:122
ActionFactory & _action_factory
Builds Actions.
Definition: Action.h:104
InputParameters getValidParams(const std::string &name)
Definition: ActionFactory.C:74
T & set(const std::string &name, bool quiet_mode=false)
Returns a writable reference to the named parameters.
std::set< std::string > _material_variable_names
List of variables for the current Material object.
Storage for action instances.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const std::string & type() const
Definition: Action.h:61
const std::string & name() const
The name of the action.
Definition: Action.h:51
std::shared_ptr< Action > create(const std::string &action, const std::string &action_name, InputParameters parameters)
Definition: ActionFactory.C:26
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
std::set< std::string > _variable_names
Set of variable names for boundary.
const std::set<std::string>& Action::getAllTasks ( ) const
inlineinherited

Definition at line 68 of file Action.h.

Referenced by AddKernelAction::act().

68 { return _all_tasks; }
std::set< std::string > _all_tasks
A list of all the tasks that this Action will satisfy.
Definition: Action.h:119
std::string Action::getBaseName ( ) const
inherited

Deprecated name methods, use name()

Definition at line 82 of file Action.C.

Referenced by Action::name().

83 {
84  mooseDeprecated("getBaseName() is deprecated.");
86 }
void mooseDeprecated(Args &&...args)
Emit a deprecated code/feature message with the given stringified, concatenated args.
Definition: MooseError.h:202
std::string _name
The name of the action.
Definition: Action.h:92
std::string baseName(const std::string &name)
Function for string the information before the final / in a parser block.
Definition: MooseUtils.C:331
template<typename T >
const T & Action::getParam ( const std::string &  name) const
inherited

Retrieve a parameter for the object.

Parameters
nameThe name of the parameter
Returns
The value of the parameter

Definition at line 139 of file Action.h.

Referenced by CreateDisplacedProblemAction::act(), AddPeriodicBCAction::act(), AddPeriodicBCAction::autoTranslationBoundaries(), DynamicObjectRegistrationAction::DynamicObjectRegistrationAction(), Action::getAllTasks(), and MooseApp::getCheckpointFiles().

140 {
141  return InputParameters::getParamHelper(name, _pars, static_cast<T *>(0));
142 }
static const T & getParamHelper(const std::string &name, const InputParameters &pars, const T *the_type)
InputParameters _pars
Input parameters for the action.
Definition: Action.h:86
const std::string & name() const
The name of the action.
Definition: Action.h:51
std::string Action::getShortName ( ) const
inherited

DEPRECATED METHODS.

Definition at line 75 of file Action.C.

Referenced by Action::name().

76 {
77  mooseDeprecated("getShortName() is deprecated.");
79 }
void mooseDeprecated(Args &&...args)
Emit a deprecated code/feature message with the given stringified, concatenated args.
Definition: MooseError.h:202
std::string shortName(const std::string &name)
Function for stripping name after the file / in parser block.
Definition: MooseUtils.C:325
std::string _name
The name of the action.
Definition: Action.h:92
template<typename T >
bool MaterialOutputAction::hasProperty ( const std::string &  property_name)
private

Helper method for testing if the material exists as a block or boundary material.

Template Parameters
TThe property type (e.g., REAL)
Parameters
property_nameThe name of the property to test

Definition at line 117 of file MaterialOutputAction.h.

118 {
119  if (_block_material_data->haveProperty<T>(property_name) ||
120  _boundary_material_data->haveProperty<T>(property_name))
121  return true;
122  else
123  return false;
124 }
std::shared_ptr< MaterialData > _boundary_material_data
Pointer the MaterialData object storing the boundary restricted materials.
std::shared_ptr< MaterialData > _block_material_data
Pointer the MaterialData object storing the block restricted materials.
bool Action::isParamValid ( const std::string &  name) const
inlineinherited

Definition at line 80 of file Action.h.

Referenced by CopyNodalVarsAction::act(), SetAdaptivityOptionsAction::act(), CreateProblemAction::act(), SetupMeshAction::act(), CreateDisplacedProblemAction::act(), AddAuxVariableAction::act(), AddVariableAction::act(), AddVariableAction::addVariable(), AddPeriodicBCAction::autoTranslationBoundaries(), DynamicObjectRegistrationAction::DynamicObjectRegistrationAction(), and SetupMeshAction::setupMesh().

80 { return _pars.isParamValid(name); }
bool isParamValid(const std::string &name) const
This method returns parameters that have been initialized in one fashion or another, i.e.
InputParameters _pars
Input parameters for the action.
Definition: Action.h:86
const std::string & name() const
The name of the action.
Definition: Action.h:51
template<>
void MaterialOutputAction::materialOutputHelper ( const std::string &  material_name,
std::shared_ptr< Material material 
)
private
template<>
void MaterialOutputAction::materialOutputHelper ( const std::string &  material_name,
std::shared_ptr< Material material 
)
private
template<>
void MaterialOutputAction::materialOutputHelper ( const std::string &  material_name,
std::shared_ptr< Material material 
)
private
template<typename T >
void MaterialOutputAction::materialOutputHelper ( const std::string &  property_name,
std::shared_ptr< Material material 
)
private

Template method for creating the necessary objects for the various material property types.

Template Parameters
TThe type of material property that automatic output is being performed
Parameters
property_nameThe name of the material property to output
materialA pointer to the Material object containing the property of interest

By default this function produces an mooseError, you must create a specialization for any type that you wish to have the automatic output capability. Also, you need to add a test for this type within the act() method.

Definition at line 109 of file MaterialOutputAction.h.

111 {
112  mooseError("Unknown type, you must create a specialization of materialOutputHelper");
113 }
void mooseError(Args &&...args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:182
template<>
void MaterialOutputAction::materialOutputHelper ( const std::string &  property_name,
std::shared_ptr< Material material 
)
private

Definition at line 234 of file MaterialOutputAction.C.

236 {
237  _awh.addActionBlock(createAction("MaterialRealAux", property_name, property_name, material));
238 }
ActionWarehouse & _awh
Reference to ActionWarehouse where we store object build by actions.
Definition: Action.h:122
void addActionBlock(std::shared_ptr< Action > blk)
This method add an Action instance to the warehouse.
std::shared_ptr< MooseObjectAction > createAction(const std::string &type, const std::string &property_name, const std::string &variable_name, std::shared_ptr< Material > material)
A method for creating an AuxVariable and associated action.
template<>
void MaterialOutputAction::materialOutputHelper ( const std::string &  property_name,
std::shared_ptr< Material material 
)
private

Definition at line 242 of file MaterialOutputAction.C.

244 {
245  char suffix[3] = {'x', 'y', 'z'};
246 
247  for (unsigned int i = 0; i < LIBMESH_DIM; ++i)
248  {
249  std::ostringstream oss;
250  oss << property_name << "_" << suffix[i];
251 
252  std::shared_ptr<MooseObjectAction> action = std::static_pointer_cast<MooseObjectAction>(
253  createAction("MaterialRealVectorValueAux", property_name, oss.str(), material));
254  action->getObjectParams().set<unsigned int>("component") = i;
255  _awh.addActionBlock(action);
256  }
257 }
ActionWarehouse & _awh
Reference to ActionWarehouse where we store object build by actions.
Definition: Action.h:122
void addActionBlock(std::shared_ptr< Action > blk)
This method add an Action instance to the warehouse.
std::shared_ptr< MooseObjectAction > createAction(const std::string &type, const std::string &property_name, const std::string &variable_name, std::shared_ptr< Material > material)
A method for creating an AuxVariable and associated action.
template<>
void MaterialOutputAction::materialOutputHelper ( const std::string &  property_name,
std::shared_ptr< Material material 
)
private

Definition at line 261 of file MaterialOutputAction.C.

263 {
264  for (unsigned int i = 0; i < LIBMESH_DIM; ++i)
265  for (unsigned int j = 0; j < LIBMESH_DIM; ++j)
266  {
267  std::ostringstream oss;
268  oss << property_name << "_" << i << j;
269 
270  std::shared_ptr<MooseObjectAction> action = std::static_pointer_cast<MooseObjectAction>(
271  createAction("MaterialRealTensorValueAux", property_name, oss.str(), material));
272  action->getObjectParams().set<unsigned int>("row") = i;
273  action->getObjectParams().set<unsigned int>("column") = j;
274  _awh.addActionBlock(action);
275  }
276 }
ActionWarehouse & _awh
Reference to ActionWarehouse where we store object build by actions.
Definition: Action.h:122
void addActionBlock(std::shared_ptr< Action > blk)
This method add an Action instance to the warehouse.
std::shared_ptr< MooseObjectAction > createAction(const std::string &type, const std::string &property_name, const std::string &variable_name, std::shared_ptr< Material > material)
A method for creating an AuxVariable and associated action.
const std::string& Action::name ( ) const
inlineinherited
InputParameters& Action::parameters ( )
inlineinherited

Definition at line 63 of file Action.h.

Referenced by GlobalParamsAction::remove(), GlobalParamsAction::setDoubleIndexParam(), GlobalParamsAction::setScalarParam(), and GlobalParamsAction::setVectorParam().

63 { return _pars; }
InputParameters _pars
Input parameters for the action.
Definition: Action.h:86
const InputParameters& Action::parameters ( ) const
inlineinherited

Definition at line 64 of file Action.h.

64 { return _pars; }
InputParameters _pars
Input parameters for the action.
Definition: Action.h:86
const std::string& Action::specificTaskName ( ) const
inlineinherited

Definition at line 66 of file Action.h.

66 { return _specific_task_name; }
std::string _specific_task_name
This member will only be populated if this Action instance is only designed to handle one task...
Definition: Action.h:112
const std::string& Action::type ( ) const
inlineinherited

Definition at line 61 of file Action.h.

Referenced by CommonOutputAction::hasConsole().

61 { return _action_type; }
std::string _action_type
Definition: Action.h:95

Member Data Documentation

ActionFactory& Action::_action_factory
protectedinherited
std::string Action::_action_type
protectedinherited

Definition at line 95 of file Action.h.

Referenced by Action::type().

std::set<std::string> Action::_all_tasks
protectedinherited

A list of all the tasks that this Action will satisfy.

Note: That this is not populated at construction time. However, all tasks will be added prior to act().

Definition at line 119 of file Action.h.

Referenced by Action::appendTask(), and Action::getAllTasks().

MooseApp& Action::_app
protectedinherited
ActionWarehouse& Action::_awh
protectedinherited
std::shared_ptr<MaterialData> MaterialOutputAction::_block_material_data
private

Pointer the MaterialData object storing the block restricted materials.

Definition at line 86 of file MaterialOutputAction.h.

Referenced by buildMaterialOutputObjects(), and hasProperty().

std::map<std::string, std::set<SubdomainID> > MaterialOutputAction::_block_variable_map
private

Map of variable name that contains the blocks to which the variable should be restricted.

Definition at line 92 of file MaterialOutputAction.h.

std::shared_ptr<MaterialData> MaterialOutputAction::_boundary_material_data
private

Pointer the MaterialData object storing the boundary restricted materials.

Definition at line 89 of file MaterialOutputAction.h.

Referenced by buildMaterialOutputObjects(), and hasProperty().

const ConsoleStream ConsoleStreamInterface::_console
inherited

An instance of helper class to write streams to the Console objects.

Definition at line 37 of file ConsoleStreamInterface.h.

Referenced by IterationAdaptiveDT::acceptStep(), CreateProblemAction::act(), SetupRecoverFileBaseAction::act(), Adaptivity::adaptMesh(), FEProblemBase::adaptMesh(), FEProblemBase::advanceMultiApps(), SimplePredictor::apply(), FEProblemBase::backupMultiApps(), FEProblemBase::checkProblemIntegrity(), IterationAdaptiveDT::computeAdaptiveDT(), Transient::computeConstrainedDT(), NonlinearSystemBase::computeDamping(), IterationAdaptiveDT::computeDT(), IterationAdaptiveDT::computeFailedDT(), IterationAdaptiveDT::computeInterpolationDT(), FEProblemBase::computeResidualType(), IterationAdaptiveDT::constrainStep(), TimeStepper::constrainStep(), AB2PredictorCorrector::converged(), FEProblemBase::execMultiApps(), FEProblemBase::execMultiAppTransfers(), MultiAppPostprocessorTransfer::execute(), MultiAppPostprocessorInterpolationTransfer::execute(), MultiAppVariableValueSamplePostprocessorTransfer::execute(), MultiAppNearestNodeTransfer::execute(), MultiAppPostprocessorToAuxScalarTransfer::execute(), MultiAppScalarToAuxScalarTransfer::execute(), MultiAppVariableValueSampleTransfer::execute(), MultiAppUserObjectTransfer::execute(), MultiAppInterpolationTransfer::execute(), MultiAppMeshFunctionTransfer::execute(), MultiAppProjectionTransfer::execute(), MultiAppCopyTransfer::execute(), Steady::execute(), MultiAppDTKUserObjectTransfer::execute(), ActionWarehouse::executeActionsWithAction(), ActionWarehouse::executeAllActions(), MultiApp::globalAppToLocal(), InversePowerMethod::init(), NonlinearEigen::init(), Steady::init(), FEProblemBase::initialAdaptMesh(), FEProblemBase::initialSetup(), EigenExecutionerBase::inversePowerIteration(), Transient::keepGoing(), IterationAdaptiveDT::limitDTByFunction(), IterationAdaptiveDT::limitDTToPostprocessorValue(), EigenExecutionerBase::makeBXConsistent(), Console::meshChanged(), MooseObject::mooseDeprecated(), MooseObject::mooseInfo(), MooseObject::mooseWarning(), DOFMapOutput::output(), VariableResidualNormsDebugOutput::output(), Console::output(), ControlOutput::outputActiveObjects(), ControlOutput::outputChangedControls(), ControlOutput::outputControls(), Console::outputInput(), Console::outputPostprocessors(), Console::outputScalarVariables(), Console::outputSystemInformation(), FEProblemBase::possiblyRebuildGeomSearchPatches(), EigenExecutionerBase::postExecute(), ActionWarehouse::printActionDependencySets(), EigenExecutionerBase::printEigenvalue(), MaterialPropertyDebugOutput::printMaterialMap(), SolutionTimeAdaptiveDT::rejectStep(), DT2::rejectStep(), FEProblemBase::restoreMultiApps(), SimplePredictor::shouldApply(), NonlinearSystem::solve(), LStableDirk2::solve(), LStableDirk3::solve(), ImplicitMidpoint::solve(), ExplicitTVDRK2::solve(), AStableDirk4::solve(), LStableDirk4::solve(), ExplicitRK2::solve(), TransientMultiApp::solveStep(), Transient::solveStep(), DT2::step(), AB2PredictorCorrector::step(), NonlinearEigen::takeStep(), FEProblemBase::useFECache(), Console::writeTimestepInformation(), Console::writeVariableNorms(), and FEProblemBase::~FEProblemBase().

const std::string& Action::_current_task
protectedinherited

The current action (even though we have seperate instances for each action)

Definition at line 125 of file Action.h.

Referenced by AddKernelAction::act(), CopyNodalVarsAction::act(), AddScalarKernelAction::act(), SetupMeshAction::act(), SetupMeshCompleteAction::act(), MaterialDerivativeTestAction::act(), and AddNodalNormalsAction::act().

std::shared_ptr<MooseMesh>& Action::_displaced_mesh
protectedinherited
std::shared_ptr<Executioner>& Action::_executioner
protectedinherited

Convenience reference to an executioner.

Definition at line 134 of file Action.h.

Referenced by SetupPredictorAction::act(), and SetupTimeStepperAction::act().

Factory& Action::_factory
protectedinherited
std::set<std::string> MaterialOutputAction::_material_variable_names
private

List of variables for the current Material object.

Definition at line 98 of file MaterialOutputAction.h.

Referenced by buildMaterialOutputObjects(), and createAction().

std::map<OutputName, std::set<std::string> > MaterialOutputAction::_material_variable_names_map
private

Map of output names and list of variables associated with the output.

Definition at line 101 of file MaterialOutputAction.h.

Referenced by buildMaterialOutputObjects().

std::shared_ptr<MooseMesh>& Action::_mesh
protectedinherited
std::string Action::_name
protectedinherited
OutputWarehouse& MaterialOutputAction::_output_warehouse
private

Reference to the OutputWarehouse.

Definition at line 104 of file MaterialOutputAction.h.

Referenced by buildMaterialOutputObjects().

InputParameters Action::_pars
protectedinherited
std::shared_ptr<FEProblemBase>& Action::_problem
protectedinherited

Convenience reference to a problem this action works on.

Definition at line 131 of file Action.h.

Referenced by AddBCAction::act(), AddBoundsVectorsAction::act(), AddInitialConditionAction::act(), AddDiracKernelAction::act(), AddUserObjectAction::act(), CreateExecutionerAction::act(), AddKernelAction::act(), AddMultiAppAction::act(), AddElementalFieldAction::act(), SetAdaptivityOptionsAction::act(), CheckIntegrityAction::act(), AddNodalKernelAction::act(), SetupDampersAction::act(), CopyNodalVarsAction::act(), AddDamperAction::act(), AddMaterialAction::act(), AddDGKernelAction::act(), AddInterfaceKernelAction::act(), AddMarkerAction::act(), AddTransferAction::act(), AddPostprocessorAction::act(), InitProblemAction::act(), AddICAction::act(), AddScalarKernelAction::act(), AddVectorPostprocessorAction::act(), AddIndicatorAction::act(), AddConstraintAction::act(), AddFieldSplitAction::act(), CreateProblemAction::act(), AdaptivityAction::act(), SetupTimeIntegratorAction::act(), SetupTimeStepperAction::act(), CreateDisplacedProblemAction::act(), AddDistributionAction::act(), SetupPreconditionerAction::act(), SetupPredictorAction::act(), AddFunctionAction::act(), SetupResidualDebugAction::act(), MaterialDerivativeTestAction::act(), SetupQuadratureAction::act(), AddSamplerAction::act(), AddAuxVariableAction::act(), AddOutputAction::act(), AddPeriodicBCAction::act(), AddControlAction::act(), act(), SetupPostprocessorDataAction::act(), AddNodalNormalsAction::act(), AddVariableAction::addVariable(), AddPeriodicBCAction::autoTranslationBoundaries(), CheckOutputAction::checkMaterialOutput(), AddVariableAction::getSubdomainIDs(), and AddPeriodicBCAction::setPeriodicVars().

std::string Action::_registered_identifier
protectedinherited

Definition at line 89 of file Action.h.

std::string Action::_specific_task_name
protectedinherited

This member will only be populated if this Action instance is only designed to handle one task.

This happens when an Action is registered with several pieces of syntax in which case separate instances are built to handle the different incoming parameter values.

Definition at line 112 of file Action.h.

Referenced by Action::specificTaskName().

std::set<std::string> MaterialOutputAction::_variable_names
private

Set of variable names for boundary.

Definition at line 95 of file MaterialOutputAction.h.

Referenced by buildMaterialOutputObjects(), and createAction().


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