00001 /* 00002 * Copyright (c) 2001 The AUTHORS 00003 * Romeu Andre' Pieritz, Ph.D. - romeu_pieritz@hotmail.com 00004 * Rafael Mendes, Eng. – mendes_rafael@yahoo.com 00005 * Rodrigo Ferraz de Andrade, Eng. – rferraz@iname.com 00006 * All rights reserved. 00007 * 00008 * Permission to use, copy and distribute this software and its 00009 * documentation for educational and personal use, without fee is hereby granted, 00010 * provided that the above copyright notice and the following 00011 * two paragraphs appear in all copies of this software. 00012 * 00013 * IN NO EVENT SHALL THE AUTHORS BE LIABLE TO ANY PARTY FOR 00014 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT 00015 * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE AUTHORS 00016 * HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00017 * 00018 * THE AUTHORS SPECIFICALLY DISCLAIMS ANY WARRANTIES, 00019 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 00020 * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HERE UNDER IS 00021 * ON AN "AS IS" BASIS, AND THE AUTHORS HAVE NO OBLIGATION TO 00022 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 00023 * 00024 * SINMEC Lab. - CFD Sinflow Project - http://www.sinmec.ufsc.br/cfd 00025 */ 00026 00027 00028 // File Define 00029 #ifndef __CSFL_GEOM_GRID_SPIRAL_H__ 00030 #define __CSFL_GEOM_GRID_SPIRAL_H__ 00031 00032 00033 // Include 00034 #include <csfl/geom/grid/grid.h> 00035 #include <csfl/geom/grid/nodedistribution.h> 00036 00037 00038 // Namespace 00039 namespace csfl { 00040 00041 //============================================================================== 00042 // Class IGridSpiral 00043 // Description: Spiral grid 00044 //============================================================================== 00045 00046 class IGridSpiral : public IGrid 00047 00051 00052 { 00053 00054 00055 public: 00056 00062 IGridSpiral( 00063 int _row = 10, int _col = 20, 00064 double _rib = 1.0, 00065 double _rie = 3.0, 00066 double _reb = 2.0, 00067 double _ree = 4.0, 00068 double _theta0 = 0.0, 00069 double _theta = 6.28 ); 00070 00076 IGridSpiral( 00077 const ISize &_size , 00078 double _rib = 1.0, 00079 double _rie = 3.0, 00080 double _reb = 2.0, 00081 double _ree = 4.0, 00082 double _theta0 = 0.0, 00083 double _theta = 6.28 ); 00091 IGridSpiral( 00092 int p_Ni, 00093 int p_Nj, 00094 double p_RiB, 00095 double p_RiE, 00096 double p_ReB, 00097 double p_ReE, 00098 double p_Theta0, 00099 double p_Thetaf, 00100 INodeDistribution * p_NiDirection, 00101 INodeDistribution * p_NjDirection ); 00102 00106 IGridSpiral( IGridSpiral *_g ); 00107 00108 ~IGridSpiral() {} 00109 00111 double Ribegin() { return rib; } 00112 00114 double Rebegin() { return reb; } 00115 00117 double Riend() { return rie; } 00118 00120 double Reend() { return ree; } 00121 00123 double Theta0() { return theta0; } 00124 00126 double Thetaf() { return theta; } 00127 00129 double Dri() { return dri; } 00130 00132 double Dre() { return dre; } 00133 00135 double DTheta() { return dtheta; } 00136 00137 protected: 00138 double reb, rib, ree, rie, dri, dre, theta, theta0, dtheta; 00139 00140 }; 00141 00142 //============================================================================== 00143 } // csfl namespace 00144 00145 #endif// __CSFL_GEOM_GRID_POLAR_H__
CFD Project
|
Documents |
Downloads |
Contact us |
Use Terms |
|
|||
© SINMEC/EMC/UFSC,
2001. |
All rights
reserved. |
Last Update: Jan. 18, 2002 |
|