www.mooseframework.org
NSEnergyViscousBC.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 "NSIntegratedBC.h"
14 #include "NSTemperatureDerivs.h"
15 
16 // Forward Declarations
17 class NSEnergyViscousBC;
18 
19 template <>
20 InputParameters validParams<NSEnergyViscousBC>();
21 
34 {
35 public:
36  NSEnergyViscousBC(const InputParameters & parameters);
37 
38 protected:
42  virtual Real computeQpResidual();
43  virtual Real computeQpJacobian();
44  virtual Real computeQpOffDiagJacobian(unsigned jvar);
45 
46  // Coupled gradients
47  const VariableGradient & _grad_temperature;
48 
49  // Material properties
50  const MaterialProperty<Real> & _thermal_conductivity;
51 
52  // An object for computing viscous stress tensor derivatives.
53  // Constructed via a reference to ourself so we can access all of our data.
55 
56  // Declare ourselves friend to the helper class.
57  template <class U>
59 
60  // A helper object for computing temperature gradient and Hessians.
61  // Constructed via a reference to ourself so we can access all of our data.
63 
64  // Declare ourselves a friend to the helper class
65  template <class U>
66  friend class NSTemperatureDerivs;
67 
68  // Single vector to refer to all gradients. Initialized in
69  // the ctor.
70  std::vector<const VariableGradient *> _gradU;
71 };
72 
NSViscStressTensorDerivs.h
NSEnergyViscousBC::_grad_temperature
const VariableGradient & _grad_temperature
Definition: NSEnergyViscousBC.h:47
NSEnergyViscousBC::computeQpResidual
virtual Real computeQpResidual()
Just like other kernels, we must overload the Residual and Jacobian contributions....
Definition: NSEnergyViscousBC.C:44
validParams< NSEnergyViscousBC >
InputParameters validParams< NSEnergyViscousBC >()
Definition: NSEnergyViscousBC.C:18
NSEnergyViscousBC::_thermal_conductivity
const MaterialProperty< Real > & _thermal_conductivity
Definition: NSEnergyViscousBC.h:50
NSViscStressTensorDerivs< NSEnergyViscousBC >
NSTemperatureDerivs< NSEnergyViscousBC >
NSIntegratedBC
This class couples together all the variables for the compressible Navier-Stokes equations to allow t...
Definition: NSIntegratedBC.h:29
NSEnergyViscousBC::computeQpJacobian
virtual Real computeQpJacobian()
Definition: NSEnergyViscousBC.C:62
NSEnergyViscousBC::_temp_derivs
NSTemperatureDerivs< NSEnergyViscousBC > _temp_derivs
Definition: NSEnergyViscousBC.h:62
NSEnergyViscousBC
This class corresponds to the viscous part of the "natural" boundary condition for the energy equatio...
Definition: NSEnergyViscousBC.h:33
NSEnergyViscousBC::_gradU
std::vector< const VariableGradient * > _gradU
Definition: NSEnergyViscousBC.h:70
NSEnergyViscousBC::_vst_derivs
NSViscStressTensorDerivs< NSEnergyViscousBC > _vst_derivs
Definition: NSEnergyViscousBC.h:54
NSTemperatureDerivs.h
NSIntegratedBC.h
NSEnergyViscousBC::computeQpOffDiagJacobian
virtual Real computeQpOffDiagJacobian(unsigned jvar)
Definition: NSEnergyViscousBC.C:92
NSEnergyViscousBC::NSEnergyViscousBC
NSEnergyViscousBC(const InputParameters &parameters)
Definition: NSEnergyViscousBC.C:25