class ConstraintHandler : public MovableObject


Inheritance:


Public Methods

ConstraintHandler(int classTag)
virtual ~ConstraintHandler()
void setLinks(Domain &theDomain, AnalysisModel &theModel, Integrator &theIntegrator)
virtual int handle(const ID *nodesNumberedLast =0)
virtual void clearAll(void)

Protected Methods

Domain* getDomainPtr(void) const
AnalysisModel* getAnalysisModelPtr(void) const
Integrator* getIntegratorPtr(void) const

Inherited from MovableObject:

Public Methods

int getClassTag(void) const
int getDbTag(void) const
void setDbTag(int dbTag)
virtual int sendSelf(int commitTag, Channel &theChannel)
virtual int recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker)

Documentation

The ConstraintHandler class is an abstract base class. Its purpose is to define the interface common among all subclasses. A constraint handler is responsible for:

  1. creating the FE_Element and DOF_Group objects and adding them to the AnalysisModel.
  2. setting the initial dof equation numbers to -1, -2 or -3. A -1 indicates to the DOF_Numberer object that no equation number is to be allocated for this dof, a -3 that this dof is to be among the last group of dof to be numbered.
  3. deleting the DOF_Group and FE_Element objects that it created.

}

ConstraintHandler(int classTag)

The integer classTag is passed to the MovableObject constructor

virtual ~ConstraintHandler()

Does nothing

void setLinks(Domain &theDomain, AnalysisModel &theModel, Integrator &theIntegrator)

AnalysisModel \&theModel,

virtual int handle(const ID *nodesNumberedLast =0)

Invoked to handle the constraints imposed on the domain by the SP_Constraints and MP_Constraints. The ConstraintHandler object does this by instantiating the appropriate FE_ELement and DOF_Group objects and adding them to the AnalysisModel. For all the dofs in each DOF_Group the ConstraintHandler sets initial equation numbers as either -1, -2 or -3: A -1 indicates to the DOF_Numberer object that no equation number is to be allocated for this dof, a -2 that an equation number is to be given for the dof, and a -3 that an equation number is to be allocated and that this dof is to be among the last group of dof to be numbered,i.e. all dof initially assigned a -3 are to be given a higher equation number than those given a -2. Those dof with a -3 should include all those dof associated with the nodes whose tags are in nodesToBeNumberedLast. Returns a positive number if successfully, a negative integer if not; the positive number is to be set at the number of dof assigned a value -3 (this will be the number of external dof for a subdomain), the negative value of which depends on the type of ConstraintHandler. For subdomains the constraint handler is responsible for setting the FE_Element by calling setFE_elementPtr.

virtual void clearAll(void)

Invoked to inform the ConstraintHandler object that the FE_Elements and DOF_Groups it constructed are no longer part of the AnalysisModel. The ConstraintHandler can delete these objects if necessary; or the ConstraintHandler can store them and use them in subsequent calls to handle().

Domain* getDomainPtr(void) const

A const member function to return the Domain object associated with the ConstraintHandler, theDomain

AnalysisModel* getAnalysisModelPtr(void) const

A const member function to return the AnalysisModel object associated with the ConstraintHandler, theModel

Integrator* getIntegratorPtr(void) const

A const member function to return the Integrator object associated with the ConstraintHandler, theIntegrator.


Direct child classes:
PlainHandler
PenaltyConstraintHandler
LagrangeConstraintHandler

alphabetic index Contents

this page has been generated automatically by a slightly modified version of doc++ for OpenSees

Copyright Contact Us