OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
Velocity numbering scheme for PFEM purposes. More...
#include <pfemnumberingschemes.h>
Public Member Functions | |
VelocityNumberingScheme (bool prescribed) | |
Constructor. More... | |
virtual | ~VelocityNumberingScheme () |
Destructor. More... | |
void | reset () |
Resets the numbering in order to start numbering again from 1. 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... | |
int | askNewEquationNumber () |
Asks new equation number. More... | |
Dof * | giveDofToEquationNumber (Domain *d, int equationNumber) |
Returns Dof with passed equation number. More... | |
Public Member Functions inherited from oofem::UnknownNumberingScheme | |
UnknownNumberingScheme (void) | |
virtual | ~UnknownNumberingScheme () |
virtual void | init () |
Initializes the receiver, if necessary. More... | |
Protected Attributes | |
int | numEqs |
Last given equation number. More... | |
bool | prescribed |
prescribed equations or not More... | |
Velocity numbering scheme for PFEM purposes.
Definition at line 92 of file pfemnumberingschemes.h.
oofem::VelocityNumberingScheme::VelocityNumberingScheme | ( | bool | prescribed | ) |
Constructor.
Definition at line 112 of file pfemnumberingschemes.C.
|
virtual |
Destructor.
Definition at line 118 of file pfemnumberingschemes.C.
|
inline |
Asks new equation number.
Definition at line 113 of file pfemnumberingschemes.h.
|
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 122 of file pfemnumberingschemes.C.
References oofem::Dof::__giveEquationNumber(), oofem::Dof::__givePrescribedEquationNumber(), oofem::Dof::giveDofID(), and prescribed.
Returns Dof with passed equation number.
Definition at line 133 of file pfemnumberingschemes.C.
References oofem::Domain::giveDofManager(), and oofem::Domain::giveNumberOfDofManagers().
|
inlinevirtual |
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 110 of file pfemnumberingschemes.h.
|
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 108 of file pfemnumberingschemes.h.
References oofem::PressureNumberingScheme::giveDofEquationNumber().
|
inline |
Resets the numbering in order to start numbering again from 1.
Definition at line 107 of file pfemnumberingschemes.h.
|
protected |
Last given equation number.
Definition at line 96 of file pfemnumberingschemes.h.
|
protected |
prescribed equations or not
Definition at line 98 of file pfemnumberingschemes.h.
Referenced by giveDofEquationNumber().