https://mooseframework.inl.gov
PressureDrop.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 
20 {
21 public:
23 
25 
26  virtual Real computeQpIntegral() override { mooseError("Not implemented"); };
27 
28  virtual void initialize() override;
29  virtual void meshChanged() override;
30  virtual void execute() override;
31  virtual void threadJoin(const UserObject & y) override;
32  virtual void finalize() override;
33  virtual Real getValue() const override;
34 
35 protected:
40 
45 
53  std::vector<BoundaryID> _upstream_boundaries;
55  std::vector<BoundaryID> _downstream_boundaries;
64 };
virtual void meshChanged() override
Definition: PressureDrop.C:117
const Moose::Functor< Real > & _pressure
The pressure functor.
Definition: PressureDrop.h:47
virtual void finalize() override
Definition: PressureDrop.C:318
Real computeQpWeightedPressureIntegral() const
Computes the contribution on a Qp to the weighted pressure integral.
Definition: PressureDrop.C:283
Moose::FV::InterpMethod _weight_interp_method
The interpolation method to use for the weighting functor quantity.
Definition: PressureDrop.h:51
Real computeFaceInfoWeightIntegral(const FaceInfo *fi) const
Computes the contribution on a face to the integral of the weight.
Definition: PressureDrop.C:257
const std::vector< double > y
virtual Real computeQpIntegral() override
Definition: PressureDrop.h:26
static InputParameters validParams()
Definition: PressureDrop.C:20
Real _weighted_pressure_upstream
The weighted integral of the upstream pressure.
Definition: PressureDrop.h:57
virtual void execute() override
Definition: PressureDrop.C:123
This postprocessor computes the pressure drop between an upstream and a downstream boundary...
Definition: PressureDrop.h:19
const Moose::Functor< RealVectorValue > *const _weighting_functor
A weighting functor if the pressure profile is not uniform.
Definition: PressureDrop.h:49
Real _weighted_pressure_downstream
The weighted integral of the downstream pressure.
Definition: PressureDrop.h:59
Real _weight_downstream
The integral of the weights on the downstream boundary, for normalization.
Definition: PressureDrop.h:63
PressureDrop(const InputParameters &parameters)
Definition: PressureDrop.C:42
Real computeQpWeightIntegral() const
Computes the contribution on a Qp to the integral of the weight.
Definition: PressureDrop.C:296
virtual void initialize() override
Definition: PressureDrop.C:104
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Real _weight_upstream
The integral of the weights on the upstream boundary, for normalization.
Definition: PressureDrop.h:61
std::vector< BoundaryID > _upstream_boundaries
Vector of the ids of the upstream boundaries.
Definition: PressureDrop.h:53
virtual Real getValue() const override
Definition: PressureDrop.C:327
void mooseError(Args &&... args) const
const InputParameters & parameters() const
std::vector< BoundaryID > _downstream_boundaries
Vector of the ids of the downstream boundaries.
Definition: PressureDrop.h:55
Real computeFaceInfoWeightedPressureIntegral(const FaceInfo *fi) const
Computes the contribution on a face to the weighted pressure integral.
Definition: PressureDrop.C:219
virtual void threadJoin(const UserObject &y) override
Definition: PressureDrop.C:308