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: Neumann.hpp,v 1.4 2006/07/20 19:08:54 delpinux Exp $ 00019 00020 // this class allows to define Neumann Boundary Conditions 00021 00022 #ifndef NEUMANN_HPP 00023 #define NEUMANN_HPP 00024 00025 #include <TinyVector.hpp> 00026 #include <TinyMatrix.hpp> 00027 00028 #include <PDECondition.hpp> 00029 #include <ScalarFunctionBase.hpp> 00030 00045 class Neumann 00046 : public PDECondition 00047 { 00048 private: 00050 ConstReferenceCounting<ScalarFunctionBase> 00051 __g; 00053 public: 00059 ConstReferenceCounting<ScalarFunctionBase> 00060 g() const 00061 { 00062 return __g; 00063 } 00064 00070 std::string typeName() const 00071 { 00072 return "Neumann"; 00073 } 00074 00081 Neumann(ConstReferenceCounting<ScalarFunctionBase> g, 00082 const size_t unknownNumber) 00083 : PDECondition(PDECondition::neumann, unknownNumber), 00084 __g(g) 00085 { 00086 ; 00087 } 00088 00094 Neumann(const Neumann& N) 00095 : PDECondition(N), 00096 __g(N.__g) 00097 { 00098 ; 00099 } 00100 00105 ~Neumann() 00106 { 00107 ; 00108 } 00109 }; 00110 00111 #endif // NEUMANN_HPP
1.5.6