OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
Numbering scheme that takes into account only list of selected nodes. More...
#include <quasicontinuumnumberingscheme.h>
Public Member Functions | |
QuasicontinuumNumberingscheme () | |
Constructor. More... | |
virtual | ~QuasicontinuumNumberingscheme () |
Destructor. More... | |
virtual void | init (Domain *domain, std::vector< bool > activatedNodeList, TimeStep *tStep) |
Initializes the receiver. More... | |
virtual bool | isDefault () const |
Returns true, if receiver is the default engngModel equation numbering scheme; This is useful for some components (typically elements), that cache their code numbers for default numbering to avoid repeated evaluation. More... | |
virtual int | giveDofEquationNumber (Dof *dof) const |
Returns the equation number for corresponding DOF. More... | |
virtual int | giveRequiredNumberOfDomainEquation () const |
Returns required number of domain equation. More... | |
virtual int | giveTotalNumberOfEquations () const |
Returns total number of equations. More... | |
virtual int | giveTotalNumberOfPrescribedEquations () const |
Returns total number of prescribed equations. More... | |
virtual void | reset () |
Resets the numbering in order to start numbering again from 1. More... | |
bool | giveIsInitializedFlag () |
Public Member Functions inherited from oofem::UnknownNumberingScheme | |
UnknownNumberingScheme (void) | |
virtual | ~UnknownNumberingScheme () |
virtual void | init () |
Initializes the receiver, if necessary. More... | |
Protected Attributes | |
Domain * | domain |
IntArray | nodalEquationNumbers |
Container storing particular equation numbers for each node. More... | |
IntArray | selectedNodes |
Selected nodes. More... | |
int | neq |
Last given number of equation. More... | |
int | pres_neq |
Last given number of prescribed equation. More... | |
bool | isInitialized |
Flag controlling wether the numbering has been initialized or not. More... | |
std::map< int, std::map< int, int > > * | equationMap |
map form dofid to equation number More... | |
Numbering scheme that takes into account only list of selected nodes.
Definition at line 49 of file quasicontinuumnumberingscheme.h.
oofem::QuasicontinuumNumberingscheme::QuasicontinuumNumberingscheme | ( | ) |
Constructor.
Definition at line 39 of file quasicontinuumnumberingscheme.C.
|
virtual |
|
virtual |
Returns the equation number for corresponding DOF.
The numbering should return nonzero value if the equation is assigned to the given DOF, zero otherwise.
Implements oofem::UnknownNumberingScheme.
Definition at line 134 of file quasicontinuumnumberingscheme.C.
References oofem::IntArray::at(), equationMap, oofem::Dof::giveDofID(), oofem::Dof::giveDofManNumber(), and selectedNodes.
Referenced by isDefault().
|
inline |
Definition at line 89 of file quasicontinuumnumberingscheme.h.
References isInitialized.
Referenced by oofem::QClinearStatic::solveYourselfAt().
|
virtual |
Returns required number of domain equation.
Number is always less or equal to the sum of all DOFs gathered from all nodes.
Reimplemented from oofem::UnknownNumberingScheme.
Definition at line 164 of file quasicontinuumnumberingscheme.C.
References neq.
Referenced by isDefault().
|
virtual |
Returns total number of equations.
Definition at line 157 of file quasicontinuumnumberingscheme.C.
References neq.
Referenced by isDefault().
|
virtual |
Returns total number of prescribed equations.
Definition at line 170 of file quasicontinuumnumberingscheme.C.
References pres_neq.
Referenced by isDefault().
|
virtual |
Initializes the receiver.
Definition at line 52 of file quasicontinuumnumberingscheme.C.
References oofem::IntArray::at(), equationMap, oofem::Domain::giveDofManager(), oofem::IntArray::giveSize(), isInitialized, neq, pres_neq, oofem::IntArray::resize(), selectedNodes, and oofem::IntArray::zero().
Referenced by oofem::QClinearStatic::solveYourselfAt().
|
inlinevirtual |
Returns true, if receiver is the default engngModel equation numbering scheme; This is useful for some components (typically elements), that cache their code numbers for default numbering to avoid repeated evaluation.
Reimplemented from oofem::UnknownNumberingScheme.
Definition at line 77 of file quasicontinuumnumberingscheme.h.
References giveDofEquationNumber(), giveRequiredNumberOfDomainEquation(), giveTotalNumberOfEquations(), giveTotalNumberOfPrescribedEquations(), and reset().
|
virtual |
Resets the numbering in order to start numbering again from 1.
Definition at line 127 of file quasicontinuumnumberingscheme.C.
Referenced by isDefault().
|
protected |
Definition at line 52 of file quasicontinuumnumberingscheme.h.
|
protected |
map form dofid to equation number
Definition at line 64 of file quasicontinuumnumberingscheme.h.
Referenced by giveDofEquationNumber(), init(), and ~QuasicontinuumNumberingscheme().
|
protected |
Flag controlling wether the numbering has been initialized or not.
Definition at line 62 of file quasicontinuumnumberingscheme.h.
Referenced by giveIsInitializedFlag(), and init().
|
protected |
Last given number of equation.
Definition at line 58 of file quasicontinuumnumberingscheme.h.
Referenced by giveRequiredNumberOfDomainEquation(), giveTotalNumberOfEquations(), init(), and reset().
|
protected |
Container storing particular equation numbers for each node.
Definition at line 54 of file quasicontinuumnumberingscheme.h.
|
protected |
Last given number of prescribed equation.
Definition at line 60 of file quasicontinuumnumberingscheme.h.
Referenced by giveTotalNumberOfPrescribedEquations(), init(), and reset().
|
protected |
Selected nodes.
Definition at line 56 of file quasicontinuumnumberingscheme.h.
Referenced by giveDofEquationNumber(), and init().