www.mooseframework.org
Air.C
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 #include "Air.h"
9 
10 #include "libmesh/quadrature.h"
11 
12 template <>
13 InputParameters
15 {
16  InputParameters params = validParams<NavierStokesMaterial>();
17 
18  params.addClassDescription("Air.");
19  // Allow the user to specify the dynamic viscosity from the input file,
20  // otherwise use the value at 300K by default
21  params.addParam<Real>("dynamic_viscosity", 1.9830e-5, "in kg/m/s");
22 
23  return params;
24 }
25 
26 Air::Air(const InputParameters & parameters)
27  : NavierStokesMaterial(parameters), _mu(getParam<Real>("dynamic_viscosity"))
28 {
29 }
30 
31 void
33 {
34  // Constant "\mu" values (kg / m / s) for air at various temperatures. Pick the
35  // one that makes sense for the current calculation. A class employing
36  // Sutherland's curve fit for air might also be good to have...
37  for (unsigned int qp = 0; qp < _qrule->n_points(); qp++)
38  {
39  // Return the default dynamic_viscosity or whatever was set in the input file.
40  _dynamic_viscosity[qp] = _mu;
41  }
42 
43  // Call base class's computeProperties() function
45 }
MaterialProperty< Real > & _dynamic_viscosity
Air(const InputParameters &parameters)
Definition: Air.C:26
virtual void computeProperties()
Must be called after the child class computes dynamic_viscocity.
Definition: Air.C:32
This is the base class all materials should use if you are trying to use the Navier-Stokes Kernels...
Real _mu
Definition: Air.h:43
virtual void computeProperties()
Must be called after the child class computes dynamic_viscocity.
InputParameters validParams< Air >()
Definition: Air.C:14