https://mooseframework.inl.gov
Loading...
Searching...
No Matches
LinearWCNSFV2PMomentumDriftFlux.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://www.mooseframework.org
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 "MathFVUtils.h"
13#include "LinearFVFluxKernel.h"
14
17
23{
24public:
27
28 virtual Real computeElemMatrixContribution() override;
29
30 virtual Real computeNeighborMatrixContribution() override;
31
32 virtual Real computeElemRightHandSideContribution() override;
33
34 virtual Real computeNeighborRightHandSideContribution() override;
35
37 {
38 return 0;
39 }
40 virtual Real computeBoundaryRHSContribution(const LinearFVBoundaryCondition & bc) override;
41
48 virtual void setupFaceData(const FaceInfo * face_info) override;
49
50protected:
54
58
60 void computeFlux();
61
63 const unsigned int _dim;
64
67
70
73
80
82 const unsigned int _index;
83
86
90 std::pair<Real, Real> _velocity_interp_coeffs;
91};
Adds drift flux kernel coming for two-phase mixture model for the linear finite volume discretization...
const unsigned int _index
The index of the momentum component.
const Moose::Functor< Real > & _u_slip
slip velocity in direction x
const Moose::Functor< Real > *const _v_slip
slip velocity in direction y
virtual Real computeBoundaryRHSContribution(const LinearFVBoundaryCondition &bc) override
virtual Real computeElemRightHandSideContribution() override
const RhieChowMassFlux & _mass_flux_provider
The Rhie-Chow user object that provides us with the face velocity.
Real computeInternalAdvectionNeighborMatrixContribution()
Computes the matrix contribution of the advective flux on the neighbor side of current face when the ...
Real computeInternalAdvectionElemMatrixContribution()
Computes the matrix contribution of the advective flux on the element side of current face when the f...
virtual Real computeBoundaryMatrixContribution(const LinearFVBoundaryCondition &) override
virtual void setupFaceData(const FaceInfo *face_info) override
Set the current FaceInfo object.
const Moose::Functor< Real > & _f_d
Dispersed phase fraction.
const Moose::FV::InterpMethod _density_interp_method
The face interpolation method for the density.
const Moose::Functor< Real > & _rho_d
Dispersed phase density.
const Moose::Functor< Real > *const _w_slip
slip velocity in direction z
const unsigned int _dim
The dimension of the simulation.
virtual Real computeNeighborRightHandSideContribution() override
std::pair< Real, Real > _velocity_interp_coeffs
Advected coefficients.
User object responsible for determining the face fluxes using the Rhie-Chow interpolation in a segreg...