https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
20public:
22
23 ParsedMaterialBase(const InputParameters & parameters);
24 virtual ~ParsedMaterialBase() = default;
25
26protected:
28 const std::string _function_param;
29
31 const std::string _function;
32
34 std::vector<std::string> _constant_names;
35 std::vector<std::string> _constant_expressions;
36
38 std::vector<std::string> _tol_names;
39 std::vector<Real> _tol_values;
40
42 std::vector<MooseFunctorName> _functor_names;
43 std::vector<std::string> _functor_symbols;
44
50 void validateVectorNames(const std::set<std::string> & reserved_names = {});
51};
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Helper class for ParsedMaterial and DerivativeParsedMaterial to declare and read the input parameters...
virtual ~ParsedMaterialBase()=default
std::vector< MooseFunctorName > _functor_names
Functor vectors (names, count, and symbols)
const std::string _function_param
Parameter that the function comes from.
std::vector< std::string > _tol_names
tolerance vectors
std::vector< Real > _tol_values
std::vector< std::string > _constant_names
constant vectors
const std::string _function
function expression
std::vector< std::string > _functor_symbols
static InputParameters validParams()
std::vector< std::string > _constant_expressions
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...