OOFEM 3.0
Loading...
Searching...
No Matches
oofem::VelocityNumberingScheme Class Reference

#include <pfemnumberingschemes.h>

Inheritance diagram for oofem::VelocityNumberingScheme:
Collaboration diagram for oofem::VelocityNumberingScheme:

Public Member Functions

 VelocityNumberingScheme (bool prescribed)
 Constructor.
virtual ~VelocityNumberingScheme ()
 Destructor.
void reset ()
 Resets the numbering in order to start numbering again from 1.
virtual bool isDefault () const override
virtual int giveDofEquationNumber (Dof *dof) const override
virtual int giveRequiredNumberOfDomainEquation () const override
int askNewEquationNumber ()
 Asks new equation number.
DofgiveDofToEquationNumber (Domain *d, int equationNumber)
 Returns Dof with passed equation number.
Public Member Functions inherited from oofem::UnknownNumberingScheme
 UnknownNumberingScheme (void)
virtual ~UnknownNumberingScheme ()
virtual void init ()

Protected Attributes

int numEqs
 Last given equation number.
bool prescribed
 prescribed equations or not

Detailed Description

Velocity numbering scheme for PFEM purposes

Author
David Krybus

Definition at line 92 of file pfemnumberingschemes.h.

Constructor & Destructor Documentation

◆ VelocityNumberingScheme()

oofem::VelocityNumberingScheme::VelocityNumberingScheme ( bool prescribed)

Constructor.

Definition at line 112 of file pfemnumberingschemes.C.

References numEqs, prescribed, and oofem::UnknownNumberingScheme::UnknownNumberingScheme().

◆ ~VelocityNumberingScheme()

oofem::VelocityNumberingScheme::~VelocityNumberingScheme ( )
virtual

Destructor.

Definition at line 118 of file pfemnumberingschemes.C.

Member Function Documentation

◆ askNewEquationNumber()

int oofem::VelocityNumberingScheme::askNewEquationNumber ( )
inline

Asks new equation number.

Definition at line 113 of file pfemnumberingschemes.h.

References numEqs.

◆ giveDofEquationNumber()

int oofem::VelocityNumberingScheme::giveDofEquationNumber ( Dof * dof) const
overridevirtual

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.

◆ giveDofToEquationNumber()

Dof * oofem::VelocityNumberingScheme::giveDofToEquationNumber ( Domain * d,
int equationNumber )

Returns Dof with passed equation number.

Definition at line 133 of file pfemnumberingschemes.C.

References oofem::Domain::giveDofManager(), and oofem::Domain::giveNumberOfDofManagers().

◆ giveRequiredNumberOfDomainEquation()

virtual int oofem::VelocityNumberingScheme::giveRequiredNumberOfDomainEquation ( ) const
inlineoverridevirtual

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.

References numEqs.

◆ isDefault()

virtual bool oofem::VelocityNumberingScheme::isDefault ( ) const
inlineoverridevirtual

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 prescribed.

◆ reset()

void oofem::VelocityNumberingScheme::reset ( )
inline

Resets the numbering in order to start numbering again from 1.

Definition at line 107 of file pfemnumberingschemes.h.

References numEqs.

Member Data Documentation

◆ numEqs

int oofem::VelocityNumberingScheme::numEqs
protected

Last given equation number.

Definition at line 96 of file pfemnumberingschemes.h.

Referenced by askNewEquationNumber(), giveRequiredNumberOfDomainEquation(), reset(), and VelocityNumberingScheme().

◆ prescribed

bool oofem::VelocityNumberingScheme::prescribed
protected

prescribed equations or not

Definition at line 98 of file pfemnumberingschemes.h.

Referenced by giveDofEquationNumber(), isDefault(), and VelocityNumberingScheme().


The documentation for this class was generated from the following files:

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011