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: PenalizedFictitousDomain.hpp,v 1.8 2007/08/18 15:57:41 delpinux Exp $ 00019 00020 00021 #ifndef PENALIZED_FICTITOUS_DOMAIN_HPP 00022 #define PENALIZED_FICTITOUS_DOMAIN_HPP 00023 00024 #include <FictitiousDomainMethod.hpp> 00025 00026 #include <PenalizedFictitousDomainOptions.hpp> 00027 #include <GetParameter.hpp> 00028 00038 class PenalizedFictitousDomain 00039 : public FictitiousDomainMethod 00040 { 00041 private: 00042 GetParameter<PenalizedFictitousDomainOptions> __options; 00044 real_t __epsilon; 00051 template <ScalarDiscretizationTypeBase::Type TypeOfDiscretization, 00052 typename MeshType> 00053 ReferenceCounting<BoundaryConditionDiscretization> __discretizeBoundaryConditionsOnMesh(); 00054 00060 template <ScalarDiscretizationTypeBase::Type TypeOfDiscretization> 00061 ReferenceCounting<BoundaryConditionDiscretization> __discretizeBoundaryConditions(); 00062 00068 ReferenceCounting<BoundaryConditionDiscretization> discretizeBoundaryConditions(); 00069 00070 public: 00080 PenalizedFictitousDomain(const DiscretizationType& discretizationType, 00081 ConstReferenceCounting<Mesh> mesh, 00082 const DegreeOfFreedomSet& dof) 00083 : FictitiousDomainMethod(discretizationType, mesh, dof) 00084 { 00085 __epsilon = __options.value().epsilon(); 00086 } 00087 00092 ~PenalizedFictitousDomain() 00093 { 00094 ; 00095 } 00096 }; 00097 00098 #endif // PENALIZED_FICTITOUS_DOMAIN_HPP 00099
1.5.6