https://mooseframework.inl.gov
Loading...
Searching...
No Matches
NSEnergyThermalFlux.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 "NSKernel.h"
13#include "NSTemperatureDerivs.h"
14
15// ForwardDeclarations
16
23{
24public:
26
28
29protected:
30 virtual Real computeQpResidual();
31 virtual Real computeQpJacobian();
32 virtual Real computeQpOffDiagJacobian(unsigned int jvar);
33
34 // Gradients
36
37 // Material properties
39
40 // A helper object for computing temperature gradient and Hessians.
41 // Constructed via a reference to ourself so we can access all of our data.
43
44 // Declare ourselves a friend to the helper class
45 template <class U>
46 friend class NSTemperatureDerivs;
47
48private:
49 // Computes the Jacobian value (on or off-diagonal) for
50 // var_number, which has been mapped to
51 // 0 = rho
52 // 1 = rho*u
53 // 2 = rho*v
54 // 3 = rho*w
55 // 4 = rho*E
56 Real computeJacobianHelper_value(unsigned var_number);
57
58 // Single vector to refer to all gradients. We have to store
59 // pointers since you can't have a vector<Foo&>. Initialized in
60 // the ctor.
61 std::vector<const VariableGradient *> _gradU;
62};
const InputParameters & parameters() const
This class is responsible for computing residuals and Jacobian terms for the k * grad(T) * grad(phi) ...
virtual Real computeQpResidual()
virtual Real computeQpJacobian()
const MaterialProperty< Real > & _thermal_conductivity
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
NSTemperatureDerivs< NSEnergyThermalFlux > _temp_derivs
std::vector< const VariableGradient * > _gradU
static InputParameters validParams()
Real computeJacobianHelper_value(unsigned var_number)
const VariableGradient & _grad_temp
This class couples together all the variables for the compressible Navier-Stokes equations to allow t...
Definition NSKernel.h:26
Class outside the Moose hierarchy that contains common functionality for computing derivatives of the...
VariableGradientTempl< false > VariableGradient