00001 /*************************************************************************** 00002 radpotfunction.h - description 00003 ------------------- 00004 begin : Tue Apr 25 2000 00005 copyright : (C) 2000 by Michael Peeters 00006 email : Michael.Peeters@vub.ac.be 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef RADPOTFUNCTION_H 00019 #define RADPOTFUNCTION_H 00020 00021 #include "vectorfunction.h" 00022 00023 namespace MODEL { 00024 00025 00031 class RadPotFunction : public VectorFunction<3> { 00032 public: 00033 typedef VectorFunction<3> base; 00034 00035 RadPotFunction() {} 00036 virtual ~RadPotFunction() {} 00037 00038 RadPotFunction(const RadPotFunction& crvf) : base(crvf) {} 00039 const RadPotFunction& operator=(const RadPotFunction& arvf) 00040 {if(this!=&arvf){ 00041 base::operator=(arvf);} return *this;} 00042 00044 virtual RadPotFunction* clone () const {return new RadPotFunction(*this);} 00045 00047 virtual const vect& function( vect& fu, const vect& u) 00048 { numT r2=u[0]*u[0]+u[1]*u[1]+u[2]*u[2]; 00049 fu=u; fu*=r2; return fu;} 00050 }; 00051 00052 } // end namespace MODEL 00053 #endif 00054 00055 /********************************************************************* 00056 $Id: radpotfunction.h,v 1.1 2001/05/22 10:54:55 mpeeters Exp $ 00057 ********************************************************************** 00058 00059 $Log: radpotfunction.h,v $ 00060 Revision 1.1 2001/05/22 10:54:55 mpeeters 00061 Moved sources and headers for libModel to model/ subdirectory, in an attempt to rationalize the source tree. This should make things "netter". 00062 00063 Revision 1.2 2000/09/15 10:26:31 mpeeters 00064 Cleaned out header and added CVS tails to files, removed superfuous 00065 @author comments, inserted dates 00066 00067 *********************************************************************/
More Info? Michael Peeters. Also, check our research website: www.alna.vub.ac.be
Last update: June 2002.