www.mooseframework.org
CNSFVKernel.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef CNSFVKERNEL_H
9 #define CNSFVKERNEL_H
10 
11 #include "DGKernel.h"
12 #include "InternalSideFluxBase.h"
13 
14 class CNSFVKernel;
15 
16 template <>
17 InputParameters validParams<CNSFVKernel>();
18 
41 class CNSFVKernel : public DGKernel
42 {
43 public:
44  CNSFVKernel(const InputParameters & parameters);
45  virtual ~CNSFVKernel();
46 
47 protected:
48  virtual Real computeQpResidual(Moose::DGResidualType type);
49  virtual Real computeQpJacobian(Moose::DGJacobianType type);
50  virtual Real computeQpOffDiagJacobian(Moose::DGJacobianType type, unsigned int jvar);
51 
53  MooseEnum _component;
54 
55  // "1" denotes the "left" state
56  // "2" denotes the "right" state
57 
58  // piecewise constant variable values in cells
59  const VariableValue & _rhoc1;
60  const VariableValue & _rhouc1;
61  const VariableValue & _rhovc1;
62  const VariableValue & _rhowc1;
63  const VariableValue & _rhoec1;
64  const VariableValue & _rhoc2;
65  const VariableValue & _rhouc2;
66  const VariableValue & _rhovc2;
67  const VariableValue & _rhowc2;
68  const VariableValue & _rhoec2;
69 
70  // extrapolated variable values at side center
71  const MaterialProperty<Real> & _rho1;
72  const MaterialProperty<Real> & _rhou1;
73  const MaterialProperty<Real> & _rhov1;
74  const MaterialProperty<Real> & _rhow1;
75  const MaterialProperty<Real> & _rhoe1;
76  const MaterialProperty<Real> & _rho2;
77  const MaterialProperty<Real> & _rhou2;
78  const MaterialProperty<Real> & _rhov2;
79  const MaterialProperty<Real> & _rhow2;
80  const MaterialProperty<Real> & _rhoe2;
81 
84 
85  unsigned int _rho_var;
86  unsigned int _rhou_var;
87  unsigned int _rhov_var;
88  unsigned int _rhow_var;
89  unsigned int _rhoe_var;
90 
91  std::map<unsigned int, unsigned int> _jmap;
92 };
93 
94 #endif
const MaterialProperty< Real > & _rho1
Definition: CNSFVKernel.h:71
const MaterialProperty< Real > & _rho2
Definition: CNSFVKernel.h:76
A DGKernel for the CNS equations.
Definition: CNSFVKernel.h:41
const VariableValue & _rhovc2
Definition: CNSFVKernel.h:66
virtual Real computeQpOffDiagJacobian(Moose::DGJacobianType type, unsigned int jvar)
Definition: CNSFVKernel.C:154
const VariableValue & _rhouc1
Definition: CNSFVKernel.h:60
const VariableValue & _rhoec2
Definition: CNSFVKernel.h:68
unsigned int _rho_var
Definition: CNSFVKernel.h:85
virtual Real computeQpJacobian(Moose::DGJacobianType type)
Definition: CNSFVKernel.C:108
const MaterialProperty< Real > & _rhoe1
Definition: CNSFVKernel.h:75
const VariableValue & _rhowc2
Definition: CNSFVKernel.h:67
const MaterialProperty< Real > & _rhou1
Definition: CNSFVKernel.h:72
unsigned int _rhov_var
Definition: CNSFVKernel.h:87
const VariableValue & _rhoc2
Definition: CNSFVKernel.h:64
const VariableValue & _rhouc2
Definition: CNSFVKernel.h:65
virtual ~CNSFVKernel()
Definition: CNSFVKernel.C:74
std::map< unsigned int, unsigned int > _jmap
Definition: CNSFVKernel.h:91
CNSFVKernel(const InputParameters &parameters)
Definition: CNSFVKernel.C:37
const MaterialProperty< Real > & _rhow1
Definition: CNSFVKernel.h:74
InputParameters validParams< CNSFVKernel >()
Definition: CNSFVKernel.C:12
const VariableValue & _rhovc1
Definition: CNSFVKernel.h:61
MooseEnum _component
choose an equation
Definition: CNSFVKernel.h:53
unsigned int _rhou_var
Definition: CNSFVKernel.h:86
const VariableValue & _rhoc1
Definition: CNSFVKernel.h:59
const MaterialProperty< Real > & _rhow2
Definition: CNSFVKernel.h:79
A base class for computing and caching internal side flux.
const MaterialProperty< Real > & _rhou2
Definition: CNSFVKernel.h:77
const MaterialProperty< Real > & _rhov1
Definition: CNSFVKernel.h:73
const MaterialProperty< Real > & _rhov2
Definition: CNSFVKernel.h:78
const InternalSideFluxBase & _flux
fluid properties object
Definition: CNSFVKernel.h:83
const VariableValue & _rhowc1
Definition: CNSFVKernel.h:62
const VariableValue & _rhoec1
Definition: CNSFVKernel.h:63
virtual Real computeQpResidual(Moose::DGResidualType type)
Definition: CNSFVKernel.C:77
unsigned int _rhow_var
Definition: CNSFVKernel.h:88
unsigned int _rhoe_var
Definition: CNSFVKernel.h:89
const MaterialProperty< Real > & _rhoe2
Definition: CNSFVKernel.h:80