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

Specialized numbering scheme for CBS algorithm, since it needs velocities separately. More...

#include <cbs.h>

+ Inheritance diagram for oofem::VelocityEquationNumbering:
+ Collaboration diagram for oofem::VelocityEquationNumbering:

Public Member Functions

 VelocityEquationNumbering (bool prescribed)
 
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 ()
 
- Public Member Functions inherited from oofem::UnknownNumberingScheme
 UnknownNumberingScheme (void)
 
virtual ~UnknownNumberingScheme ()
 
virtual void init ()
 Initializes the receiver, if necessary. More...
 

Protected Attributes

bool prescribed
 
int numEqs
 

Detailed Description

Specialized numbering scheme for CBS algorithm, since it needs velocities separately.

Definition at line 119 of file cbs.h.

Constructor & Destructor Documentation

oofem::VelocityEquationNumbering::VelocityEquationNumbering ( bool  prescribed)
inline

Definition at line 126 of file cbs.h.

Member Function Documentation

int oofem::VelocityEquationNumbering::askNewEquationNumber ( )
inline
virtual int oofem::VelocityEquationNumbering::giveDofEquationNumber ( Dof dof) const
inlinevirtual

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 129 of file cbs.h.

References oofem::Dof::__giveEquationNumber(), oofem::Dof::__givePrescribedEquationNumber(), and oofem::Dof::giveDofID().

virtual int oofem::VelocityEquationNumbering::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 137 of file cbs.h.

virtual bool oofem::VelocityEquationNumbering::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 128 of file cbs.h.

Member Data Documentation

int oofem::VelocityEquationNumbering::numEqs
protected

Definition at line 123 of file cbs.h.

bool oofem::VelocityEquationNumbering::prescribed
protected

Definition at line 122 of file cbs.h.


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

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