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

Numbering scheme that takes into account only pressure DOFs in PFEM problems. More...

#include <pfemnumberingschemes.h>

+ Inheritance diagram for oofem::PressureNumberingScheme:
+ Collaboration diagram for oofem::PressureNumberingScheme:

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

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

Detailed Description

Numbering scheme that takes into account only pressure DOFs in PFEM problems.

Pressure is scalar unknown in each node.

Author
David Krybus

Definition at line 50 of file pfemnumberingschemes.h.

Constructor & Destructor Documentation

oofem::PressureNumberingScheme::PressureNumberingScheme ( )

Constructor.

Definition at line 38 of file pfemnumberingschemes.C.

oofem::PressureNumberingScheme::~PressureNumberingScheme ( )
virtual

Destructor.

Definition at line 45 of file pfemnumberingschemes.C.

Member Function Documentation

int oofem::PressureNumberingScheme::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 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().

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

int oofem::PressureNumberingScheme::giveTotalNumberOfEquations ( ) const
virtual

Returns total number of equations.

Definition at line 93 of file pfemnumberingschemes.C.

References neq.

Referenced by isDefault().

int oofem::PressureNumberingScheme::giveTotalNumberOfPrescribedEquations ( ) const
virtual

Returns total number of prescribed equations.

Definition at line 106 of file pfemnumberingschemes.C.

References pres_neq.

Referenced by isDefault().

void oofem::PressureNumberingScheme::init ( Domain domain,
TimeStep tStep 
)
virtual
virtual bool oofem::PressureNumberingScheme::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 73 of file pfemnumberingschemes.h.

References giveDofEquationNumber(), giveRequiredNumberOfDomainEquation(), giveTotalNumberOfEquations(), giveTotalNumberOfPrescribedEquations(), and reset().

void oofem::PressureNumberingScheme::reset ( )
virtual

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

Definition at line 72 of file pfemnumberingschemes.C.

References neq, and pres_neq.

Referenced by isDefault().

Member Data Documentation

Domain* oofem::PressureNumberingScheme::domain
protected

Definition at line 53 of file pfemnumberingschemes.h.

bool oofem::PressureNumberingScheme::isInitialized
protected

Flag controlling wether the numbering has been initialized or not.

Definition at line 61 of file pfemnumberingschemes.h.

Referenced by init().

int oofem::PressureNumberingScheme::neq
protected

Last given number of equation.

Definition at line 57 of file pfemnumberingschemes.h.

Referenced by giveRequiredNumberOfDomainEquation(), giveTotalNumberOfEquations(), init(), and reset().

IntArray oofem::PressureNumberingScheme::nodalPressureEquationNumbers
protected

Container storing particular equation numbers for each node.

Definition at line 55 of file pfemnumberingschemes.h.

Referenced by giveDofEquationNumber(), and init().

int oofem::PressureNumberingScheme::pres_neq
protected

Last given number of prescribed equation.

Definition at line 59 of file pfemnumberingschemes.h.

Referenced by giveTotalNumberOfPrescribedEquations(), init(), and reset().


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