OOFEM 3.0
Loading...
Searching...
No Matches
activedof.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 activedof_h
36#define activedof_h
37
38#include "dof.h"
39
40namespace oofem {
42
49{
50protected:
54 int bc;
57
58public:
65 ActiveDof(DofManager * aNode, DofIDItem id = Undef, int bc = 0);
67 virtual ~ActiveDof() { }
68
69 void initialize(int cntOfMstrDfMngr, const IntArray &masterNodes, const IntArray *mstrDofID, const FloatArray &mstrContribution);
70 int giveNumberOfPrimaryMasterDofs() override;
71 bool isPrimaryDof() override;
72 int giveNumberOfMasterDofs();
73 void giveMasterDofManArray(IntArray &answer) override;
74 void giveUnknowns(FloatArray &masterUnknowns, ValueModeType mode, TimeStep *tStep) override;
75 void giveUnknowns(FloatArray &masterUnknowns, PrimaryField &field, ValueModeType mode, TimeStep *tStep) override;
76 void computeDofTransformation(FloatArray &primaryMasterContribs) override;
77 void giveEquationNumbers(IntArray &masterEqNumbers, const UnknownNumberingScheme &s) override;
78 void giveDofIDs(IntArray &masterDofIDs) override;
79
80 double giveUnknown(ValueModeType mode, TimeStep *tStep) override;
81 double giveUnknown(PrimaryField &field, ValueModeType mode, TimeStep *tStep) override;
82
83 void saveContext(DataStream &stream, ContextMode mode) override;
84 void restoreContext(DataStream &stream, ContextMode mode) override;
85
86 dofType giveDofType() override { return DT_active; }
87 const char *giveClassName() const override { return "ActiveDof"; }
88
89 void updateLocalNumbering(EntityRenumberingFunctor &f) override;
90
91 int __giveEquationNumber() const override;
92 int __givePrescribedEquationNumber() override;
93 int askNewEquationNumber(TimeStep *tStep) override;
94 bool hasBc(TimeStep *tStep) override;
95 int giveBcId() override;
96 void setBcId(int bcId) override;
97 double giveBcValue(ValueModeType mode, TimeStep *tStep) override;
98
99 bool hasIcOn(ValueModeType type) override;
100 InitialCondition *giveIc() override;
101 bool hasIc() override;
102 int giveIcId() override;
103
104 ActiveBoundaryCondition *giveActiveBoundaryCondition();
105
106protected:
107 inline Dof *giveMasterDof(int i);
108};
109} // end namespace oofem
110#endif // slavedof_h
dofType giveDofType() override
Returns the type of the receiver.
Definition activedof.h:86
int equationNumber
Corresponding equation number (positive value) or prescribed equation number (negative value).
Definition activedof.h:52
const char * giveClassName() const override
Returns class name of the receiver.
Definition activedof.h:87
virtual ~ActiveDof()
Destructor.
Definition activedof.h:67
ActiveBoundaryCondition * activeBC
Active boundary condition number.
Definition activedof.h:56
ActiveDof(DofManager *aNode, DofIDItem id=Undef, int bc=0)
Definition activedof.C:44
int bc
Boundary condition number.
Definition activedof.h:54
Dof(DofManager *aNode, DofIDItem id=Undef)
Definition dof.C:50
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