Biomechanical Joint Model
 Author: Anderson Maciel

comemoleculelink.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2002 by Anderson Maciel                                 *
00003  *   andi.maciel@gmail.com                                                 *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  **************************************************************************/
00020 
00031 
00032 #ifndef __COME_MOLECULELINK_H   
00033 #define __COME_MOLECULELINK_H   
00034 
00035 #include <general/come.h>
00036 #include <algebra/cometetra.h>
00037 
00038 //#ifndef __COME_MOLECULE_H
00039 class COME_Molecule;
00040 //#endif
00041 
00045 
00046 class COME_MoleculeLink : public COME{
00047 
00048 protected:
00049         double  dampingConst;
00050         double  hookeConst;
00051         double  nominalDist;
00052         double  viscousFraction;
00053         double  frictionConst;
00054         COME_Molecule *element1;
00055         COME_Molecule *element2;
00056         double  flowVolume1;
00057         double  flowVolume2;
00058 
00059 public:
00060         COME_MoleculeLink();
00061         COME_MoleculeLink( COME_Molecule *e1, COME_Molecule *e2 );
00062         ~COME_MoleculeLink();
00063 
00064         void    setDampingConst( double dampingConstN );
00065         void    setHookeConst( double hookeConstN );
00066         void    setNominalDist( double nominalDistN );
00067         void    setViscousFraction( double viscousFractionN );
00068         void    setFrictionConst( double frictionConstN );
00069         void    setElement( int index, COME_Molecule* elementN );
00070         void    setFlowVolume( COME_Molecule* element, double volumeNew );
00071 
00072         double                          getDampingConst() const;
00073         double                          getHookeConst() const;
00074         double                          getNominalDist() const;
00075         double                          getViscousFraction() const;
00076         double                          getFractureDist() const;
00077         double                          getFrictionConst() const;
00078         double                          getLength() const;
00079         vector<COME_Tetra>      getNeighbouringTetra() const;
00080         COME_Molecule*          getElement( int index );
00081         COME_Molecule*          getOtherElement( COME_Molecule* thisElement );
00082         void                            recalculateSpring( int mode, double avgConnect );
00083         double                          getFlowVolume( COME_Molecule* element ) const;
00084 
00085 };
00086 
00087 #endif // __COME_MOLECULELINK_H 

Generated on Thu Dec 1 10:13:34 2005 for COME - Biomechanical Joint Model by  doxygen 1.4.5