GRINS-0.6.0
neumann_func_obj.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 #ifndef GRINS_NEUMANN_FUNC_OBJ_H
26 #define GRINS_NEUMANN_FUNC_OBJ_H
27 
28 // GRINS
29 #include "grins/var_typedefs.h"
30 
31 // libMesh
32 #include "libmesh/point.h"
33 
34 // C++
35 #include <vector>
36 
37 namespace GRINS
38 {
39  // GRINS forward declarations
40  class CachedValues;
41  class AssemblyContext;
42 
45  {
46  public:
47 
49 
50  virtual ~NeumannFuncObj();
51 
53 
55  virtual libMesh::Point value( const AssemblyContext& context,
56  const CachedValues& cache, const unsigned int qp );
57 
59 
64  virtual libMesh::Real normal_value( const AssemblyContext& context, const CachedValues& cache,
65  const unsigned int qp );
66 
68 
70  virtual libMesh::Point derivative( const AssemblyContext& context, const CachedValues& cache,
71  const unsigned int qp );
72 
74 
79  virtual libMesh::Real normal_derivative( const AssemblyContext& context, const CachedValues& cache,
80  const unsigned int qp );
81 
83 
86  virtual libMesh::Point derivative( const AssemblyContext& context, const CachedValues& cache,
87  const unsigned int qp,
88  const GRINS::VariableIndex jac_var );
89 
91 
97  virtual libMesh::Real normal_derivative( const AssemblyContext& context, const CachedValues& cache,
98  const unsigned int qp,
99  const GRINS::VariableIndex jac_var );
100 
101  const std::vector<VariableIndex>& get_other_jac_vars();
102 
103  protected:
104 
105  std::vector<VariableIndex> _jac_vars;
106 
107  }; // class NeumannFuncObj
108 
109 } // end namespace GRINS
110 #endif // GRINS_NEUMANN_FUNC_OBJ_H
unsigned int VariableIndex
More descriptive name of the type used for variable indices.
Definition: var_typedefs.h:40
virtual libMesh::Point derivative(const AssemblyContext &context, const CachedValues &cache, const unsigned int qp)
Returns the derivative with respect to the primary variable of the implemented Neumann boundary condi...
virtual libMesh::Real normal_value(const AssemblyContext &context, const CachedValues &cache, const unsigned int qp)
Returns the value of the implemented Neumann boundary condition.
GRINS namespace.
const std::vector< VariableIndex > & get_other_jac_vars()
virtual libMesh::Real normal_derivative(const AssemblyContext &context, const CachedValues &cache, const unsigned int qp)
Returns the derivative with respect to the primary variable of the implemented Neumann boundary condi...
virtual libMesh::Point value(const AssemblyContext &context, const CachedValues &cache, const unsigned int qp)
Returns the value of the implemented Neumann boundary condition.
Base class for general, non-constant Neumann boundary conditions.
std::vector< VariableIndex > _jac_vars

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