GRINS-0.7.0
average_nusselt_number.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_AVERAGE_NUSSELT_NUMBER_H
27 #define GRINS_AVERAGE_NUSSELT_NUMBER_H
28 
29 // GRINS
30 #include "grins/qoi_base.h"
32 
33 namespace GRINS
34 {
36  {
37  public:
38 
39  AverageNusseltNumber( const std::string& qoi_name );
40 
41  virtual ~AverageNusseltNumber();
42 
43  virtual QoIBase* clone() const;
44 
45  virtual bool assemble_on_interior() const;
46 
47  virtual bool assemble_on_sides() const;
48 
49  virtual void side_qoi( AssemblyContext& context,
50  const unsigned int qoi_index );
51 
52  virtual void side_qoi_derivative( AssemblyContext& context,
53  const unsigned int qoi_index );
54 
55  virtual void init( const GetPot& input,
56  const MultiphysicsSystem& system,
57  unsigned int qoi_num );
58 
59  virtual void init_context( AssemblyContext& context );
60 
61  protected:
62 
63  void parse_thermal_conductivity( const GetPot& input );
64 
66  libMesh::Real _k;
67 
70 
72  std::set<libMesh::boundary_id_type> _bc_ids;
73 
75  libMesh::Real _scaling;
76 
77  private:
78 
80 
81  };
82 
83  inline
85  {
86  return false;
87  }
88 
89  inline
91  {
92  return true;
93  }
94 }
95 #endif //GRINS_AVERAGE_NUSSELT_NUMBER_H
unsigned int VariableIndex
More descriptive name of the type used for variable indices.
Definition: var_typedefs.h:42
std::set< libMesh::boundary_id_type > _bc_ids
List of boundary ids for which we want to compute this QoI.
virtual void init_context(AssemblyContext &context)
libMesh::Real _scaling
Scaling constant.
virtual void init(const GetPot &input, const MultiphysicsSystem &system, unsigned int qoi_num)
Method to allow QoI to cache any system information needed for QoI calculation, for example...
GRINS namespace.
virtual bool assemble_on_sides() const
Does the QoI need a domain boundary assembly loop?
virtual bool assemble_on_interior() const
Does the QoI need an element interior assembly loop?
virtual QoIBase * clone() const
Clone this QoI.
virtual void side_qoi_derivative(AssemblyContext &context, const unsigned int qoi_index)
Compute the qoi derivative with respect to the solution on the domain boundary.
libMesh::Real _k
Thermal conductivity.
virtual void side_qoi(AssemblyContext &context, const unsigned int qoi_index)
Compute the qoi value on the domain boundary.
VariableIndex _T_var
Temperature variable index.
Interface with libMesh for solving Multiphysics problems.
void parse_thermal_conductivity(const GetPot &input)

Generated on Thu Jun 2 2016 21:52:28 for GRINS-0.7.0 by  doxygen 1.8.10