https://mooseframework.inl.gov
ParsedMaterialBase.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
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 #pragma once
11 
12 #include "InputParameters.h"
13 
19 {
20 public:
22 
23  ParsedMaterialBase(const InputParameters & parameters, const MooseObject * obj);
24 
25 protected:
28 
30  std::string _function;
31 
33  std::vector<std::string> _constant_names;
34  std::vector<std::string> _constant_expressions;
35 
37  std::vector<std::string> _tol_names;
38  std::vector<Real> _tol_values;
39 
41  std::vector<MooseFunctorName> _functor_names;
42  std::vector<std::string> _functor_symbols;
43 
49  void validateVectorNames(const std::set<std::string> & reserved_names = {});
50 };
std::vector< std::string > _constant_expressions
std::vector< std::string > _constant_names
constant vectors
std::string _function
function expression
Helper class for ParsedMaterial and DerivativeParsedMaterial to declare and read the input parameters...
static InputParameters validParams()
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
ParsedMaterialBase(const InputParameters &parameters, const MooseObject *obj)
std::vector< std::string > _tol_names
tolerance vectors
void validateVectorNames(const std::set< std::string > &reserved_names={})
Function to ensure that the names of constants, tolerances, and functors do not overlap with each oth...
Every object that can be built by the factory should be derived from this class.
Definition: MooseObject.h:28
std::vector< std::string > _functor_symbols
const MooseObject *const _derived_object
Pointer to the MooseObject (to call paramError)
std::vector< MooseFunctorName > _functor_names
Functor vectors (names, count, and symbols)
std::vector< Real > _tol_values