hex20equilib.h

00001 /*************************************************************************************
00002  * MechSys - A C++ library to simulate (Continuum) Mechanical Systems                *
00003  * Copyright (C) 2005 Dorival de Moraes Pedroso <dorival.pedroso at gmail.com>       *
00004  * Copyright (C) 2005 Raul Dario Durand Farfan  <raul.durand at gmail.com>           *
00005  *                                                                                   *
00006  * This file is part of MechSys.                                                     *
00007  *                                                                                   *
00008  * MechSys is free software; you can redistribute it and/or modify it under the      *
00009  * terms of the GNU General Public License as published by the Free Software         *
00010  * Foundation; either version 2 of the License, or (at your option) any later        *
00011  * version.                                                                          *
00012  *                                                                                   *
00013  * MechSys is distributed in the hope that it will be useful, but WITHOUT ANY        *
00014  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A   *
00015  * PARTICULAR PURPOSE. See the GNU General Public License for more details.          *
00016  *                                                                                   *
00017  * You should have received a copy of the GNU General Public License along with      *
00018  * MechSys; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, *
00019  * Fifth Floor, Boston, MA 02110-1301, USA                                           *
00020  *************************************************************************************/
00021 
00022 #ifndef MECHSYS_FEM_HEX20EQUILIB_H
00023 #define MECHSYS_FEM_HEX20EQUILIB_H
00024 
00025 #ifndef REAL
00026    #define REAL double
00027 #endif
00028 
00029 #include "fem/ele/hex20.h"
00030 #include "fem/ele/equilibelem.h"
00031 
00032 namespace FEM
00033 {
00034 
00035 class Hex20Equilib : public Hex20, public EquilibElem
00036 {
00037 public:
00038     static String NAME;
00039     String Name() const { return NAME; };
00040 private:
00041 }; // class Hex20Equilib
00042 
00043 // Hex20Equilib constants
00044 String Hex20Equilib::NAME = "Hex20Equilib";
00045 
00047 
00048 
00049 // Allocate a new Hex20Equilib element
00050 Element * Hex20EquilibMaker() // {{{
00051 {
00052     return new Hex20Equilib();
00053 } // }}}
00054 
00055 // Register a Hex20Equilib element into ElementFactory array map
00056 int Hex20EquilibRegister() // {{{
00057 {
00058     ElementFactory[Hex20Equilib::NAME] = Hex20EquilibMaker;
00059     return 0;
00060 } // }}}
00061 
00062 // Execute the autoregistration
00063 int __Hex20Equilib_dummy_int  = Hex20EquilibRegister();
00064 
00065 }; // namespace FEM
00066 
00067 #endif // MECHSYS_FEM_HEX20EQUILIB_H
00068 
00069 // vim:fdm=marker

Generated on Wed Jan 24 15:56:25 2007 for MechSys by  doxygen 1.4.7