www.mooseframework.org
DerivativeParsedMaterial.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
11 
13 
14 template <>
17 {
20  params.addClassDescription("Parsed Function Material with automatic derivatives.");
21  return params;
22 }
23 
25  : DerivativeParsedMaterialHelper(parameters, USE_MOOSE_NAMES), ParsedMaterialBase(parameters)
26 {
27  // Build function, take derivatives, optimize
31  getParam<std::vector<std::string>>("material_property_names"),
32  _tol_names,
33  _tol_values);
34 }
std::vector< std::string > _constant_expressions
std::vector< std::string > _constant_names
constant vectors
std::string _function
function expression
registerMooseObject("MooseApp", DerivativeParsedMaterial)
Helper class to perform the auto derivative taking.
InputParameters validParams< ParsedMaterialBase >()
Helper class for ParsedMaterial and DerivativeParsedMaterial to declare and read the input parameters...
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const T & getParam(const std::string &name) const
Retrieve a parameter for the object.
Definition: MooseObject.h:191
DerivativeFunctionMaterialBase child class to evaluate a parsed function (for example a free energy) ...
InputParameters validParams< DerivativeParsedMaterial >()
std::vector< std::string > _tol_names
tolerance vectors
InputParameters validParams< DerivativeParsedMaterialHelper >()
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump...
void functionParse(const std::string &function_expression)
DerivativeParsedMaterial(const InputParameters &parameters)
std::vector< Real > _tol_values