GRINS-0.6.0
neumann_func_obj.C
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 // This class
27 #include "grins/neumann_func_obj.h"
28 
29 // GRINS
30 #include "grins/cached_values.h"
31 #include "grins/assembly_context.h"
32 
33 namespace GRINS
34 {
35 
37  {
38  return;
39  }
40 
42  {
43  return;
44  }
45 
46  libMesh::Point NeumannFuncObj::value( const AssemblyContext&,
47  const CachedValues&,
48  const unsigned int )
49  {
50  // By default, does nothing.
51  /* \todo Should we libmesh_error() instead?*/
52  return libMesh::Point();
53  }
54 
56  const CachedValues&,
57  const unsigned int )
58  {
59  // By default, does nothing.
60  /* \todo Should we libmesh_error() instead?*/
61  return 0.0;
62  }
63 
65  const CachedValues&,
66  const unsigned int )
67  {
68  // By default, does nothing.
69  /* \todo Should we libmesh_error() instead?*/
70  return libMesh::Point(0.0,0.0,0.0);
71  }
72 
74  const CachedValues&,
75  const unsigned int,
76  const VariableIndex )
77  {
78  // By default, does nothing.
79  /* \todo Should we libmesh_error() instead?*/
80  return libMesh::Point(0.0,0.0,0.0);
81  }
82 
83 
85  const CachedValues&,
86  const unsigned )
87  {
88  // By default, does nothing.
89  /* \todo Should we libmesh_error() instead?*/
90  return 0.0;
91  }
92 
94  const CachedValues&,
95  const unsigned int,
96  const VariableIndex )
97  {
98  // By default, does nothing.
99  /* \todo Should we libmesh_error() instead?*/
100  return 0.0;
101  }
102 
103  const std::vector<VariableIndex>& NeumannFuncObj::get_other_jac_vars()
104  {
105  return _jac_vars;
106  }
107 
108 } // namespace GRINS
109 
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.
std::vector< VariableIndex > _jac_vars

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