GRINS-0.6.0
vorticity.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_VORTICITY_H
27 #define GRINS_VORTICITY_H
28 
29 // GRINS
30 #include "grins/qoi_base.h"
32 
33 namespace GRINS
34 {
36 
42  class Vorticity : public QoIBase
43  {
44  public:
45 
47 
49  Vorticity( const std::string& qoi_name );
50 
51  virtual ~Vorticity();
52 
54  virtual QoIBase* clone() const;
55 
56  virtual bool assemble_on_interior() const;
57 
58  virtual bool assemble_on_sides() const;
59 
61 
63  virtual void init( const GetPot& input, const MultiphysicsSystem& system );
64 
65  virtual void init_context( AssemblyContext& context );
66 
68 
71  virtual void element_qoi( AssemblyContext& context,
72  const unsigned int qoi_index );
73 
75 
77  virtual void element_qoi_derivative( AssemblyContext& context,
78  const unsigned int qoi_index );
79 
80  protected:
81 
84 
87 
89  std::set<libMesh::subdomain_id_type> _subdomain_ids;
90 
91  private:
93  Vorticity();
94 
95  };
96 
97  inline
99  {
100  return true;
101  }
102 
103  inline
105  {
106  return false;
107  }
108 }
109 #endif //GRINS_VORTICITY_H
unsigned int VariableIndex
More descriptive name of the type used for variable indices.
Definition: var_typedefs.h:40
virtual bool assemble_on_interior() const
Does the QoI need an element interior assembly loop?
Definition: vorticity.h:98
Vorticity()
User never call default constructor.
Vorticity QoI.
Definition: vorticity.h:42
virtual ~Vorticity()
Definition: vorticity.C:47
virtual QoIBase * clone() const
Required to provide clone (deep-copy) for adding QoI object to libMesh objects.
Definition: vorticity.C:52
virtual void init_context(AssemblyContext &context)
Definition: vorticity.C:83
std::set< libMesh::subdomain_id_type > _subdomain_ids
List of sumdomain ids for which we want to compute this QoI.
Definition: vorticity.h:89
GRINS namespace.
virtual bool assemble_on_sides() const
Does the QoI need a domain boundary assembly loop?
Definition: vorticity.h:104
virtual void element_qoi(AssemblyContext &context, const unsigned int qoi_index)
Compute the qoi value.
Definition: vorticity.C:99
Interface with libMesh for solving Multiphysics problems.
virtual void init(const GetPot &input, const MultiphysicsSystem &system)
Initialize local variables.
Definition: vorticity.C:57
virtual void element_qoi_derivative(AssemblyContext &context, const unsigned int qoi_index)
Compute the qoi derivative with respect to the solution.
Definition: vorticity.C:127
VariableIndex _v_var
v-velocity component variable index
Definition: vorticity.h:86
VariableIndex _u_var
u-velocity component variable index
Definition: vorticity.h:83

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