GRINS-0.6.0
elastic_membrane_base.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_ELASTIC_MEMBRANE_BASE_H
26 #define GRINS_ELASTIC_MEMBRANE_BASE_H
27 
28 //GRINS
29 #include "grins/physics.h"
31 #include "grins/assembly_context.h"
32 
33 // libMesh
34 #include "libmesh/fe_base.h"
35 
36 namespace GRINS
37 {
39  {
40  public:
41 
42  ElasticMembraneBase( const GRINS::PhysicsName& physics_name, const GetPot& input );
43  virtual ~ElasticMembraneBase();
44 
46  virtual void init_variables( libMesh::FEMSystem* system );
47 
48  virtual void set_time_evolving_vars( libMesh::FEMSystem* system );
49 
51  virtual void init_context( AssemblyContext& context );
52 
53  protected:
54 
56 
57  const libMesh::FEGenericBase<libMesh::Real>* get_fe( const AssemblyContext& context );
58 
59  private:
60 
62 
63  };
64 
65  inline
66  const libMesh::FEGenericBase<libMesh::Real>* ElasticMembraneBase::get_fe( const AssemblyContext& context )
67  {
68  // For this Physics, we need to make sure that we grab only the 2D elements
69  return context.get_element_fe(_disp_vars.u_var(),2);
70  }
71 
72 } // end namespace GRINS
73 
74 #endif // GRINS_ELASTIC_MEMBRANE_BASE_H
SolidMechanicsFEVariables _disp_vars
virtual void init_context(AssemblyContext &context)
Initialize context for added physics variables.
Physics abstract base class. Defines API for physics to be added to MultiphysicsSystem.
Definition: physics.h:106
virtual void set_time_evolving_vars(libMesh::FEMSystem *system)
Set which variables are time evolving.
GRINS namespace.
virtual void init_variables(libMesh::FEMSystem *system)
Initialize variables for this physics.
std::string PhysicsName
const libMesh::FEGenericBase< libMesh::Real > * get_fe(const AssemblyContext &context)

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