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_TET10EQUILIB_H 00023 #define MECHSYS_FEM_TET10EQUILIB_H 00024 00025 #ifdef HAVE_CONFIG_H 00026 #include "config.h" 00027 #else 00028 #ifndef REAL 00029 #define REAL double 00030 #endif 00031 #endif 00032 00033 #include "fem/ele/tet10.h" 00034 #include "fem/ele/equilibelem.h" 00035 00036 namespace FEM 00037 { 00038 00039 class Tet10Equilib : public Tet10, public EquilibElem 00040 { 00041 public: 00042 static String NAME; 00043 String Name() const { return NAME; }; 00044 private: 00045 }; // class Tet10Equilib 00046 00047 // Tet10Equilib constants 00048 String Tet10Equilib::NAME = "Tet10Equilib "; 00049 00051 00052 00053 // Allocate a new Tet10Equilib element 00054 Element * Tet10EquilibMaker() // {{{ 00055 { 00056 return new Tet10Equilib(); 00057 } // }}} 00058 00059 // Register a Tet10Equilib element into ElementFactory array map 00060 int Tet10EquilibRegister() // {{{ 00061 { 00062 ElementFactory[Tet10Equilib::NAME] = Tet10EquilibMaker; 00063 return 0; 00064 } // }}} 00065 00066 // Execute the autoregistration 00067 int __Tet10Equilib_dummy_int = Tet10EquilibRegister(); 00068 00069 }; // namespace FEM 00070 00071 #endif // MECHSYS_FEM_TET10EQUILIB_H 00072 00073 // vim:fdm=marker