Loading [MathJax]/extensions/tex2jax.js
https://mooseframework.inl.gov
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
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 
12 #include "GeneralPostprocessor.h"
13 #include "FunctionParserUtils.h"
14 
19 {
20 public:
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 
30 private:
32  const unsigned int _n_pp;
33 
35  std::vector<const PostprocessorValue *> _pp_values;
36 
38  const bool _use_t;
39 
42 
45 
48 };
std::vector< const PostprocessorValue * > _pp_values
values of the postprocessors part of the parsed expression
std::shared_ptr< SymFunction > SymFunctionPtr
Shorthand for an smart pointer to an autodiff function parser object.
Base class template for functor objects.
Definition: MooseFunctor.h:137
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual void finalize() override final
This is called after execute() and after threadJoin()! This is probably where you want to do MPI comm...
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
const bool _use_t
whether time is part of the parsed expression
const unsigned int _n_pp
number of postprocessors in parsed expression
Real _value
This post-processor value.
Real PostprocessorValue
various MOOSE typedefs
Definition: MooseTypes.h:202
virtual void initialize() override final
Called before execute() is ever called so that data can be cleared.
usingFunctionParserUtilsMembers(false)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void execute() override final
Execute method.
SymFunctionPtr _func_F
function parser object for the resudual and on-diagonal Jacobian
Postprocessor that evaluates a parsed function expression.
const InputParameters & parameters() const
Get the parameters of the object.
static InputParameters validParams()
ParsedPostprocessor(const InputParameters &parameters)
virtual PostprocessorValue getValue() const override final
This will get called to actually grab the final value the postprocessor has calculated.