29 virtual void act()
override;
43 virtual std::vector<std::string>
materialOutput(
const std::string & property_name,
49 const std::string & property_name,
50 const std::string & var_name_base,
60 bool hasProperty(
const std::string & property_name);
88 const std::string & property_name,
89 const std::string & variable_name,
115 template <
typename T>
126 template <
typename T>
137 template <
typename T>
141 return _problem->hasFunctorWithType<T>(property_name, 0);
virtual std::vector< std::string > materialOutput(const std::string &property_name, const MaterialBase &material, bool get_names_only)
A function to be overriden by derived actions to handle a set of material property types...
std::map< OutputName, std::set< std::string > > _material_variable_names_map
Map of output names and list of variables associated with the output.
static InputParameters validParams()
OutputWarehouse & _output_warehouse
Reference to the OutputWarehouse.
bool haveProperty(const std::string &prop_name) const
Returns true if the regular material property exists - defined by any material.
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.
bool hasFunctorProperty(const std::string &property_name)
Helper method for testing if the functor material property exists.
std::set< std::string > _material_variable_names
variables for the current MaterialBase object
Creates AuxVariables and AuxKernels for automatic output of material properties.
InputParameters getParams(const std::string &type, const std::string &property_name, const std::string &variable_name, const MaterialBase &material)
A method for retrieving and partially filling the InputParameters object for an AuxVariable.
const std::string & type() const
Get the type of this class.
bool hasProperty(const std::string &property_name)
Helper method for testing if the material exists as a block or boundary material. ...
Class for storing and utilizing output objects.
bool hasADProperty(const std::string &property_name)
Helper method for testing if the material exists as a block or boundary material. ...
MaterialOutputAction(const InputParameters ¶ms)
const MaterialData * _block_material_data
Pointer the MaterialData object storing the block restricted materials.
bool haveADProperty(const std::string &prop_name) const
Returns true if the AD material property exists - defined by any material.
const bool _output_only_on_timestep_end
Output only on TIMESTEP_END, not on INITIAL?
std::shared_ptr< FEProblemBase > & _problem
Convenience reference to a problem this action works on.
Proxy for accessing MaterialPropertyStorage.
virtual void act() override
Method to add objects to the simulation or perform other setup tasks.
std::vector< std::string > outputHelper(const OutputMetaData &metadata, const std::string &property_name, const std::string &var_name_base, const MaterialBase &material, bool get_names_only)
Universal output object setup function.
MaterialBases compute MaterialProperties.
const MaterialData * _boundary_material_data
Pointer the MaterialData object storing the boundary restricted materials.