00001 // This file is part of ff3d - http://www.freefem.org/ff3d 00002 // Copyright (C) 2001, 2002, 2003 Stéphane Del Pino 00003 00004 // This program is free software; you can redistribute it and/or modify 00005 // it under the terms of the GNU General Public License as published by 00006 // the Free Software Foundation; either version 2, or (at your option) 00007 // any later version. 00008 00009 // This program is distributed in the hope that it will be useful, 00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 // GNU General Public License for more details. 00013 00014 // You should have received a copy of the GNU General Public License 00015 // along with this program; if not, write to the Free Software Foundation, 00016 // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 00018 // $Id: Fourrier.hpp,v 1.3 2006/07/20 19:08:54 delpinux Exp $ 00019 00020 // this class allows to define Fourrier Boundary Conditions 00021 00022 #ifndef FOURRIER_HPP 00023 #define FOURRIER_HPP 00024 00025 #include <TinyVector.hpp> 00026 #include <TinyMatrix.hpp> 00027 00028 #include <PDECondition.hpp> 00029 00043 class Fourrier 00044 : public PDECondition 00045 { 00046 private: 00047 ConstReferenceCounting<ScalarFunctionBase> 00048 __Alpha; 00050 ConstReferenceCounting<ScalarFunctionBase> 00051 __g; 00054 public: 00060 ConstReferenceCounting<ScalarFunctionBase> 00061 alpha() const 00062 { 00063 return __Alpha; 00064 } 00065 00072 ConstReferenceCounting<ScalarFunctionBase> 00073 g() const 00074 { 00075 return __g; 00076 } 00077 00083 std::string typeName() const 00084 { 00085 return "Fourrier"; 00086 } 00087 00095 Fourrier(ConstReferenceCounting<ScalarFunctionBase> ualpha, 00096 ConstReferenceCounting<ScalarFunctionBase> ug, 00097 const size_t& unknownNumber) 00098 : PDECondition(PDECondition::fourrier, 00099 unknownNumber), 00100 __Alpha(ualpha), 00101 __g(ug) 00102 { 00103 ; 00104 } 00105 00111 Fourrier(const Fourrier& F) 00112 : PDECondition(F), 00113 __Alpha(F.__Alpha), 00114 __g(F.__g) 00115 { 00116 ; 00117 } 00118 00123 ~Fourrier() 00124 { 00125 ; 00126 } 00127 }; 00128 00129 #endif // FOURRIER_HPP
1.5.6