43 , isInitialized(false)
70 for (
int i = 1; i <= ( int ) activatedNodeList.size(); i++ ) {
71 if ( activatedNodeList [ i - 1 ] ) {
83 equationMap =
new std :: map< int, std :: map< int, int > >();
88 std :: map< int, int > *dof2EquationMap =
new std :: map< int, int >();
91 idofman->giveCompleteMasterDofIDArray(dofIDArray);
92 if ( !idofman->hasAnySlaveDofs() ) {
93 for (
int k = 1; k <= dofIDArray.
giveSize(); k++ ) {
94 if ( idofman->giveDofWithID( dofIDArray.
at(k) )->hasBc(tStep) ) {
95 ( * dof2EquationMap ) [ dofIDArray.
at(k) ] = --
pres_neq;
97 ( * dof2EquationMap ) [ dofIDArray.
at(k) ] = ++
neq;
120 ( * this->
equationMap ) [ inode ] = * dof2EquationMap;
121 delete dof2EquationMap;
148 if ( dofEqNum < 0 ) {
int pres_neq
Last given number of prescribed equation.
IntArray selectedNodes
Selected nodes.
void zero()
Sets all component to zero.
Base class for dof managers.
virtual ~QuasicontinuumNumberingscheme()
Destructor.
Class implementing an array of integers.
int & at(int i)
Coefficient access function.
std::map< int, std::map< int, int > > * equationMap
map form dofid to equation number
int neq
Last given number of equation.
Abstract base class allowing to control the way, how equations are assigned to individual DOFs...
QuasicontinuumNumberingscheme()
Constructor.
DofIDItem giveDofID() const
Returns DofID value of receiver, which determines type of of unknown connected to receiver (e...
virtual int giveRequiredNumberOfDomainEquation() const
Returns required number of domain equation.
void resize(int n)
Checks size of receiver towards requested bounds.
int giveDofManNumber() const
virtual int giveDofEquationNumber(Dof *dof) const
Returns the equation number for corresponding DOF.
virtual int giveTotalNumberOfPrescribedEquations() const
Returns total number of prescribed equations.
virtual void init()
Initializes the receiver, if necessary.
virtual int giveTotalNumberOfEquations() const
Returns total number of equations.
bool isInitialized
Flag controlling wether the numbering has been initialized or not.
virtual void reset()
Resets the numbering in order to start numbering again from 1.
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.
DofManager * giveDofManager(int n)
Service for accessing particular domain dof manager.
Class representing solution step.