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

#include <staggeredsolver.h>

+ Inheritance diagram for oofem::CustomEquationNumbering:
+ Collaboration diagram for oofem::CustomEquationNumbering:

Public Member Functions

 CustomEquationNumbering ()
 
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...
 
void setDofIdArray (IntArray array)
 
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 giveNewEquationNumber ()
 
int giveNewPrescribedEquationNumber ()
 
int giveNumEquations ()
 
int giveNumPresEquations ()
 
- Public Member Functions inherited from oofem::UnknownNumberingScheme
 UnknownNumberingScheme (void)
 
virtual ~UnknownNumberingScheme ()
 
virtual void init ()
 Initializes the receiver, if necessary. More...
 

Public Attributes

IntArray dofIdArray
 

Protected Attributes

bool prescribed
 
int numEqs
 
int numPresEqs
 

Detailed Description

Definition at line 62 of file staggeredsolver.h.

Constructor & Destructor Documentation

oofem::CustomEquationNumbering::CustomEquationNumbering ( )

Definition at line 67 of file staggeredsolver.C.

Member Function Documentation

virtual int oofem::CustomEquationNumbering::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.

Referenced by setDofIdArray().

int oofem::CustomEquationNumbering::giveNewEquationNumber ( )
inline

Definition at line 80 of file staggeredsolver.h.

References numEqs.

int oofem::CustomEquationNumbering::giveNewPrescribedEquationNumber ( )
inline

Definition at line 81 of file staggeredsolver.h.

References numPresEqs.

int oofem::CustomEquationNumbering::giveNumEquations ( )
inline

Definition at line 82 of file staggeredsolver.h.

References numEqs.

int oofem::CustomEquationNumbering::giveNumPresEquations ( )
inline

Definition at line 83 of file staggeredsolver.h.

References numPresEqs.

virtual int oofem::CustomEquationNumbering::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 78 of file staggeredsolver.h.

References numEqs.

virtual bool oofem::CustomEquationNumbering::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 staggeredsolver.h.

void oofem::CustomEquationNumbering::setDofIdArray ( IntArray  array)
inline

Definition at line 74 of file staggeredsolver.h.

References giveDofEquationNumber().

Member Data Documentation

IntArray oofem::CustomEquationNumbering::dofIdArray

Definition at line 72 of file staggeredsolver.h.

int oofem::CustomEquationNumbering::numEqs
protected
int oofem::CustomEquationNumbering::numPresEqs
protected

Definition at line 67 of file staggeredsolver.h.

Referenced by giveNewPrescribedEquationNumber(), and giveNumPresEquations().

bool oofem::CustomEquationNumbering::prescribed
protected

Definition at line 65 of file staggeredsolver.h.


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