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

Specialized numbering scheme for assembling only specified DofIDs. More...

#include <unknownnumberingscheme.h>

+ Inheritance diagram for oofem::DofIDEquationNumbering:
+ Collaboration diagram for oofem::DofIDEquationNumbering:

Public Member Functions

 DofIDEquationNumbering (bool prescribed, IntArray dofids)
 
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...
 
- Public Member Functions inherited from oofem::UnknownNumberingScheme
 UnknownNumberingScheme (void)
 
virtual ~UnknownNumberingScheme ()
 
virtual void init ()
 Initializes the receiver, if necessary. More...
 
virtual int giveRequiredNumberOfDomainEquation () const
 Returns required number of domain equation. More...
 

Protected Attributes

IntArray dofids
 
bool prescribed
 

Detailed Description

Specialized numbering scheme for assembling only specified DofIDs.

This can be useful for computing the reaction forces for a subset of dofids.

Definition at line 112 of file unknownnumberingscheme.h.

Constructor & Destructor Documentation

oofem::DofIDEquationNumbering::DofIDEquationNumbering ( bool  prescribed,
IntArray  dofids 
)
inline

Definition at line 119 of file unknownnumberingscheme.h.

Member Function Documentation

virtual int oofem::DofIDEquationNumbering::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 123 of file unknownnumberingscheme.h.

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

virtual bool oofem::DofIDEquationNumbering::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 122 of file unknownnumberingscheme.h.

Member Data Documentation

IntArray oofem::DofIDEquationNumbering::dofids
protected

Definition at line 115 of file unknownnumberingscheme.h.

bool oofem::DofIDEquationNumbering::prescribed
protected

Definition at line 116 of file unknownnumberingscheme.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:34 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011