https://mooseframework.inl.gov
LinearFVEnergyAdvection.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 #include "LinearFVFluxKernel.h"
13 #include "RhieChowMassFlux.h"
15 
21 {
22 public:
25 
26  virtual Real computeElemMatrixContribution() override;
27 
28  virtual Real computeNeighborMatrixContribution() override;
29 
30  virtual Real computeElemRightHandSideContribution() override;
31 
33 
35 
37 
38  virtual void setupFaceData(const FaceInfo * face_info) override;
39 
40 protected:
43  {
44  ENTHALPY = 0,
45  TEMPERATURE = 1
46  };
47 
50 
53  const Real _cp;
54 
57 
58 private:
61  std::pair<Real, Real> _advected_interp_coeffs;
62 
66 
69 };
virtual Real computeElemMatrixContribution() override
static InputParameters validParams()
virtual Real computeNeighborRightHandSideContribution() override
User object responsible for determining the face fluxes using the Rhie-Chow interpolation in a segreg...
AdvectedQuantityEnum _advected_quantity
The advected quantity.
An advection kernel that implements the advection term for the enthalpy in the energy equation...
virtual Real computeBoundaryMatrixContribution(const LinearFVBoundaryCondition &bc) override
virtual void setupFaceData(const FaceInfo *face_info) override
const RhieChowMassFlux & _mass_flux_provider
The Rhie-Chow user object that provides us with the face velocity.
Moose::FV::InterpMethod _advected_interp_method
The interpolation method to use for the advected quantity.
Real _face_mass_flux
Container for the mass flux on the face which will be reused in the advection term&#39;s matrix and right...
std::pair< Real, Real > _advected_interp_coeffs
Container for the current advected interpolation coefficients on the face to make sure we don&#39;t compu...
AdvectedQuantityEnum
The advected quantity options.
const Real _cp
The constant specific heat value.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
LinearFVEnergyAdvection(const InputParameters &params)
virtual Real computeNeighborMatrixContribution() override
virtual Real computeBoundaryRHSContribution(const LinearFVBoundaryCondition &bc) override
virtual Real computeElemRightHandSideContribution() override