www.mooseframework.org
DerivativeParsedMaterial.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 /****************************************************************/
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = validParams<DerivativeParsedMaterialHelper>();
15  params.addClassDescription("Parsed Function Material with automatic derivatives.");
16  return params;
17 }
18 
19 DerivativeParsedMaterial::DerivativeParsedMaterial(const InputParameters & parameters)
20  : DerivativeParsedMaterialHelper(parameters, USE_MOOSE_NAMES), ParsedMaterialBase(parameters)
21 {
22  // Build function, take derivatives, optimize
26  getParam<std::vector<std::string>>("material_property_names"),
27  _tol_names,
28  _tol_values);
29 }
std::vector< std::string > _constant_expressions
std::vector< std::string > _constant_names
constant vectors
std::string _function
function expression
Helper class to perform the auto derivative taking.
InputParameters validParams< ParsedMaterialBase >()
Helper class for ParsedMaterial and DerivativeParsedMaterial to declare and read the input parameters...
InputParameters validParams< DerivativeParsedMaterial >()
std::vector< std::string > _tol_names
tolerance vectors
InputParameters validParams< DerivativeParsedMaterialHelper >()
void functionParse(const std::string &function_expression)
DerivativeParsedMaterial(const InputParameters &parameters)
std::vector< Real > _tol_values