GRINS-0.6.0
averaged_turbine.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_AVERAGED_TURBINE_H
27 #define GRINS_AVERAGED_TURBINE_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. The airfoils
48  may also be accelerated or decelerated by external power source or
49  sink.
50  */
51  template<class Viscosity>
52  class AveragedTurbine : public AveragedTurbineBase<Viscosity>
53  {
54  public:
55 
56  AveragedTurbine( const std::string& physics_name, const GetPot& input );
57 
59 
60  virtual void init_context( AssemblyContext& context );
61 
62  // residual and jacobian calculations
63  // element_*, side_* as *time_derivative, *constraint, *mass_residual
64 
65  // Constraint part(s)
66  virtual void element_time_derivative( bool compute_jacobian,
67  AssemblyContext& context,
68  CachedValues& cache );
69 
70  // Mass residual of the turbine itself
71  virtual void nonlocal_mass_residual ( bool compute_jacobian,
72  AssemblyContext& context,
73  CachedValues& cache );
74 
75  // External torque powering the fan or loading the turbine
76  virtual void nonlocal_time_derivative ( bool compute_jacobian,
77  AssemblyContext& context,
78  CachedValues& cache );
79 
80  private:
81 
83  };
84 
85 } // end namespace block
86 
87 #endif // GRINS_AVERAGED_TURBINE_H
Physics class for spatially-averaged turbine.
virtual void nonlocal_time_derivative(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Time dependent part(s) of physics for scalar variables.
GRINS namespace.
virtual void element_time_derivative(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Time dependent part(s) of physics for element interiors.
virtual void nonlocal_mass_residual(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Mass matrix part(s) for scalar variables.
virtual void init_context(AssemblyContext &context)
Initialize context for added physics variables.

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