https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MassDiffusionBaseGasMixDGKernel.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 "ADDGKernel.h"
13
18{
19public:
21
23
24protected:
26
30 virtual ADReal computeQpFlux() const = 0;
31
38 void computePositionChanges(Real & dx, Real & dx_side) const;
39
48 ADReal
49 linearlyInterpolate(const ADReal & y_elem, const ADReal & y_neig, Real dx, Real dx_side) const;
50
58 ADReal computeGradient(const ADReal & y_elem, const ADReal & y_neig, Real dx) const;
59
72
77};
DualNumber< Real, DNDerivativeType, true > ADReal
Adds mass diffusion for FlowChannelGasMix.
ADReal computeGradient(const ADReal &y_elem, const ADReal &y_neig, Real dx) const
Computes the gradient of a quantity in the channel direction.
const ADVariableValue & _A_linear
Cross-sectional area, linear.
ADReal linearlyInterpolate(const ADReal &y_elem, const ADReal &y_neig, Real dx, Real dx_side) const
Linearly interpolates a quantity to the side position.
const MaterialProperty< RealVectorValue > & _dir
Flow channel direction.
const ADMaterialProperty< Real > & _rho_neig
Density for neighbor element.
const ADMaterialProperty< Real > & _D_elem
Diffusion coefficient for current element.
const ADMaterialProperty< Real > & _D_neig
Diffusion coefficient for neighbor element.
const ADMaterialProperty< Real > & _rho_elem
Density for current element.
virtual ADReal computeQpResidual(Moose::DGResidualType type) override
const ADMaterialProperty< Real > & _mass_fraction_elem
Mass fraction for current element.
virtual ADReal computeQpFlux() const =0
Computes the flux that will be applied to both sides for a q-point.
void computePositionChanges(Real &dx, Real &dx_side) const
Computes the changes in position between elements and side.
const ADMaterialProperty< Real > & _mass_fraction_neig
Mass fraction for neighbor element.
const InputParameters & parameters() const
const std::string & type() const
VariableValueTempl< true > ADVariableValue
DGResidualType