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

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

#include <cbs.h>

+ Inheritance diagram for oofem::PressureEquationNumbering:
+ Collaboration diagram for oofem::PressureEquationNumbering:

Public Member Functions

 PressureEquationNumbering (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 pressures separately.

Definition at line 145 of file cbs.h.

Constructor & Destructor Documentation

oofem::PressureEquationNumbering::PressureEquationNumbering ( bool  prescribed)
inline

Definition at line 152 of file cbs.h.

Member Function Documentation

int oofem::PressureEquationNumbering::askNewEquationNumber ( )
inline
virtual int oofem::PressureEquationNumbering::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 155 of file cbs.h.

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

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

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

Member Data Documentation

int oofem::PressureEquationNumbering::numEqs
protected

Definition at line 149 of file cbs.h.

bool oofem::PressureEquationNumbering::prescribed
protected

Definition at line 148 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:39 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011