GRINS-0.6.0
elastic_membrane_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 {
38  ElasticMembraneBase::ElasticMembraneBase( const GRINS::PhysicsName& physics_name, const GetPot& input )
39  : Physics(physics_name,input),
40  _disp_vars(input,physics_name)
41  {
42  return;
43  }
44 
46  {
47  return;
48  }
49 
50  void ElasticMembraneBase::init_variables( libMesh::FEMSystem* system )
51  {
52  // is_2D = false, is_3D = true
53  _disp_vars.init(system,false,true);
54 
55  return;
56  }
57 
58  void ElasticMembraneBase::set_time_evolving_vars( libMesh::FEMSystem* system )
59  {
60  // Tell the system to march temperature forward in time
61  system->time_evolving(_disp_vars.u_var());
62  system->time_evolving(_disp_vars.v_var());
63  system->time_evolving(_disp_vars.w_var());
64 
65  return;
66  }
67 
69  {
70  this->get_fe(context)->get_JxW();
71  this->get_fe(context)->get_phi();
72  this->get_fe(context)->get_dphidxi();
73  this->get_fe(context)->get_dphideta();
74 
75  // Need for constructing metric tensors
76  this->get_fe(context)->get_dxyzdxi();
77  this->get_fe(context)->get_dxyzdeta();
78  this->get_fe(context)->get_dxidx();
79  this->get_fe(context)->get_dxidy();
80  this->get_fe(context)->get_dxidz();
81  this->get_fe(context)->get_detadx();
82  this->get_fe(context)->get_detady();
83  this->get_fe(context)->get_detadz();
84 
85  return;
86  }
87 
88 } // end namespace GRINS
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
void init(libMesh::FEMSystem *system, bool is_2D, bool is_3D)
Initialize System variables.
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