SP_Constraint.h

Go to the documentation of this file.
00001 /* ****************************************************************** **
00002 **    OpenSees - Open System for Earthquake Engineering Simulation    **
00003 **          Pacific Earthquake Engineering Research Center            **
00004 **                                                                    **
00005 **                                                                    **
00006 ** (C) Copyright 1999, The Regents of the University of California    **
00007 ** All Rights Reserved.                                               **
00008 **                                                                    **
00009 ** Commercial use of this program without express permission of the   **
00010 ** University of California, Berkeley, is strictly prohibited.  See   **
00011 ** file 'COPYRIGHT'  in main directory for information on usage and   **
00012 ** redistribution,  and for a DISCLAIMER OF ALL WARRANTIES.           **
00013 **                                                                    **
00014 ** Developed by:                                                      **
00015 **   Frank McKenna (fmckenna@ce.berkeley.edu)                         **
00016 **   Gregory L. Fenves (fenves@ce.berkeley.edu)                       **
00017 **   Filip C. Filippou (filippou@ce.berkeley.edu)                     **
00018 **                                                                    **
00019 ** ****************************************************************** */
00020                                                                         
00021 // $Revision: 1.3 $
00022 // $Date: 2005/11/22 19:41:17 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/domain/constraints/SP_Constraint.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef SP_Constraint_h
00027 #define SP_Constraint_h
00028 
00029 // Written: fmk 
00030 // Created: 11/96
00031 // Revision: A
00032 //
00033 // Purpose: This file contains the class definition for SP_Constraint.
00034 // SP_Constraint is a class which stores the information for a single
00035 // point constraint. Each single point constraint specifies a particular
00036 // degree-of-freedom response (displacement, rotation) at a node.
00037 // The constraint may be time-varying .. time varying constarints however 
00038 // must be implemented using subclasses.
00039 //
00040 // What: "@(#) SP_Constraint, revA"
00041 
00042 #include <DomainComponent.h>
00043 #include <bool.h>
00044 
00045 class SP_Constraint : public DomainComponent
00046 {
00047   public:
00048     // constructors    
00049     SP_Constraint(int classTag);        
00050     SP_Constraint(int spTag, int nodeTag, int ndof, int classTag);    
00051     SP_Constraint(int spTag, int nodeTag, int ndof, double value, bool isConstant = true);
00052 
00053     // destructor
00054     virtual ~SP_Constraint();
00055 
00056     virtual int getNodeTag(void) const;
00057     virtual int getDOF_Number(void) const;
00058     virtual int applyConstraint(double loadFactor);    
00059     virtual double getValue(void);
00060     virtual bool isHomogeneous(void) const;
00061     virtual void setLoadPatternTag(int loadPaternTag);
00062     virtual int  getLoadPatternTag(void) const;
00063     
00064     virtual int sendSelf(int commitTag, Channel &theChannel);
00065     virtual int recvSelf(int commitTag, Channel &theChannel, 
00066                          FEM_ObjectBroker &theBroker);
00067 
00068     virtual void Print(OPS_Stream &s, int flag =0);
00069 
00070   protected:
00071     int nodeTag;     // to identify the node in the model
00072     int dofNumber;   // identifies which of the nodes dof is constrrained 
00073     double valueR;   // the reference value
00074     double valueC;   // if constant = the reference value, if not contant =
00075                      // the reference value * load factor
00076     bool isConstant; // flag indicating if constant
00077     int  loadPatternTag;    
00078 };
00079 
00080 #endif
00081 
00082 

Generated on Mon Oct 23 15:05:00 2006 for OpenSees by doxygen 1.5.0