Plugins
contact.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013-2015: G-CSC, Goethe University Frankfurt
3  * Author: Raphael Prohl
4  *
5  * This file is part of UG4.
6  *
7  * UG4 is free software: you can redistribute it and/or modify it under the
8  * terms of the GNU Lesser General Public License version 3 (as published by the
9  * Free Software Foundation) with the following additional attribution
10  * requirements (according to LGPL/GPL v3 §7):
11  *
12  * (1) The following notice must be displayed in the Appropriate Legal Notices
13  * of covered and combined works: "Based on UG4 (www.ug4.org/license)".
14  *
15  * (2) The following notice must be displayed at a prominent place in the
16  * terminal output of covered works: "Based on UG4 (www.ug4.org/license)".
17  *
18  * (3) The following bibliography is recommended for citation and must be
19  * preserved in all covered files:
20  * "Reiter, S., Vogel, A., Heppner, I., Rupp, M., and Wittum, G. A massively
21  * parallel geometric multigrid solver on hierarchically distributed grids.
22  * Computing and visualization in science 16, 4 (2013), 151-164"
23  * "Vogel, A., Reiter, S., Rupp, M., Nägel, A., and Wittum, G. UG4 -- a novel
24  * flexible software system for simulating pde based models on high performance
25  * computers. Computing and visualization in science 16, 4 (2013), 165-179"
26  *
27  * This program is distributed in the hope that it will be useful,
28  * but WITHOUT ANY WARRANTY; without even the implied warranty of
29  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30  * GNU Lesser General Public License for more details.
31  */
32 
33 #ifndef CONTACT_H_
34 #define CONTACT_H_
35 
36 #include "bridge/bridge.h"
37 
38 // other ug4 modules
39 #include "common/common.h"
41 
42 // intern headers
43 #include "../small_strain_mech.h"
44 
45 using namespace std;
46 
47 namespace ug{
48 namespace SmallStrainMechanics{
49 
51 
64 template <typename TDomain, typename TGridFunction>
66  : public ILagrangeMultiplierDisc<TDomain, TGridFunction>
67 {
68  private:
71 
74 
75  public:
78 
80  static const int dim = base_type::dim;
81 
82  public:
85 
88 
89  virtual void lagrange_multiplier(TGridFunction& lagMult, const TGridFunction& u,
90  vector<DoFIndex> vActiveSet, vector<int> vActiveSubsets);
91 
92  template <typename TSideElem, typename TIterator>
93  void contact_forces_elem(TIterator iterBegin,
94  TIterator iterEnd, const TGridFunction& u, TGridFunction& contactForce,
95  vector<DoFIndex> vActiveSetGlob);
96 
97  private:
100 };
101 
102 }// end of namespace SmallStrainMechanics
103 }// end of namespace ug
104 
105 #include "contact_impl.h"
106 
107 #endif /* CONTACT_H_ */
Contact conditions for small strain mechanical applications.
Definition: contact.h:67
virtual ~ContactSmallStrainMechanics()
Virtual destructor.
Definition: contact.h:87
SmartPtr< SmallStrainMechanicsElemDisc< TDomain > > m_spMechElemDisc
pointer to the element discretization
Definition: contact.h:99
ContactSmallStrainMechanics< TDomain, TGridFunction > this_type
own type
Definition: contact.h:73
ILagrangeMultiplierDisc< TDomain, TGridFunction > base_type
Base class type.
Definition: contact.h:70
base_type::domain_type domain_type
Domain type.
Definition: contact.h:77
static const int dim