https://mooseframework.inl.gov
GeneralSensorPostprocessor.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 <iostream>
14 using namespace std;
15 #include "MooseRandom.h"
16 
21 {
22 public:
24 
25  GeneralSensorPostprocessor(const InputParameters & parameters);
26 
27  virtual void initialize() override;
28  virtual void execute() override {}
30  virtual PostprocessorValue getValue() const override;
31 
32 protected:
34  std::vector<Real> elementwiseMultiply(std::vector<Real> & vec1, std::vector<Real> & vec2);
36  Real getDelayedInputSignal();
38  virtual vector<Real> getRVector();
40  Real getIntegral(std::vector<Real> integrand);
41 
67  std::vector<Real> & _time_values;
69  std::vector<Real> & _input_signal_values;
71  std::vector<Real> & _integrand;
73  std::vector<Real> & _R_function_values;
75  const unsigned int _seed;
83 };
const Function & _signalToNoise_function
Signal to noise function.
std::vector< Real > & _input_signal_values
Input Signal vector for calculating delay.
const Function & _uncertainty_std_dev_function
Uncertainty std dev function.
const Function & _efficiency_function
Efficiency function.
void initialize(EquationSystems &es, const std::string &system_name)
const Function & _R_function
Function R for integration term.
const Function & _drift_function
The drift function to be evaluated and returned.
std::vector< Real > & _R_function_values
vector to store R function values
const Function & _noise_std_dev_function
Noise standard deviation function.
InputParameters validParams()
Real PostprocessorValue
std::vector< Real > & _integrand
Vector to store integrand data for numerical integration.
Real _sensor_value
for getValue() output
const Real _proportional_weight
A weighing factor for the proportional term.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const PostprocessorValue & _pp_old
The old value of the postprocessor.
Real _delay_value
Variable to store delay value.
virtual PostprocessorValue getValue() const=0
const PostprocessorValue & _input_signal
A postprocessor used as the sensor input signal.
std::vector< Real > & _time_values
Time vector for calculating delay.
Real _integration_value
the output of the integrand
A generalized sensor Postprocessor.
const Real _integral_weight
A weighing factor for the integral term.
const Real _vector_size
Size of vector to be stored.
const unsigned int _seed
To get fixed seed random numbers.
const Function & _delay_function
Delay function.