GRINS-0.8.0
averaged_fan.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_AVERAGED_FAN_H
27 #define GRINS_AVERAGED_FAN_H
28 
29 // GRINS
30 #include "grins_config.h"
31 #include "grins/assembly_context.h"
32 #include "grins/cached_values.h"
35 
36 // libMesh
37 #include "libmesh/getpot.h"
38 
39 // C++
40 #include <string>
41 
42 namespace GRINS
43 {
45  /*
46  This physics class imposes lift/drag forces on velocity as
47  affected by a region in which airfoils are moving.
48  */
49  template<class Viscosity>
50  class AveragedFan : public AveragedFanBase<Viscosity>
51  {
52  public:
53 
54  AveragedFan( const std::string& physics_name, const GetPot& input );
55 
56  ~AveragedFan();
57 
58 
60  virtual void register_postprocessing_vars( const GetPot& input,
62 
63 
64  virtual void init_context( AssemblyContext& context );
65 
66  // residual and jacobian calculations
67  // element_*, side_* as *time_derivative, *constraint, *mass_residual
68 
69  // Constraint part(s)
70  virtual void element_time_derivative( bool compute_jacobian,
71  AssemblyContext& context );
72 
74  virtual void compute_postprocessed_quantity( unsigned int quantity_index,
75  const AssemblyContext& context,
76  const libMesh::Point& point,
77  libMesh::Real& value );
78 
79  private:
80 
82  unsigned int _base_velocity_x_index;
83 
85  unsigned int _base_velocity_y_index;
86 
88  unsigned int _base_velocity_z_index;
89 
90  AveragedFan();
91 
92 
93  };
94 
95 } // end namespace block
96 
97 #endif // GRINS_AVERAGED_FAN_H
unsigned int _base_velocity_y_index
Index from registering this postprocessed quantity.
Definition: averaged_fan.h:85
unsigned int _base_velocity_x_index
Index from registering this postprocessed quantity.
Definition: averaged_fan.h:82
GRINS namespace.
Physics class for spatially-averaged fan.
Definition: averaged_fan.h:50
virtual void compute_postprocessed_quantity(unsigned int quantity_index, const AssemblyContext &context, const libMesh::Point &point, libMesh::Real &value)
Compute value of postprocessed quantities at libMesh::Point.
Definition: averaged_fan.C:204
virtual void register_postprocessing_vars(const GetPot &input, PostProcessedQuantities< libMesh::Real > &postprocessing)
Register postprocessing variables for visualization output.
Definition: averaged_fan.C:69
unsigned int _base_velocity_z_index
Index from registering this postprocessed quantity.
Definition: averaged_fan.h:88
virtual void element_time_derivative(bool compute_jacobian, AssemblyContext &context)
Time dependent part(s) of physics for element interiors.
Definition: averaged_fan.C:101
virtual void init_context(AssemblyContext &context)
Initialize context for added physics variables.
Definition: averaged_fan.C:60

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