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

Numbering scheme that takes into account only list of selected nodes. More...

#include <quasicontinuumnumberingscheme.h>

+ Inheritance diagram for oofem::QuasicontinuumNumberingscheme:
+ Collaboration diagram for oofem::QuasicontinuumNumberingscheme:

Public Member Functions

 QuasicontinuumNumberingscheme ()
 Constructor. More...
 
virtual ~QuasicontinuumNumberingscheme ()
 Destructor. More...
 
virtual void init (Domain *domain, std::vector< bool > activatedNodeList, 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...
 
bool giveIsInitializedFlag ()
 
- Public Member Functions inherited from oofem::UnknownNumberingScheme
 UnknownNumberingScheme (void)
 
virtual ~UnknownNumberingScheme ()
 
virtual void init ()
 Initializes the receiver, if necessary. More...
 

Protected Attributes

Domaindomain
 
IntArray nodalEquationNumbers
 Container storing particular equation numbers for each node. More...
 
IntArray selectedNodes
 Selected nodes. 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...
 
std::map< int, std::map< int, int > > * equationMap
 map form dofid to equation number More...
 

Detailed Description

Numbering scheme that takes into account only list of selected nodes.

Author
Martin Horak

Definition at line 49 of file quasicontinuumnumberingscheme.h.

Constructor & Destructor Documentation

oofem::QuasicontinuumNumberingscheme::QuasicontinuumNumberingscheme ( )

Constructor.

Definition at line 39 of file quasicontinuumnumberingscheme.C.

oofem::QuasicontinuumNumberingscheme::~QuasicontinuumNumberingscheme ( )
virtual

Destructor.

Definition at line 46 of file quasicontinuumnumberingscheme.C.

References equationMap.

Member Function Documentation

int oofem::QuasicontinuumNumberingscheme::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 134 of file quasicontinuumnumberingscheme.C.

References oofem::IntArray::at(), equationMap, oofem::Dof::giveDofID(), oofem::Dof::giveDofManNumber(), and selectedNodes.

Referenced by isDefault().

bool oofem::QuasicontinuumNumberingscheme::giveIsInitializedFlag ( )
inline

Definition at line 89 of file quasicontinuumnumberingscheme.h.

References isInitialized.

Referenced by oofem::QClinearStatic::solveYourselfAt().

int oofem::QuasicontinuumNumberingscheme::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 164 of file quasicontinuumnumberingscheme.C.

References neq.

Referenced by isDefault().

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

Returns total number of equations.

Definition at line 157 of file quasicontinuumnumberingscheme.C.

References neq.

Referenced by isDefault().

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

Returns total number of prescribed equations.

Definition at line 170 of file quasicontinuumnumberingscheme.C.

References pres_neq.

Referenced by isDefault().

void oofem::QuasicontinuumNumberingscheme::init ( Domain domain,
std::vector< bool >  activatedNodeList,
TimeStep tStep 
)
virtual
virtual bool oofem::QuasicontinuumNumberingscheme::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 77 of file quasicontinuumnumberingscheme.h.

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

void oofem::QuasicontinuumNumberingscheme::reset ( )
virtual

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

Definition at line 127 of file quasicontinuumnumberingscheme.C.

References neq, and pres_neq.

Referenced by isDefault().

Member Data Documentation

Domain* oofem::QuasicontinuumNumberingscheme::domain
protected

Definition at line 52 of file quasicontinuumnumberingscheme.h.

std::map<int, std::map<int,int> >* oofem::QuasicontinuumNumberingscheme::equationMap
protected

map form dofid to equation number

Definition at line 64 of file quasicontinuumnumberingscheme.h.

Referenced by giveDofEquationNumber(), init(), and ~QuasicontinuumNumberingscheme().

bool oofem::QuasicontinuumNumberingscheme::isInitialized
protected

Flag controlling wether the numbering has been initialized or not.

Definition at line 62 of file quasicontinuumnumberingscheme.h.

Referenced by giveIsInitializedFlag(), and init().

int oofem::QuasicontinuumNumberingscheme::neq
protected

Last given number of equation.

Definition at line 58 of file quasicontinuumnumberingscheme.h.

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

IntArray oofem::QuasicontinuumNumberingscheme::nodalEquationNumbers
protected

Container storing particular equation numbers for each node.

Definition at line 54 of file quasicontinuumnumberingscheme.h.

int oofem::QuasicontinuumNumberingscheme::pres_neq
protected

Last given number of prescribed equation.

Definition at line 60 of file quasicontinuumnumberingscheme.h.

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

IntArray oofem::QuasicontinuumNumberingscheme::selectedNodes
protected

Selected nodes.

Definition at line 56 of file quasicontinuumnumberingscheme.h.

Referenced by giveDofEquationNumber(), and init().


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