https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ParsedPostprocessor.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
13#include "FunctionParserUtils.h"
14
19{
20public:
22
24
25 virtual void initialize() override final;
26 virtual void execute() override final;
27 virtual void finalize() override final;
28 virtual PostprocessorValue getValue() const override final;
29
30private:
32 const unsigned int _n_pp;
33
35 std::vector<const PostprocessorValue *> _pp_values;
36
38 const bool _use_t;
39
42
44 Real _value;
45
48};
Real PostprocessorValue
various MOOSE typedefs
Definition MooseTypes.h:230
std::shared_ptr< SymFunction > SymFunctionPtr
Shorthand for an smart pointer to an autodiff function parser object.
GenericReal< is_ad > evaluate(SymFunctionPtr &, const std::string &object_name="")
Evaluate FParser object and check EvalError.
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
Base class template for functor objects.
Postprocessor that evaluates a parsed function expression.
const unsigned int _n_pp
number of postprocessors in parsed expression
virtual void initialize() override final
Called before execute() is ever called so that data can be cleared.
Real _value
This post-processor value.
virtual void finalize() override final
This is called after execute() and after threadJoin()! This is probably where you want to do MPI comm...
virtual void execute() override final
Execute method.
usingFunctionParserUtilsMembers(false)
virtual PostprocessorValue getValue() const override final
This will get called to actually grab the final value the postprocessor has calculated.
const bool _use_t
whether time is part of the parsed expression
std::vector< const PostprocessorValue * > _pp_values
values of the postprocessors part of the parsed expression
SymFunctionPtr _func_F
function parser object for the resudual and on-diagonal Jacobian
static InputParameters validParams()