OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
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 - 2013 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 
40 namespace oofem {
41 class ActiveBoundaryCondition;
42 
48 class OOFEM_EXPORT ActiveDof : public Dof
49 {
50 protected:
54  int bc;
57 
58 public:
65  ActiveDof(DofManager * aNode, DofIDItem id = Undef, int bc = 0);
67  virtual ~ActiveDof() { }
68 
69  virtual void initialize(int cntOfMstrDfMngr, const IntArray &masterNodes, const IntArray *mstrDofID, const FloatArray &mstrContribution);
70  virtual int giveNumberOfPrimaryMasterDofs();
71  virtual bool isPrimaryDof();
72  int giveNumberOfMasterDofs();
73  virtual void giveMasterDofManArray(IntArray &answer);
74  virtual void giveUnknowns(FloatArray &masterUnknowns, ValueModeType mode, TimeStep *tStep);
75  virtual void giveUnknowns(FloatArray &masterUnknowns, PrimaryField &field, ValueModeType mode, TimeStep *tStep);
76  virtual void computeDofTransformation(FloatArray &primaryMasterContribs);
77  virtual void giveEquationNumbers(IntArray &masterEqNumbers, const UnknownNumberingScheme &s);
78  virtual void giveDofIDs(IntArray &masterDofIDs);
79 
80  virtual double giveUnknown(ValueModeType mode, TimeStep *tStep);
81  virtual double giveUnknown(PrimaryField &field, ValueModeType mode, TimeStep *tStep);
82 
83  virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj = NULL);
84  virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj = NULL);
85 
86  virtual dofType giveDofType() { return DT_active; }
87  virtual const char *giveClassName() const { return "ActiveDof"; }
88 
89  virtual void updateLocalNumbering(EntityRenumberingFunctor &f);
90 
91  virtual int __giveEquationNumber() const;
92  virtual int __givePrescribedEquationNumber();
93  virtual int askNewEquationNumber(TimeStep *tStep);
94  virtual bool hasBc(TimeStep *tStep);
95  virtual int giveBcId();
96  virtual void setBcId(int bcId);
97  virtual double giveBcValue(ValueModeType mode, TimeStep *tStep);
98 
99  virtual bool hasIc(TimeStep *tStep);
100  virtual bool hasIcOn(ValueModeType type);
101  virtual InitialCondition *giveIc();
102  virtual bool hasIc();
103  virtual int giveIcId();
104 
105  ActiveBoundaryCondition *giveActiveBoundaryCondition();
106 
107 protected:
108  inline Dof *giveMasterDof(int i);
109 };
110 } // end namespace oofem
111 #endif // slavedof_h
Class implementing general initial condition.
Abstract class representing field of primary variables (those, which are unknown and are typically as...
Definition: primaryfield.h:104
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
Definition: datastream.h:54
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
dofType
Dof Type, determines the type of DOF created.
Definition: doftype.h:48
Base class for dof managers.
Definition: dofmanager.h:113
Class implementing an array of integers.
Definition: intarray.h:61
int equationNumber
Corresponding equation number (positive value) or prescribed equation number (negative value)...
Definition: activedof.h:52
DofIDItem
Type representing particular dof type.
Definition: dofiditem.h:86
Abstract base class allowing to control the way, how equations are assigned to individual DOFs...
Abstract base class for all active boundary conditions.
Definition: activebc.h:63
Class representing "slave" degree of freedom with an active boundary condition.
Definition: activedof.h:48
virtual const char * giveClassName() const
Returns class name of the receiver.
Definition: activedof.h:87
Class representing vector of real numbers.
Definition: floatarray.h:82
virtual ~ActiveDof()
Destructor.
Definition: activedof.h:67
int bc
Boundary condition number.
Definition: activedof.h:54
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
Definition: contextmode.h:43
virtual dofType giveDofType()
Returns the type of the receiver.
Definition: activedof.h:86
the oofem namespace is to define a context or scope in which all oofem names are defined.
Abstract class Dof represents Degree Of Freedom in finite element mesh.
Definition: dof.h:93
ActiveBoundaryCondition * activeBC
Active boundary condition number.
Definition: activedof.h:56
Class representing solution step.
Definition: timestep.h:80

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:27 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011