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