www.mooseframework.org
ParsedMaterial.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 
10 #include "ParsedMaterial.h"
11 
13 
14 template <>
17 {
20  params.addClassDescription("Parsed Function Material.");
21  return params;
22 }
23 
25  : ParsedMaterialHelper(parameters, USE_MOOSE_NAMES), ParsedMaterialBase(parameters)
26 {
27  // Build function and 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
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...
registerMooseObject("MooseApp", ParsedMaterial)
FunctionMaterialBase child class to evaluate a parsed function.
const T & getParam(const std::string &name) const
Retrieve a parameter for the object.
Definition: MooseObject.h:191
InputParameters validParams< ParsedMaterialHelper >()
std::vector< std::string > _tol_names
tolerance vectors
ParsedMaterial(const InputParameters &parameters)
InputParameters validParams< ParsedMaterial >()
Helper class to perform the parsing and optimization of the function expression.
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)
std::vector< Real > _tol_values