GRINS-0.7.0
parsed_function_neumann_old_style_bc_factory.C
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 // These classes
27 
28 namespace GRINS
29 {
30  template<typename FunctionType>
31  SharedPtr<NeumannBCAbstract>
33  MultiphysicsSystem& system,
34  const FEVariablesBase& fe_var,
35  const std::string& section )
36  {
37  libmesh_assert_equal_to( this->_bc_ids->size(), 1 );
38 
39  std::string flux_input = section+"/"+this->flux_input()+"_"+
40  StringUtilities::T_to_string<unsigned int>( *(this->_bc_ids->begin()) );
41 
42  // Make sure flux input specified and consistent with var_names size
43  this->check_for_flux(input,flux_input,fe_var.active_var_names());
44 
45  return this->build_neumman_func_common( input, system, fe_var, flux_input );
46  }
47 
50 
52  grins_factory_traction_old_style_functionbase("constant_traction_old_style");
53 
54 } // end namespace GRINS
TractionOldStyleBCFactory< libMesh::FunctionBase< libMesh::Number > > grins_factory_traction_old_style_functionbase("constant_traction_old_style")
GRINS namespace.
Interface with libMesh for solving Multiphysics problems.
const std::vector< std::string > & active_var_names() const
Return the var names that are active from this class.
virtual SharedPtr< NeumannBCAbstract > build_neumann_func(const GetPot &input, MultiphysicsSystem &system, const FEVariablesBase &fe_var, const std::string &section)
Builds the NeumannBCAbstract object for Neumann boundary conditions.

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