GRINS-0.8.0
elastic_cable_abstract.C
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 // This class
27 
28 // GRINS
29 #include "grins_config.h"
30 #include "grins/assembly_context.h"
32 
33 // libMesh
34 #include "libmesh/getpot.h"
35 #include "libmesh/fem_system.h"
36 
37 namespace GRINS
38 {
40  const GetPot& input )
41  : SolidMechanicsAbstract(physics_name,input),
42  _A( 0.0 ),
43  _rho(0.0)
44  {
46  "Physics/"+physics_name+"/A",
47  "CrossSectionalArea",
49  (*this),
50  _A );
51 
53  "Physics/"+physics_name+"/rho",
54  "Density",
56  (*this),
57  _rho );
58 
59  }
60 
62  {
63  this->get_fe(context)->get_JxW();
64  this->get_fe(context)->get_phi();
65  this->get_fe(context)->get_dphidxi();
66 
67  // Need for constructing metric tensors
68  this->get_fe(context)->get_dxyzdxi();
69  this->get_fe(context)->get_dxidx();
70  this->get_fe(context)->get_dxidy();
71  this->get_fe(context)->get_dxidz();
72  }
73 
74 } // end namespace GRINS
libMesh::Real _rho
Cable density.
virtual void init_context(AssemblyContext &context)
Initialize context for added physics variables.
static PhysicsName elastic_cable()
GRINS namespace.
std::string PhysicsName
libMesh::Real _A
Cross-sectional area of the cable.
static void read_property(const GetPot &input, const std::string &old_option, const std::string &property, const std::string &core_physics, ParameterUser &param_user, libMesh::Real &value)
Helper function for parsing/maintaing backward compatibility.
const libMesh::FEGenericBase< libMesh::Real > * get_fe(const AssemblyContext &context)

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