https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MooseParsedFunctionBase.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// Standard library
13#include <vector>
14#include <memory>
15
16// MOOSE includes
17#include "MooseError.h"
18
19// Forward declarations
20class FEProblemBase;
21class InputParameters;
23
30template <typename T>
32
38{
39public:
45
46 MooseParsedFunctionBase(const InputParameters & parameters);
47
52
53protected:
62 std::string verifyFunction(const std::string & function_str);
63
66
68 const std::vector<std::string> _vars;
69
71 const std::vector<std::string> _vals;
72
74 std::unique_ptr<MooseParsedFunctionWrapper> _function_ptr;
75};
InputParameters validParams()
Creates the 'vars' and 'vals' parameters used by all ParsedFunctions, the parameters provided from th...
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Adds user facing parameters for parsed function.
const std::vector< std::string > _vals
Values passed by the user, they may be Reals for Postprocessors.
std::string verifyFunction(const std::string &function_str)
A helper method to check if the function value contains quotes.
FEProblemBase & _pfb_feproblem
Reference to the FEProblemBase class for this object.
std::unique_ptr< MooseParsedFunctionWrapper > _function_ptr
Pointer to the Parsed function wrapper object for the scalar.
static InputParameters validParams()
Class constructor for the interface.
const std::vector< std::string > _vars
Variables passed to libMesh::ParsedFunction.
virtual ~MooseParsedFunctionBase()
Class destructor.
A wrapper class for creating and evaluating parsed functions via the libMesh::ParsedFunction interfac...