https://mooseframework.inl.gov
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 
15 class RhieChowMassFlux;
17 
23 {
24 public:
27 
28  virtual Real computeElemMatrixContribution() override;
29 
30  virtual Real computeNeighborMatrixContribution() override;
31 
32  virtual Real computeElemRightHandSideContribution() override;
33 
35 
37  {
38  return 0;
39  }
41 
48  virtual void setupFaceData(const FaceInfo * face_info) override;
49 
50 protected:
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 };
const Moose::Functor< Real > & _rho_d
Dispersed phase density.
virtual Real computeBoundaryRHSContribution(const LinearFVBoundaryCondition &bc) override
virtual void setupFaceData(const FaceInfo *face_info) override
Set the current FaceInfo object.
User object responsible for determining the face fluxes using the Rhie-Chow interpolation in a segreg...
const unsigned int _index
The index of the momentum component.
virtual Real computeNeighborMatrixContribution() override
const Moose::Functor< Real > & _u_slip
slip velocity in direction x
Adds drift flux kernel coming for two-phase mixture model for the linear finite volume discretization...
const Moose::Functor< Real > *const _v_slip
slip velocity in direction y
const RhieChowMassFlux & _mass_flux_provider
The Rhie-Chow user object that provides us with the face velocity.
const Moose::Functor< Real > & _f_d
Dispersed phase fraction.
std::pair< Real, Real > _velocity_interp_coeffs
Advected coefficients.
Real computeInternalAdvectionElemMatrixContribution()
Computes the matrix contribution of the advective flux on the element side of current face when the f...
LinearWCNSFV2PMomentumDriftFlux(const InputParameters &params)
virtual Real computeNeighborRightHandSideContribution() override
virtual Real computeElemRightHandSideContribution() override
const Moose::FV::InterpMethod _density_interp_method
The face interpolation method for the density.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Real computeInternalAdvectionNeighborMatrixContribution()
Computes the matrix contribution of the advective flux on the neighbor side of current face when the ...
const Moose::Functor< Real > *const _w_slip
slip velocity in direction z
const unsigned int _dim
The dimension of the simulation.
virtual Real computeBoundaryMatrixContribution(const LinearFVBoundaryCondition &) override