GRINS-0.8.0
low_mach_navier_stokes.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 
26 #ifndef GRINS_LOW_MACH_NAVIER_STOKES_H
27 #define GRINS_LOW_MACH_NAVIER_STOKES_H
28 
29 // GRINS
31 #include "grins/pressure_pinning.h"
32 
33 namespace GRINS
34 {
35 
37 
40  template<class Viscosity, class SpecificHeat, class ThermalConductivity>
41  class LowMachNavierStokes : public LowMachNavierStokesBase<Viscosity,SpecificHeat,ThermalConductivity>
42  {
43  public:
44 
45  LowMachNavierStokes(const PhysicsName& physics_name, const GetPot& input);
46 
48 
49  virtual void auxiliary_init( MultiphysicsSystem& system );
50 
52  virtual void register_postprocessing_vars( const GetPot& input,
54 
55  // Context initialization
56  virtual void init_context( AssemblyContext & context );
57 
58  // Time dependent part(s)
59  virtual void element_time_derivative( bool compute_jacobian,
60  AssemblyContext & context );
61 
62  virtual void element_constraint( bool compute_jacobian,
63  AssemblyContext & context );
64 
65  // Mass matrix part(s)
66  virtual void mass_residual( bool compute_jacobian,
67  AssemblyContext & context );
68 
70 
71  virtual void compute_postprocessed_quantity( unsigned int quantity_index,
72  const AssemblyContext& context,
73  const libMesh::Point& point,
74  libMesh::Real& value );
75 
76  protected:
77 
80 
82 
84  unsigned int _rho_index;
85 
87  void assemble_mass_time_deriv( bool compute_jacobian,
88  AssemblyContext& context,
89  const CachedValues & cache );
90 
92  void assemble_momentum_time_deriv( bool compute_jacobian,
93  AssemblyContext& context,
94  const CachedValues & cache );
95 
97  void assemble_energy_time_deriv( bool compute_jacobian,
98  AssemblyContext& context,
99  const CachedValues & cache );
100 
102  void assemble_continuity_mass_residual( bool compute_jacobian,
103  AssemblyContext & context );
104 
106  void assemble_momentum_mass_residual( bool compute_jacobian,
107  AssemblyContext & context );
108 
110  void assemble_energy_mass_residual( bool compute_jacobian,
111  AssemblyContext & context );
112 
113  void assemble_thermo_press_elem_time_deriv( bool compute_jacobian,
114  AssemblyContext & context );
115 
116  void assemble_thermo_press_side_time_deriv( bool compute_jacobian,
117  AssemblyContext & context );
118 
119  void assemble_thermo_press_mass_residual( bool compute_jacobian,
120  AssemblyContext & context );
121 
122  private:
123 
125 
126  };
127 
128 } //End namespace block
129 
130 #endif // GRINS_LOW_MACH_NAVIER_STOKES_H
void assemble_mass_time_deriv(bool compute_jacobian, AssemblyContext &context, const CachedValues &cache)
Helper function.
void assemble_momentum_mass_residual(bool compute_jacobian, AssemblyContext &context)
Helper function.
virtual void element_constraint(bool compute_jacobian, AssemblyContext &context)
Constraint part(s) of physics for element interiors.
virtual void auxiliary_init(MultiphysicsSystem &system)
Any auxillary initialization a Physics class may need.
virtual void element_time_derivative(bool compute_jacobian, AssemblyContext &context)
Time dependent part(s) of physics for element interiors.
void assemble_energy_time_deriv(bool compute_jacobian, AssemblyContext &context, const CachedValues &cache)
Helper function.
virtual void mass_residual(bool compute_jacobian, AssemblyContext &context)
Mass matrix part(s) for element interiors. All boundary terms lie within the time_derivative part...
virtual void compute_postprocessed_quantity(unsigned int quantity_index, const AssemblyContext &context, const libMesh::Point &point, libMesh::Real &value)
void assemble_momentum_time_deriv(bool compute_jacobian, AssemblyContext &context, const CachedValues &cache)
Helper function.
GRINS namespace.
Physics class for Incompressible Navier-Stokes.
std::string PhysicsName
virtual void compute_element_time_derivative_cache(AssemblyContext &context)
Interface with libMesh for solving Multiphysics problems.
unsigned int _rho_index
Cache index for density post-processing.
virtual void register_postprocessing_vars(const GetPot &input, PostProcessedQuantities< libMesh::Real > &postprocessing)
Register postprocessing variables for LowMachNavierStokes.
bool _pin_pressure
Enable pressure pinning.
Physics class for Incompressible Navier-Stokes.
void assemble_thermo_press_side_time_deriv(bool compute_jacobian, AssemblyContext &context)
void assemble_continuity_mass_residual(bool compute_jacobian, AssemblyContext &context)
Helper function.
virtual void init_context(AssemblyContext &context)
Initialize context for added physics variables.
void assemble_thermo_press_mass_residual(bool compute_jacobian, AssemblyContext &context)
void assemble_energy_mass_residual(bool compute_jacobian, AssemblyContext &context)
Helper function.
Class to hold typical boundary condition methods.
void assemble_thermo_press_elem_time_deriv(bool compute_jacobian, AssemblyContext &context)

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