https://mooseframework.inl.gov
MfrPostprocessor.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 // MOOSE includes
14 
15 #include <unordered_map>
16 
21 {
22 public:
24 
26  void setMfr(const FaceInfo * fi, Real mfr, bool includes_area = true);
27 
28 protected:
29  virtual Real computeQpIntegral() override;
30  virtual Real computeIntegral() override;
31 
32  std::unordered_map<const FaceInfo *, Real> _fi_to_mfr;
33 };
This postprocessor computes the volumetric flow rate through a boundary.
std::unordered_map< const FaceInfo *, Real > _fi_to_mfr
static InputParameters validParams()
virtual Real computeQpIntegral() override
void setMfr(const FaceInfo *fi, Real mfr, bool includes_area=true)
MfrPostprocessor(const InputParameters &parameters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
virtual Real computeIntegral() override