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