www.mooseframework.org
NSEnergyThermalFlux.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 {
24 public:
26 
28 
29 protected:
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 
48 private:
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 };
OutputTools< Real >::VariableGradient VariableGradient
NSEnergyThermalFlux(const InputParameters &parameters)
This class couples together all the variables for the compressible Navier-Stokes equations to allow t...
Definition: NSKernel.h:25
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
virtual Real computeQpResidual()
NSTemperatureDerivs< NSEnergyThermalFlux > _temp_derivs
Real computeJacobianHelper_value(unsigned var_number)
virtual Real computeQpJacobian()
static InputParameters validParams()
const VariableGradient & _grad_temp
std::vector< const VariableGradient * > _gradU
const MaterialProperty< Real > & _thermal_conductivity
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
This class is responsible for computing residuals and Jacobian terms for the k * grad(T) * grad(phi) ...
const InputParameters & parameters() const