GRINS-0.7.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-2016 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  CachedValues& cache );
62 
63  virtual void element_constraint( bool compute_jacobian,
64  AssemblyContext& context,
65  CachedValues& cache );
66 
67  // Mass matrix part(s)
68  virtual void mass_residual( bool compute_jacobian,
69  AssemblyContext& context,
70  CachedValues& cache );
71 
72  virtual void compute_element_time_derivative_cache( const AssemblyContext& context,
73  CachedValues& cache );
74 
75  virtual void compute_postprocessed_quantity( unsigned int quantity_index,
76  const AssemblyContext& context,
77  const libMesh::Point& point,
78  libMesh::Real& value );
79 
80  protected:
81 
84 
86 
88  unsigned int _rho_index;
89 
91  void assemble_mass_time_deriv( bool compute_jacobian,
92  AssemblyContext& context,
93  CachedValues& cache );
94 
96  void assemble_momentum_time_deriv( bool compute_jacobian,
97  AssemblyContext& context,
98  CachedValues& cache );
99 
101  void assemble_energy_time_deriv( bool compute_jacobian,
102  AssemblyContext& context,
103  CachedValues& cache );
104 
106  void assemble_continuity_mass_residual( bool compute_jacobian,
107  AssemblyContext& c );
108 
110  void assemble_momentum_mass_residual( bool compute_jacobian,
111  AssemblyContext& c );
112 
114  void assemble_energy_mass_residual( bool compute_jacobian,
115  AssemblyContext& c );
116 
117  void assemble_thermo_press_elem_time_deriv( bool compute_jacobian,
118  AssemblyContext& c );
119 
120  void assemble_thermo_press_side_time_deriv( bool compute_jacobian,
121  AssemblyContext& c );
122 
123  void assemble_thermo_press_mass_residual( bool compute_jacobian,
124  AssemblyContext& c );
125 
126  private:
127 
129 
130  };
131 
132 } //End namespace block
133 
134 #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.
virtual void auxiliary_init(MultiphysicsSystem &system)
Any auxillary initialization a Physics class may need.
void assemble_energy_time_deriv(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Helper function.
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.
virtual void element_constraint(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Constraint part(s) of physics for element interiors.
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.
Interface with libMesh for solving Multiphysics problems.
unsigned int _rho_index
Cache index for density post-processing.
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 Thu Jun 2 2016 21:52:27 for GRINS-0.7.0 by  doxygen 1.8.10