OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
oofem::VelocityNumberingScheme Class Reference

Velocity numbering scheme for PFEM purposes. More...

#include <pfemnumberingschemes.h>

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

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...
 
DofgiveDofToEquationNumber (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...
 

Detailed Description

Velocity numbering scheme for PFEM purposes.

Author
David Krybus

Definition at line 92 of file pfemnumberingschemes.h.

Constructor & Destructor Documentation

oofem::VelocityNumberingScheme::VelocityNumberingScheme ( bool  prescribed)

Constructor.

Definition at line 112 of file pfemnumberingschemes.C.

oofem::VelocityNumberingScheme::~VelocityNumberingScheme ( )
virtual

Destructor.

Definition at line 118 of file pfemnumberingschemes.C.

Member Function Documentation

int oofem::VelocityNumberingScheme::askNewEquationNumber ( )
inline

Asks new equation number.

Definition at line 113 of file pfemnumberingschemes.h.

int oofem::VelocityNumberingScheme::giveDofEquationNumber ( Dof dof) const
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.

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().

virtual int oofem::VelocityNumberingScheme::giveRequiredNumberOfDomainEquation ( ) const
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.

virtual bool oofem::VelocityNumberingScheme::isDefault ( ) const
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().

void oofem::VelocityNumberingScheme::reset ( )
inline

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

Definition at line 107 of file pfemnumberingschemes.h.

Member Data Documentation

int oofem::VelocityNumberingScheme::numEqs
protected

Last given equation number.

Definition at line 96 of file pfemnumberingschemes.h.

bool oofem::VelocityNumberingScheme::prescribed
protected

prescribed equations or not

Definition at line 98 of file pfemnumberingschemes.h.

Referenced by giveDofEquationNumber().


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

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:43 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011