GRINS-0.8.0
prescribed_vector_value_dirichlet_old_style_bc_factory.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------bl-
2 //--------------------------------------------------------------------------
3 //
4 // GRINS - General Reacting Incompressible Navier-Stokes
5 //
6 // Copyright (C) 2014-2017 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_PRESCRIBED_VECTOR_VALUE_DIRICHLET_OLD_STYLE_BC_FACTORY_H
26 #define GRINS_PRESCRIBED_VECTOR_VALUE_DIRICHLET_OLD_STYLE_BC_FACTORY_H
27 
28 // GRINS
30 
31 namespace GRINS
32 {
33  // Forward declarations
34  class SpeciesMassFractionsVariable;
35 
36  class PrescribedVectorValueDirichletOldStyleBCFactory : public DirichletBCFactoryFunctionOldStyleBase<libMesh::FunctionBase<libMesh::Number> >
37  {
38  public:
39 
40  PrescribedVectorValueDirichletOldStyleBCFactory( const std::string& bc_type_name )
41  : DirichletBCFactoryFunctionOldStyleBase<libMesh::FunctionBase<libMesh::Number> >(bc_type_name)
42  {}
43 
45 
46  protected:
47 
48  virtual std::string var_input_string() =0;
49 
50  virtual libMesh::UniquePtr<libMesh::FunctionBase<libMesh::Number> >
51  build_func( const GetPot& input,
52  MultiphysicsSystem& system,
53  std::vector<std::string>& var_names,
54  const std::string& section );
55 
56  virtual void add_funcs( const GetPot& input,
57  MultiphysicsSystem& system,
58  const std::string& input_string,
59  const std::vector<std::string>& var_names,
60  libMesh::CompositeFunction<libMesh::Number>& composite_func ) const;
61 
62  };
63 
65  {
66  public:
67 
68  PrescribedVelDirichletOldStyleBCFactory( const std::string& bc_type_name )
70  {}
71 
72  protected:
73 
74  virtual std::string var_input_string()
75  { return "bound_vel"; }
76 
77  };
78 
80  {
81  public:
82 
83  PrescribedDispDirichletOldStyleBCFactory( const std::string& bc_type_name )
85  {}
86 
87  protected:
88 
89  virtual std::string var_input_string()
90  { return "displacement"; }
91 
92  };
93 
95  {
96  public:
97 
98  PrescribedSpeciesDirichletOldStyleBCFactory( const std::string& bc_type_name )
100  {}
101 
102  protected:
103 
104  virtual std::string var_input_string()
105  { return "bound_species"; }
106 
107  };
108 
110  {
111  public:
112 
113  PrescribedMoleFractionsDirichletOldStyleBCFactory( const std::string& bc_type_name )
115  {}
116 
117  protected:
118 
119  virtual void add_funcs( const GetPot& input,
120  MultiphysicsSystem& system,
121  const std::string& input_string,
122  const std::vector<std::string>& var_names,
123  libMesh::CompositeFunction<libMesh::Number>& composite_func ) const;
124 
125  template<typename ChemistryType>
126  void convert_mole_fracs_and_add_to_func(const GetPot& input,
127  const std::vector<libMesh::Number>& species_mole_fracs,
128  const SpeciesMassFractionsVariable& species_fe_var,
129  libMesh::CompositeFunction<libMesh::Number>& composite_func) const;
130 
131  };
132 
133 } // end namespace GRINS
134 
135 #endif // GRINS_PRESCRIBED_VECTOR_VALUE_DIRICHLET_OLD_STYLE_BC_FACTORY_H
virtual void add_funcs(const GetPot &input, MultiphysicsSystem &system, const std::string &input_string, const std::vector< std::string > &var_names, libMesh::CompositeFunction< libMesh::Number > &composite_func) const
void convert_mole_fracs_and_add_to_func(const GetPot &input, const std::vector< libMesh::Number > &species_mole_fracs, const SpeciesMassFractionsVariable &species_fe_var, libMesh::CompositeFunction< libMesh::Number > &composite_func) const
GRINS namespace.
Interface with libMesh for solving Multiphysics problems.
virtual libMesh::UniquePtr< libMesh::FunctionBase< libMesh::Number > > build_func(const GetPot &input, MultiphysicsSystem &system, std::vector< std::string > &var_names, const std::string &section)
Builds the FunctionBase object for boundary condition.
virtual void add_funcs(const GetPot &input, MultiphysicsSystem &system, const std::string &input_string, const std::vector< std::string > &var_names, libMesh::CompositeFunction< libMesh::Number > &composite_func) const

Generated on Tue Dec 19 2017 12:47:27 for GRINS-0.8.0 by  doxygen 1.8.9.1