GRINS-0.8.0
velocity_penalty.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_VELOCITY_PENALTY_H
27 #define GRINS_VELOCITY_PENALTY_H
28 
29 // GRINS
30 #include "grins_config.h"
31 #include "grins/assembly_context.h"
32 #include "grins/cached_values.h"
34 
35 // libMesh
36 #include "libmesh/getpot.h"
37 
38 // C++
39 #include <string>
40 
41 namespace GRINS
42 {
43 
45  /*
46  This physics class imposes a penalty on any velocity component in
47  the direction of (and proportional to) a specified vector field.
48  */
49  template<class Viscosity>
50  class VelocityPenalty : public VelocityPenaltyBase<Viscosity>
51  {
52  public:
53 
54  VelocityPenalty( const std::string& physics_name, const GetPot& input );
55 
57 
58  virtual void init_context( AssemblyContext& context );
59 
61  virtual void register_postprocessing_vars( const GetPot& input,
63 
64  // residual and jacobian calculations
65  // element_*, side_* as *time_derivative, *constraint, *mass_residual
66 
67  // Constraint part(s)
68  virtual void element_time_derivative( bool compute_jacobian,
69  AssemblyContext& context );
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  private:
77 
80 
83 
86 
89 
92 
95 
97  };
98 
99 } // end namespace block
100 
101 #endif // GRINS_VELOCITY_PENALTY_H
unsigned int _velocity_penalty_base_y_index
Index from registering this quantity.
Physics class for Velocity Penalty.
unsigned int _velocity_penalty_y_index
Index from registering this quantity.
unsigned int _velocity_penalty_x_index
Index from registering this quantity.
unsigned int _velocity_penalty_base_x_index
Index from registering this quantity.
unsigned int _velocity_penalty_base_z_index
Index from registering this quantity.
GRINS namespace.
unsigned int _velocity_penalty_z_index
Index from registering this quantity.
virtual void element_time_derivative(bool compute_jacobian, AssemblyContext &context)
Time dependent part(s) of physics for element interiors.
virtual void init_context(AssemblyContext &context)
Initialize context for added physics variables.
virtual void register_postprocessing_vars(const GetPot &input, PostProcessedQuantities< libMesh::Real > &postprocessing)
Register postprocessing variables for VelocityPenalty.
virtual void compute_postprocessed_quantity(unsigned int quantity_index, const AssemblyContext &context, const libMesh::Point &point, libMesh::Real &value)

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