GRINS-0.8.0
reacting_low_mach_navier_stokes_stab_helper.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------bl-
2 //--------------------------------------------------------------------------
3 //
4 // GRINS - General Reacting Incompressible Navier-Stokes
5 //
6 // Copyright (C) 2014-2017 Paul T. Bauman, Roy H. Stogner
7 // Copyright (C) 2010-2013 The PECOS Development Team
8 //
9 // This library is free software; you can redistribute it and/or
10 // modify it under the terms of the Version 2.1 GNU Lesser General
11 // Public License as published by the Free Software Foundation.
12 //
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Lesser General Public License for more details.
17 //
18 // You should have received a copy of the GNU Lesser General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc. 51 Franklin Street, Fifth Floor,
21 // Boston, MA 02110-1301 USA
22 //
23 //-----------------------------------------------------------------------el-
24 
25 #ifndef REACTING_LOW_MACH_NAVIER_STOKES_STAB_HELPER_H
26 #define REACTING_LOW_MACH_NAVIER_STOKES_STAB_HELPER_H
27 
28 // GRINS
30 
31 namespace GRINS
32 {
34  {
35  public:
36 
37  ReactingLowMachNavierStokesStabilizationHelper( const std::string& helper_name, const GetPot& input )
38  : LowMachNavierStokesStabilizationHelper(helper_name,input)
39  {}
40 
42 
43  libMesh::Real compute_tau_species( AssemblyContext& c,
44  unsigned int qp,
45  libMesh::RealGradient& g,
46  libMesh::RealTensor& G,
47  libMesh::Real rho,
48  libMesh::Gradient U,
49  libMesh::Real D_s,
50  bool is_steady ) const;
51 
52  }; // class ReactingLowMachNavierStokesStabilizationHelper
53 
54  /* ------------- Inline Functions ---------------*/
55  inline
57  unsigned int qp,
58  libMesh::RealGradient& g,
59  libMesh::RealTensor& G,
60  libMesh::Real rho,
61  libMesh::Gradient U,
62  libMesh::Real D_s,
63  bool is_steady ) const
64  {
65  /*
66  libMesh::Real tau = (rho*U)*(G*(rho*U)) + this->_C*D_s*D_s*G.contract(G);
67 
68  if(!is_steady)
69  tau += (2.0*rho/c.get_deltat_value())*(2.0*rho/c.get_deltat_value());
70 
71  return this->_tau_factor/std::sqrt(tau);
72  */
73  return this->compute_tau( c, qp, D_s*D_s, g, G, rho, U, is_steady );
74  }
75 
76 }
77 #endif // REACTING_LOW_MACH_NAVIER_STOKES_STAB_HELPER_H
ReactingLowMachNavierStokesStabilizationHelper(const std::string &helper_name, const GetPot &input)
GRINS namespace.
libMesh::Real compute_tau_species(AssemblyContext &c, unsigned int qp, libMesh::RealGradient &g, libMesh::RealTensor &G, libMesh::Real rho, libMesh::Gradient U, libMesh::Real D_s, bool is_steady) const
libMesh::Real compute_tau(AssemblyContext &c, unsigned int qp, libMesh::Real mat_prop_sq, libMesh::RealGradient &g, libMesh::RealTensor &G, libMesh::Real rho, libMesh::Gradient U, bool is_steady) const

Generated on Tue Dec 19 2017 12:47:28 for GRINS-0.8.0 by  doxygen 1.8.9.1