OOFEM 3.0
Loading...
Searching...
No Matches
slavedof.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
35#ifndef slavedof_h
36#define slavedof_h
37
38#include "dof.h"
39
40namespace oofem {
48{
49protected:
60
61public:
67 SlaveDof(DofManager * aNode, DofIDItem id = Undef);
69 virtual ~SlaveDof(void) { }
70
71 dofType giveDofType() override { return DT_slave; }
72
73 void initialize(const IntArray &masterNodes, const IntArray &mstrDofID, const FloatArray &mstrContribution);
74 int giveNumberOfPrimaryMasterDofs() override;
75 void giveMasterDofManArray(IntArray &answer) override;
76 void giveUnknowns(FloatArray &masterUnknowns, ValueModeType mode, TimeStep *tStep) override;
77 void giveUnknowns(FloatArray &masterUnknowns, PrimaryField &field, ValueModeType mode, TimeStep *tStep) override;
78 void computeDofTransformation(FloatArray &primaryMasterContribs) override;
79 void giveEquationNumbers(IntArray &masterEqNumbers, const UnknownNumberingScheme &s) override;
80 void giveDofIDs(IntArray &masterDofIDs) override;
81
93 double giveUnknown(ValueModeType mode, TimeStep *tStep) override;
94 double giveUnknown(PrimaryField &field, ValueModeType mode, TimeStep *tStep) override;
95
103 int __giveEquationNumber() const override;
111 int __givePrescribedEquationNumber() override;
115 int askNewEquationNumber(TimeStep *tStep) override { return 1; }
116
122 bool hasBc(TimeStep *tStep) override { return false; }
123
129 bool hasIc() override { return false; }
130
135 bool hasIcOn(ValueModeType) override { return false; }
136
137 int giveBcId() override { return 0; }
138 int giveIcId() override { return 0; }
139
140 void saveContext(DataStream &stream, ContextMode mode) override;
141 void restoreContext(DataStream &stream, ContextMode mode) override;
142
143 const char *giveClassName() const override { return "SlaveDof"; }
144
145 void updateLocalNumbering(EntityRenumberingFunctor &f) override;
146
147protected:
148 inline Dof *giveMasterDof(int i);
149};
150} // end namespace oofem
151#endif // slavedof_h
Dof(DofManager *aNode, DofIDItem id=Undef)
Definition dof.C:50
bool hasIcOn(ValueModeType) override
Definition slavedof.h:135
IntArray dofIDs
Array of master dofIDs.
Definition slavedof.h:57
int askNewEquationNumber(TimeStep *tStep) override
Definition slavedof.h:115
int countOfPrimaryMasterDofs
Count of master DofManagers.
Definition slavedof.h:53
virtual ~SlaveDof(void)
Destructor.
Definition slavedof.h:69
int countOfMasterDofs
Count of master DofManagers.
Definition slavedof.h:51
int giveBcId() override
Definition slavedof.h:137
bool hasIc() override
Definition slavedof.h:129
IntArray masterDofMans
Array of master DofManagers.
Definition slavedof.h:55
bool hasBc(TimeStep *tStep) override
Definition slavedof.h:122
dofType giveDofType() override
Returns the type of the receiver.
Definition slavedof.h:71
int giveIcId() override
Definition slavedof.h:138
const char * giveClassName() const override
Returns class name of the receiver.
Definition slavedof.h:143
FloatArray masterContribution
Vector of master contribution coefficients.
Definition slavedof.h:59
SlaveDof(DofManager *aNode, DofIDItem id=Undef)
Definition slavedof.C:44
long ContextMode
Definition contextmode.h:43
dofType
Dof Type, determines the type of DOF created.
Definition doftype.h:48
#define OOFEM_EXPORT
Definition oofemcfg.h:7

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