Loading [MathJax]/extensions/tex2jax.js
https://mooseframework.inl.gov
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
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
20 class FEProblemBase;
21 class InputParameters;
23 
30 template <typename T>
32 
38 {
39 public:
45 
46  MooseParsedFunctionBase(const InputParameters & parameters);
47 
51  virtual ~MooseParsedFunctionBase();
52 
53 protected:
62  const 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 };
std::unique_ptr< MooseParsedFunctionWrapper > _function_ptr
Pointer to the Parsed function wrapper object for the scalar.
Adds user facing parameters for parsed function.
virtual ~MooseParsedFunctionBase()
Class destructor.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
FEProblemBase & _pfb_feproblem
Reference to the FEProblemBase class for this object.
const std::vector< std::string > _vals
Values passed by the user, they may be Reals for Postprocessors.
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
const std::string verifyFunction(const std::string &function_str)
A helper method to check if the function value contains quotes.
InputParameters validParams()
Creates the &#39;vars&#39; and &#39;vals&#39; parameters used by all ParsedFunctions, the parameters provided from th...
static InputParameters validParams()
Class constructor for the interface.
const std::vector< std::string > _vars
Variables passed to libMesh::ParsedFunction.
A wrapper class for creating and evaluating parsed functions via the libMesh::ParsedFunction interfac...
MooseParsedFunctionBase(const InputParameters &parameters)