GRINS-0.6.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-2015 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 
50  virtual void read_input_options( const GetPot& input );
51 
53  virtual void register_postprocessing_vars( const GetPot& input,
55 
56  // Context initialization
57  virtual void init_context( AssemblyContext& context );
58 
59  // Time dependent part(s)
60  virtual void element_time_derivative( bool compute_jacobian,
61  AssemblyContext& context,
62  CachedValues& cache );
63 
64  virtual void side_time_derivative( bool compute_jacobian,
65  AssemblyContext& context,
66  CachedValues& cache );
67 
68  virtual void side_constraint( bool compute_jacobian,
69  AssemblyContext& context,
70  CachedValues& cache );
71 
72  // Mass matrix part(s)
73  virtual void mass_residual( bool compute_jacobian,
74  AssemblyContext& context,
75  CachedValues& cache );
76 
77  virtual void compute_element_time_derivative_cache( const AssemblyContext& context,
78  CachedValues& cache );
79 
80  virtual void compute_postprocessed_quantity( unsigned int quantity_index,
81  const AssemblyContext& context,
82  const libMesh::Point& point,
83  libMesh::Real& value );
84 
85  protected:
86 
89 
91 
93  unsigned int _rho_index;
94 
96  void assemble_mass_time_deriv( bool compute_jacobian,
97  AssemblyContext& context,
98  CachedValues& cache );
99 
101  void assemble_momentum_time_deriv( bool compute_jacobian,
102  AssemblyContext& context,
103  CachedValues& cache );
104 
106  void assemble_energy_time_deriv( bool compute_jacobian,
107  AssemblyContext& context,
108  CachedValues& cache );
109 
111  void assemble_continuity_mass_residual( bool compute_jacobian,
112  AssemblyContext& c );
113 
115  void assemble_momentum_mass_residual( bool compute_jacobian,
116  AssemblyContext& c );
117 
119  void assemble_energy_mass_residual( bool compute_jacobian,
120  AssemblyContext& c );
121 
122  void assemble_thermo_press_elem_time_deriv( bool compute_jacobian,
123  AssemblyContext& c );
124 
125  void assemble_thermo_press_side_time_deriv( bool compute_jacobian,
126  AssemblyContext& c );
127 
128  void assemble_thermo_press_mass_residual( bool compute_jacobian,
129  AssemblyContext& c );
130 
131  private:
132 
134 
135  };
136 
137 } //End namespace block
138 
139 #endif // GRINS_LOW_MACH_NAVIER_STOKES_H
virtual void compute_element_time_derivative_cache(const AssemblyContext &context, CachedValues &cache)
virtual void element_time_derivative(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Time dependent part(s) of physics for element interiors.
void assemble_energy_time_deriv(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Helper function.
virtual void side_time_derivative(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Time dependent part(s) of physics for boundaries of elements on the domain boundary.
virtual void read_input_options(const GetPot &input)
Read options from GetPot input file.
virtual void compute_postprocessed_quantity(unsigned int quantity_index, const AssemblyContext &context, const libMesh::Point &point, libMesh::Real &value)
void assemble_thermo_press_mass_residual(bool compute_jacobian, AssemblyContext &c)
GRINS namespace.
virtual void mass_residual(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Mass matrix part(s) for element interiors. All boundary terms lie within the time_derivative part...
Physics class for Incompressible Navier-Stokes.
void assemble_thermo_press_elem_time_deriv(bool compute_jacobian, AssemblyContext &c)
void assemble_momentum_time_deriv(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Helper function.
std::string PhysicsName
void assemble_momentum_mass_residual(bool compute_jacobian, AssemblyContext &c)
Helper function.
unsigned int _rho_index
Cache index for density post-processing.
virtual void side_constraint(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Constraint part(s) of physics for boundaries of elements on the domain boundary.
void assemble_mass_time_deriv(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Helper function.
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.
virtual void init_context(AssemblyContext &context)
Initialize context for added physics variables.
void assemble_energy_mass_residual(bool compute_jacobian, AssemblyContext &c)
Helper function.
Class to hold typical boundary condition methods.
void assemble_continuity_mass_residual(bool compute_jacobian, AssemblyContext &c)
Helper function.
void assemble_thermo_press_side_time_deriv(bool compute_jacobian, AssemblyContext &c)

Generated on Mon Jun 22 2015 21:32:20 for GRINS-0.6.0 by  doxygen 1.8.9.1