https://mooseframework.inl.gov
Loading...
Searching...
No Matches
WCNSFVEnergyFluxBC.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 "WCNSFVFluxBCBase.h"
13
15
20{
21public:
23 WCNSFVEnergyFluxBC(const InputParameters & params);
24
25protected:
26 ADReal computeQpResidual() override;
27
29 virtual bool isInflow() const override;
30
33
36
39
42
45
48
51
52private:
54 template <typename T>
55 ADReal enthalpy(const T & loc_arg, const Moose::StateArg & state, const bool inflow) const;
56};
DualNumber< Real, DNDerivativeType, true > ADReal
const double T
Real PostprocessorValue
Common class for single phase fluid properties.
Flux boundary condition for the weakly compressible energy equation.
ADReal enthalpy(const T &loc_arg, const Moose::StateArg &state, const bool inflow) const
Computes the enthalpy using what the user has specified.
const Moose::Functor< ADReal > * _cp
Fluid specific heat capacity functor.
static InputParameters validParams()
const Moose::Functor< ADReal > & _temperature
Fluid temperature functor.
virtual bool isInflow() const override
override because energy_pp is not considered in base class
const Moose::Functor< ADReal > *const _h_fluid
Pointer to the specific enthalpy functor.
const Moose::Functor< ADReal > *const _pressure
Fluid pressure functor.
const PostprocessorValue *const _energy_pp
Postprocessor with the inlet energy flow rate.
const PostprocessorValue *const _temperature_pp
Postprocessor with the inlet temperature.
const SinglePhaseFluidProperties *const _fluid
Fluid properties object.
ADReal computeQpResidual() override
Base class for weakly compressible flux boundary conditions.