OOFEM 3.0
Loading...
Searching...
No Matches
structuralpenaltycontactbc.h
Go to the documentation of this file.
1/*
2 *
3 * ##### ##### ###### ###### ### ###
4 * ## ## ## ## ## ## ## ### ##
5 * ## ## ## ## #### #### ## # ##
6 * ## ## ## ## ## ## ## ##
7 * ## ## ## ## ## ## ## ##
8 * ##### ##### ## ###### ## ##
9 *
10 *
11 * OOFEM : Object Oriented Finite Element Code
12 *
13 * Copyright (C) 1993 - 2025 Borek Patzak
14 *
15 *
16 *
17 * Czech Technical University, Faculty of Civil Engineering,
18 * Department of Structural Mechanics, 166 29 Prague, Czech Republic
19 *
20 * This library is free software; you can redistribute it and/or
21 * modify it under the terms of the GNU Lesser General Public
22 * License as published by the Free Software Foundation; either
23 * version 2.1 of the License, or (at your option) any later version.
24 *
25 * This program is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28 * Lesser General Public License for more details.
29 *
30 * You should have received a copy of the GNU Lesser General Public
31 * License along with this library; if not, write to the Free Software
32 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
33 */
34#ifndef structuralpenaltycontactbc_h
35#define structuralpenaltycontactbc_h
36
37
38#include "Contact/contactbc.h"
41
43
44#define _IFT_StructuralPenaltyContactBoundaryCondition_Name "structuralpenaltycontactbc"
45#define _IFT_StructuralPenaltyContactBoundaryCondition_penaltyNormal "pn"
46#define _IFT_StructuralPenaltyContactBoundaryCondition_penaltyTangential "pt"
47#define _IFT_StructuralPenaltyContactBoundaryCondition_friction "friction"
49
50#define _IFT_StructuralPenaltyContactBoundaryCondition_masterSurfaceNum "mastersurface"
51#define _IFT_StructuralPenaltyContactBoundaryCondition_slaveSurfaceNum "slavesurface"
53#define _IFT_StructuralPenaltyContactBoundaryCondition_nsd "nsd"
55#define _IFT_StructuralPenaltyContactBoundaryCondition_algo "algo"
56
58
59namespace oofem {
60class Domain;
61class SparseMtrx;
62class TimeStep;
63class DofManager;
64class UnknownNumberingScheme;
65class FloatMatrix;
66
77
78
80
81
83{
84private:
87 double friction;
89 int algo;
90
91 //@todo: move to contact search algorithm
96 // should be generalized to structural contact surface, i.e., a surface that is not necessarly discretized into finite elements
99
100public:
105 // initialization, i.e., reading input filex
106 void initializeFrom(InputRecord &ir) override;
107 void postInitialize() override;
108 virtual const char *giveClassName() const override { return "StructuralPenaltyContactBoundaryCondition"; }
109 virtual const char *giveInputRecordName() const override { return _IFT_StructuralPenaltyContactBoundaryCondition_Name; }
110 //
111 void setupContactSearchAlgorithm() override;
112private:
113 // compute tangent stiffness matrix
114 void computeTangentFromContact(FloatMatrix &answer, ContactPair *cp, TimeStep *tStep) override;
115 // compute internal forces
116 void computeInternalForcesFromContact(FloatArray &answer, ContactPair *cp, TimeStep *tStep) override;
117 void computeTractions(double& normalTraction, FloatArray &tangentialTraction, FloatArray &tangentialTractionTrial, ContactProcess& mode, ContactPair* contactPair, TimeStep *tStep);
118 // location arrays
119 void giveLocationArrays(std::vector< IntArray > &rows, std::vector< IntArray > &cols, CharType type, const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s) override;
120 private:
121 FloatMatrix computeContravariantMetric(const std::vector<FloatArray> &tangent_vectors);
122 FloatMatrix computeCovariantMetric(const std::vector<FloatArray> &tangent_vectors);
123
124
125
126};
127} // end namespace oofem
128#endif // node2segmentpenaltycontact_h
ContactBoundaryCondition(int n, Domain *d)
Definition contactbc.h:90
Represents a contact interaction between a master and a slave contact point.
Definition contactpair.h:68
int surface_dimension
dimension of the surface, i.e., nsd - 1
double penalty_tangential
penalty in the tangent directions.
virtual const char * giveInputRecordName() const override
StructuralPenaltyContactBoundaryCondition(int n, Domain *d)
Constructor.
double penalty_normal
penalty in the normal direction.
#define OOFEM_EXPORT
Definition oofemcfg.h:7
#define _IFT_StructuralPenaltyContactBoundaryCondition_Name

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011