OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
Numbering scheme that takes into account only pressure DOFs in PFEM problems. More...
#include <pfemnumberingschemes.h>
Public Member Functions | |
PressureNumberingScheme () | |
Constructor. More... | |
virtual | ~PressureNumberingScheme () |
Destructor. More... | |
virtual void | init (Domain *domain, 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... | |
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 | nodalPressureEquationNumbers |
Container storing particular equation numbers for each node. 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... | |
Numbering scheme that takes into account only pressure DOFs in PFEM problems.
Pressure is scalar unknown in each node.
Definition at line 50 of file pfemnumberingschemes.h.
oofem::PressureNumberingScheme::PressureNumberingScheme | ( | ) |
Constructor.
Definition at line 38 of file pfemnumberingschemes.C.
|
virtual |
Destructor.
Definition at line 45 of file pfemnumberingschemes.C.
|
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 79 of file pfemnumberingschemes.C.
References oofem::IntArray::at(), oofem::Dof::giveDofID(), oofem::Dof::giveDofManNumber(), and nodalPressureEquationNumbers.
Referenced by isDefault(), oofem::VelocityNumberingScheme::isDefault(), and oofem::AuxVelocityNumberingScheme::reset().
|
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 100 of file pfemnumberingschemes.C.
References neq.
Referenced by isDefault(), and oofem::AuxVelocityNumberingScheme::reset().
|
virtual |
Returns total number of equations.
Definition at line 93 of file pfemnumberingschemes.C.
References neq.
Referenced by isDefault().
|
virtual |
Returns total number of prescribed equations.
Definition at line 106 of file pfemnumberingschemes.C.
References pres_neq.
Referenced by isDefault().
Initializes the receiver.
Definition at line 49 of file pfemnumberingschemes.C.
References oofem::IntArray::at(), oofem::Domain::giveDofManager(), oofem::Domain::giveNumberOfDofManagers(), isInitialized, neq, nodalPressureEquationNumbers, pres_neq, and oofem::IntArray::resize().
|
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 73 of file pfemnumberingschemes.h.
References giveDofEquationNumber(), giveRequiredNumberOfDomainEquation(), giveTotalNumberOfEquations(), giveTotalNumberOfPrescribedEquations(), and reset().
|
virtual |
Resets the numbering in order to start numbering again from 1.
Definition at line 72 of file pfemnumberingschemes.C.
Referenced by isDefault().
|
protected |
Definition at line 53 of file pfemnumberingschemes.h.
|
protected |
Flag controlling wether the numbering has been initialized or not.
Definition at line 61 of file pfemnumberingschemes.h.
Referenced by init().
|
protected |
Last given number of equation.
Definition at line 57 of file pfemnumberingschemes.h.
Referenced by giveRequiredNumberOfDomainEquation(), giveTotalNumberOfEquations(), init(), and reset().
|
protected |
Container storing particular equation numbers for each node.
Definition at line 55 of file pfemnumberingschemes.h.
Referenced by giveDofEquationNumber(), and init().
|
protected |
Last given number of prescribed equation.
Definition at line 59 of file pfemnumberingschemes.h.
Referenced by giveTotalNumberOfPrescribedEquations(), init(), and reset().