GRINS-0.7.0
elastic_cable_abstract.h
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 #ifndef GRINS_ELASTIC_CABLE_ABSTRACT_H
26 #define GRINS_ELASTIC_CABLE_ABSTRACT_H
27 
28 //GRINS
30 #include "grins/assembly_context.h"
31 
32 // libMesh
33 #include "libmesh/fe_base.h"
34 
35 namespace GRINS
36 {
38  {
39  public:
40 
41  ElasticCableAbstract( const GRINS::PhysicsName& physics_name, const GetPot& input );
42 
43  virtual ~ElasticCableAbstract(){};
44 
46  virtual void init_context( AssemblyContext& context );
47 
48  protected:
49 
51  libMesh::Real _A;
52 
54  libMesh::Real _rho;
55 
56  const libMesh::FEGenericBase<libMesh::Real>* get_fe( const AssemblyContext& context );
57 
58  private:
59 
61 
62  };
63 
64  inline
65  const libMesh::FEGenericBase<libMesh::Real>* ElasticCableAbstract::get_fe( const AssemblyContext& context )
66  {
67  // For this Physics, we need to make sure that we grab only the 1D elements
68  return context.get_element_fe(_disp_vars.u(),1);
69  }
70 }
71 
72 #endif // GRINS_ELASTIC_CABLE_ABSTRACT_H
libMesh::Real _rho
Cable density.
virtual void init_context(AssemblyContext &context)
Initialize context for added physics variables.
GRINS namespace.
std::string PhysicsName
libMesh::Real _A
Cross-sectional area of the cable.
const libMesh::FEGenericBase< libMesh::Real > * get_fe(const AssemblyContext &context)

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