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 FEM_HEX20COUPLED_H 00023 #define FEM_HEX20COUPLED_H 00024 00025 #include "fem/ele/hex20.h" 00026 #include "fem/ele/coupled.h" 00027 00028 namespace FEM 00029 { 00030 00031 class Hex20Coupled : public Hex20, public Coupled 00032 { 00033 public: 00034 static String NAME; 00035 String Name() const { return NAME; }; 00036 private: 00037 }; // class Hex20Coupled 00038 00039 // Hex20Coupled constants 00040 String Hex20Coupled::NAME = "Hex20Coupled"; 00041 00042 00044 00045 00046 // Allocate a new Hex20Coupled element 00047 Element * Hex20CoupledMaker() 00048 { 00049 return new Hex20Coupled(); 00050 } 00051 00052 // Register a Hex20Coupled element into ElementFactory array map 00053 int Hex20CoupledRegister() 00054 { 00055 ElementFactory[Hex20Coupled::NAME] = Hex20CoupledMaker; 00056 return 0; 00057 } 00058 00059 // Execute the autoregistration 00060 int __Hex20Coupled_dummy_int = Hex20CoupledRegister(); 00061 00062 // }}} 00063 00064 }; // namespace FEM 00065 00066 #endif // FEM_HEX20COUPLED_H 00067 00068 // vim:fdm=marker