https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
21public:
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
35protected:
39 Real computeFaceInfoWeightIntegral(const FaceInfo * fi) const;
40
44 Real computeQpWeightIntegral() const;
45
53 std::vector<BoundaryID> _upstream_boundaries;
55 std::vector<BoundaryID> _downstream_boundaries;
64};
const std::vector< double > y
const InputParameters & parameters() const
void mooseError(Args &&... args) const
This postprocessor computes the pressure drop between an upstream and a downstream boundary.
Real computeFaceInfoWeightedPressureIntegral(const FaceInfo *fi) const
Computes the contribution on a face to the weighted pressure integral.
Real computeFaceInfoWeightIntegral(const FaceInfo *fi) const
Computes the contribution on a face to the integral of the weight.
Real _weighted_pressure_upstream
The weighted integral of the upstream pressure.
const Moose::Functor< Real > & _pressure
The pressure functor.
virtual Real computeQpIntegral() override
static InputParameters validParams()
std::vector< BoundaryID > _upstream_boundaries
Vector of the ids of the upstream boundaries.
Moose::FV::InterpMethod _weight_interp_method
The interpolation method to use for the weighting functor quantity.
virtual void finalize() override
virtual void execute() override
Real _weight_downstream
The integral of the weights on the downstream boundary, for normalization.
virtual void meshChanged() override
const Moose::Functor< RealVectorValue > *const _weighting_functor
A weighting functor if the pressure profile is not uniform.
virtual Real getValue() const override
Real computeQpWeightedPressureIntegral() const
Computes the contribution on a Qp to the weighted pressure integral.
virtual void initialize() override
virtual void threadJoin(const UserObject &y) override
Real _weighted_pressure_downstream
The weighted integral of the downstream pressure.
Real _weight_upstream
The integral of the weights on the upstream boundary, for normalization.
Real computeQpWeightIntegral() const
Computes the contribution on a Qp to the integral of the weight.
std::vector< BoundaryID > _downstream_boundaries
Vector of the ids of the downstream boundaries.