GRINS-0.6.0
elastic_cable_base.C
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 // This class
27 
28 // GRINS
29 #include "grins_config.h"
30 #include "grins/assembly_context.h"
31 
32 // libMesh
33 #include "libmesh/getpot.h"
34 #include "libmesh/fem_system.h"
35 
36 namespace GRINS
37 {
39  const GetPot& input )
40  : Physics(physics_name,input),
41  _disp_vars(input,physics_name)
42  {
43  return;
44  }
45 
47  {
48  return;
49  }
50 
51  void ElasticCableBase::init_variables( libMesh::FEMSystem* system )
52  {
53  // is_2D = false, is_3D = true
54  _disp_vars.init(system,false,true);
55 
56  return;
57  }
58 
59 
60  void ElasticCableBase::set_time_evolving_vars( libMesh::FEMSystem* system )
61  {
62  // Tell the system to march temperature forward in time
63  system->time_evolving(_disp_vars.u_var());
64  system->time_evolving(_disp_vars.v_var());
65  system->time_evolving(_disp_vars.w_var());
66 
67  return;
68  }
69 
71  {
72  this->get_fe(context)->get_JxW();
73  this->get_fe(context)->get_phi();
74  this->get_fe(context)->get_dphidxi();
75 
76  // Need for constructing metric tensors
77  this->get_fe(context)->get_dxyzdxi();
78  this->get_fe(context)->get_dxidx();
79  this->get_fe(context)->get_dxidy();
80  this->get_fe(context)->get_dxidz();
81 
82  return;
83  }
84 
85 } // end namespace GRINS
virtual void set_time_evolving_vars(libMesh::FEMSystem *system)
Set which variables are time evolving.
Physics abstract base class. Defines API for physics to be added to MultiphysicsSystem.
Definition: physics.h:106
SolidMechanicsFEVariables _disp_vars
GRINS namespace.
const libMesh::FEGenericBase< libMesh::Real > * get_fe(const AssemblyContext &context)
virtual void init_context(AssemblyContext &context)
Initialize context for added physics variables.
virtual void init_variables(libMesh::FEMSystem *system)
Initialize variables for this physics.
std::string PhysicsName
void init(libMesh::FEMSystem *system, bool is_2D, bool is_3D)
Initialize System variables.

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