https://mooseframework.inl.gov
ParsedFunctionControl.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 "THMControl.h"
14 
16 
21 {
22 public:
24 
25  virtual void initialSetup() override;
26  virtual void init() override;
27  virtual void execute() override;
28 
29 protected:
33  void buildFunction();
34 
36  std::string _function;
40  std::unique_ptr<THMParsedFunctionWrapper> _function_ptr;
41 
42 public:
44 };
std::string _function
The user-defined function to be evaluated.
This control block takes a parsed function and evaluates it.
virtual void init() override
void buildFunction()
Build the function that will be evaluated by this control.
virtual void initialSetup() override
Real & _value
The function value.
A wrapper class for creating and evaluating parsed functions via the libMesh::ParsedFunction interfac...
std::unique_ptr< THMParsedFunctionWrapper > _function_ptr
Pointer to the Parsed function wrapper object.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void execute() override
static InputParameters validParams()
const InputParameters & parameters() const
ParsedFunctionControl(const InputParameters &parameters)