GRINS-0.6.0
solid_mechanics_bc_handling.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_SOLID_MECHANICS_BC_HANDLING_H
26 #define GRINS_SOLID_MECHANICS_BC_HANDLING_H
27 
28 //GRINS
29 #include "grins/bc_handling_base.h"
31 
32 namespace GRINS
33 {
34 
36  {
37  public:
38 
39  SolidMechanicsBCHandling( const std::string& physics_name,
40  const GetPot& input );
41 
42  virtual ~SolidMechanicsBCHandling();
43 
44  virtual int string_to_int( const std::string& bc_type_in ) const;
45 
46  virtual void init_bc_data( const libMesh::FEMSystem& system );
47 
48  virtual void init_bc_types( const GRINS::BoundaryID bc_id,
49  const std::string& bc_id_string,
50  const int bc_type,
51  const std::string& bc_vars,
52  const std::string& bc_value,
53  const GetPot& input );
54 
55  virtual void user_init_dirichlet_bcs( libMesh::FEMSystem* system,
56  libMesh::DofMap& dof_map,
57  GRINS::BoundaryID bc_id,
58  GRINS::BCType bc_type ) const;
59 
60  virtual void user_apply_neumann_bcs( AssemblyContext& context,
61  const GRINS::CachedValues& cache,
62  const bool request_jacobian,
63  const GRINS::BoundaryID bc_id,
64  const GRINS::BCType bc_type ) const;
65 
66  protected:
67 
69 
70  private:
71 
73 
83 
84  };
85 
86 } // end namespace GRINS
87 
88 #endif // GRINS_SOLID_MECHANICS_BC_HANDLING_H
virtual void user_init_dirichlet_bcs(libMesh::FEMSystem *system, libMesh::DofMap &dof_map, GRINS::BoundaryID bc_id, GRINS::BCType bc_type) const
libMesh::boundary_id_type BoundaryID
More descriptive name of the type used for boundary ids.
Definition: var_typedefs.h:54
GRINS namespace.
virtual void user_apply_neumann_bcs(AssemblyContext &context, const GRINS::CachedValues &cache, const bool request_jacobian, const GRINS::BoundaryID bc_id, const GRINS::BCType bc_type) const
Base class for reading and handling boundary conditions for physics classes.
virtual void init_bc_types(const GRINS::BoundaryID bc_id, const std::string &bc_id_string, const int bc_type, const std::string &bc_vars, const std::string &bc_value, const GetPot &input)
virtual void init_bc_data(const libMesh::FEMSystem &system)
Override this method to initialize any system-dependent data.
virtual int string_to_int(const std::string &bc_type_in) const
int BCType
Definition: bc_types.h:32

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