MeshKit
1.0
|
00001 /********************************************* 00002 Reactor Geometry Generator 00003 Argonne National Laboratory 00004 00005 CPincell class definition. 00006 *********************************************/ 00007 #include "meshkit/pincell.hpp" 00008 00009 CPincell::CPincell () 00010 // --------------------------------------------------------------------------- 00011 // Function: default constructor 00012 // Input: none 00013 // Output: none 00014 // --------------------------------------------------------------------------- 00015 { 00016 } 00017 00018 CPincell::CPincell (const CPincell& NO) 00019 // --------------------------------------------------------------------------- 00020 // Function: copy constructor 00021 // Input: none 00022 // Output: none 00023 // --------------------------------------------------------------------------- 00024 { 00025 m_nIFlag = 0; 00026 // TBC 00027 } 00028 00029 CPincell::~CPincell () 00030 // --------------------------------------------------------------------------- 00031 // Function: destructor 00032 // Input: none 00033 // Output: none 00034 // --------------------------------------------------------------------------- 00035 { 00036 } 00037 00038 00039 void CPincell::SetLineOne (std::string szVolId, std::string szVolAlias, int nInputLines) 00040 // --------------------------------------------------------------------------- 00041 // Function: sets the first line of pin input// Input: volume id of the pin, alias and total no. of lines in the pin input 00042 // Output: none 00043 // --------------------------------------------------------------------------- 00044 { 00045 m_szVolId = szVolId; 00046 m_szVolAlias = szVolAlias; 00047 m_nInputLines = nInputLines; 00048 } 00049 00050 00051 void CPincell::SetIntersectFlag (int nIFlag) 00052 // --------------------------------------------------------------------------- 00053 // Function: sets the first line of pin input 00054 // Input: volume id of the pin, alias and total no. of lines in the pin input 00055 // Output: none 00056 // --------------------------------------------------------------------------- 00057 { 00058 m_nIFlag = nIFlag; 00059 } 00060 00061 00062 00063 void CPincell::SetPitch (double dFlatF, double dZL) 00064 // --------------------------------------------------------------------------- 00065 // Function: sets the first line of pin input 00066 // Input: volume id of the pin, alias and total no. of lines in the pin input 00067 // Output: none 00068 // --------------------------------------------------------------------------- 00069 { 00070 m_dFlatF = dFlatF; 00071 m_dZL = dZL; 00072 } 00073 00074 void CPincell::SetPitch (double dPX, double dPY, double dPZ) 00075 // --------------------------------------------------------------------------- 00076 // Function: sets the first line of pin input 00077 // Input: volume id of the pin, alias and total no. of lines in the pin input 00078 // Output: none 00079 // --------------------------------------------------------------------------- 00080 { 00081 m_dPX = dPX; 00082 m_dPY = dPY; 00083 m_dPZ = dPZ; 00084 } 00085 00086 void CPincell::SetMatArray (int nMaterials) 00087 // --------------------------------------------------------------------------- 00088 // Function: sets the first line of pin input 00089 // Input: volume id of the pin, alias and total no. of lines in the pin input 00090 // Output: none 00091 // --------------------------------------------------------------------------- 00092 { 00093 m_nMaterials = nMaterials; 00094 m_szVMatName.SetSize(nMaterials); 00095 m_szVMatAlias.SetSize(nMaterials); 00096 } 00097 00098 void CPincell::SetMat(CVector<std::string> szVMatName, CVector<std::string> szVMatAlias) 00099 // --------------------------------------------------------------------------- 00100 // Function: sets the first line of pin input 00101 // Input: volume id of the pin, alias and total no. of lines in the pin input 00102 // Output: none 00103 // --------------------------------------------------------------------------- 00104 { 00105 m_szVMatName = szVMatName; 00106 m_szVMatAlias = szVMatAlias; 00107 } 00108 00109 void CPincell::SetNumCyl(const int nCyl) 00110 // --------------------------------------------------------------------------- 00111 // Function: sets the first line of pin input 00112 // Input: volume id of the pin, alias and total no. of lines in the pin input 00113 // Output: none 00114 // --------------------------------------------------------------------------- 00115 { 00116 m_nNumCyl = nCyl; 00117 m_VCyl.SetSize(nCyl); 00118 } 00119 00120 void CPincell::GetNumCyl(int &nCyl) 00121 // --------------------------------------------------------------------------- 00122 // Function: sets the first line of pin input 00123 // Input: volume id of the pin, alias and total no. of lines in the pin input 00124 // Output: none 00125 // --------------------------------------------------------------------------- 00126 { 00127 nCyl = m_VCyl.GetSize(); 00128 } 00129 00130 void CPincell::SetCylSizes(int nCyl,int nRadii) 00131 // --------------------------------------------------------------------------- 00132 // Function: sets the first line of pin input 00133 // Input: volume id of the pin, alias and total no. of lines in the pin input 00134 // Output: none 00135 // --------------------------------------------------------------------------- 00136 { 00137 m_VCyl(nCyl).SetSizes(nRadii); 00138 } 00139 00140 void CPincell::SetCylPos(int nCyl, CVector<double> dVCoor) 00141 // --------------------------------------------------------------------------- 00142 // Function: sets the first line of pin input 00143 // Input: volume id of the pin, alias and total no. of lines in the pin input 00144 // Output: none 00145 // --------------------------------------------------------------------------- 00146 { 00147 m_VCyl(nCyl).SetPos(dVCoor); 00148 } 00149 00150 00151 void CPincell::SetCylRadii(int nCyl, CVector<double> dVRadii) 00152 // --------------------------------------------------------------------------- 00153 // Function: sets the first line of pin input 00154 // Input: volume id of the pin, alias and total no. of lines in the pin input 00155 // Output: none 00156 // --------------------------------------------------------------------------- 00157 { 00158 m_VCyl(nCyl).SetRadii(dVRadii); 00159 } 00160 00161 void CPincell::SetCellType(int nCyl, int nType) 00162 // --------------------------------------------------------------------------- 00163 // Function: sets the first line of pin input 00164 // Input: volume id of the pin, alias and total no. of lines in the pin input 00165 // Output: none 00166 // --------------------------------------------------------------------------- 00167 { 00168 m_VCyl(nCyl).SetType(nType); 00169 } 00170 00171 00172 00173 void CPincell::SetCylZPos(int nCyl, CVector<double> dVZCoor) 00174 // --------------------------------------------------------------------------- 00175 // Function: sets the first line of pin input 00176 // Input: volume id of the pin, alias and total no. of lines in the pin input 00177 // Output: none 00178 // --------------------------------------------------------------------------- 00179 { 00180 m_VCyl(nCyl).SetZPos(dVZCoor); 00181 } 00182 00183 void CPincell::SetCylMat(int nCyl, CVector<std::string> szVMat) 00184 // --------------------------------------------------------------------------- 00185 // Function: sets the first line of pin input 00186 // Input: volume id of the pin, alias and total no. of lines in the pin input 00187 // Output: none 00188 // --------------------------------------------------------------------------- 00189 { 00190 m_VCyl(nCyl).SetMat(szVMat); 00191 } 00192 00193 void CPincell::SetCellMatSize(int nSize) 00194 // --------------------------------------------------------------------------- 00195 // Function: sets the first line of pin input 00196 // Input: volume id of the pin, alias and total no. of lines in the pin input 00197 // Output: none 00198 // --------------------------------------------------------------------------- 00199 { 00200 m_dVZStart.SetSize(nSize); 00201 m_dVZEnd.SetSize(nSize); 00202 m_szVCellMat.SetSize(nSize); 00203 } 00204 00205 void CPincell::SetCellMat(CVector<double> dZVStart, CVector<double> dVZEnd, CVector<std::string> szVCellMat) 00206 // --------------------------------------------------------------------------- 00207 // Function: sets the first line of pin input 00208 // Input: volume id of the pin, alias and total no. of lines in the pin input 00209 // Output: none 00210 // --------------------------------------------------------------------------- 00211 { 00212 m_dVZStart = dZVStart; 00213 m_dVZEnd = dVZEnd; 00214 m_szVCellMat = szVCellMat; 00215 } 00216 00218 00219 00220 void CPincell::GetLineOne (std::string &szVolId, std::string &szVolAlias, int &nInputLines) 00221 // --------------------------------------------------------------------------- 00222 // Function: sets the first line of pin input 00223 // Input: volume id of the pin, alias and total no. of lines in the pin input 00224 // Output: none 00225 // --------------------------------------------------------------------------- 00226 { 00227 szVolId = m_szVolId; 00228 szVolAlias = m_szVolAlias; 00229 nInputLines = m_nInputLines; 00230 } 00231 00232 00233 void CPincell::GetIntersectFlag (int &nIFlag) 00234 // --------------------------------------------------------------------------- 00235 // Function: sets the first line of pin input 00236 // Input: volume id of the pin, alias and total no. of lines in the pin input 00237 // Output: none 00238 // --------------------------------------------------------------------------- 00239 { 00240 nIFlag = m_nIFlag; 00241 } 00242 00243 00244 00245 void CPincell::GetPitch (double &dFlatF, double &dZL) 00246 // --------------------------------------------------------------------------- 00247 // Function: sets the first line of pin input 00248 // Input: volume id of the pin, alias and total no. of lines in the pin input 00249 // Output: none 00250 // --------------------------------------------------------------------------- 00251 { 00252 dFlatF = m_dFlatF; 00253 dZL = m_dZL; 00254 } 00255 00256 void CPincell::GetPitch (double &dPX, double &dPY, double &dPZ) 00257 // --------------------------------------------------------------------------- 00258 // Function: sets the first line of pin input 00259 // Input: volume id of the pin, alias and total no. of lines in the pin input 00260 // Output: none 00261 // --------------------------------------------------------------------------- 00262 { 00263 dPX = m_dPX; 00264 dPY = m_dPY; 00265 dPZ = m_dPZ; 00266 } 00267 00268 void CPincell::GetCylSizes(int nCyl,int &nRadii) 00269 // --------------------------------------------------------------------------- 00270 // Function: sets the first line of pin input 00271 // Input: volume id of the pin, alias and total no. of lines in the pin input 00272 // Output: none 00273 // --------------------------------------------------------------------------- 00274 { 00275 m_VCyl(nCyl).GetSizes(nRadii); 00276 } 00277 00278 void CPincell::GetMat(CVector<std::string> &szVMatName, CVector<std::string> &szVMatAlias) 00279 // --------------------------------------------------------------------------- 00280 // Function: sets the first line of pin input 00281 // Input: volume id of the pin, alias and total no. of lines in the pin input 00282 // Output: none 00283 // --------------------------------------------------------------------------- 00284 { 00285 szVMatName = m_szVMatName; 00286 szVMatAlias = m_szVMatAlias; 00287 } 00288 00289 void CPincell::GetCylPos(int nCyl, CVector<double> &dVCoor) 00290 // --------------------------------------------------------------------------- 00291 // Function: sets the first line of pin input 00292 // Input: volume id of the pin, alias and total no. of lines in the pin input 00293 // Output: none 00294 // --------------------------------------------------------------------------- 00295 { 00296 m_VCyl(nCyl).GetPos(dVCoor); 00297 } 00298 00299 void CPincell::GetCylZPos(int nCyl, CVector<double> &dVCoor) 00300 // --------------------------------------------------------------------------- 00301 // Function: sets the first line of pin input 00302 // Input: volume id of the pin, alias and total no. of lines in the pin input 00303 // Output: none 00304 // --------------------------------------------------------------------------- 00305 { 00306 m_VCyl(nCyl).GetZPos(dVCoor); 00307 } 00308 00309 00310 void CPincell::GetCylRadii(int nCyl, CVector<double> &dVRadii) 00311 // --------------------------------------------------------------------------- 00312 // Function: sets the first line of pin input 00313 // Input: volume id of the pin, alias and total no. of lines in the pin input 00314 // Output: none 00315 // --------------------------------------------------------------------------- 00316 { 00317 m_VCyl(nCyl).GetRadii(dVRadii); 00318 } 00319 00320 00321 void CPincell::GetCellType(int nCyl, int &nType) 00322 // --------------------------------------------------------------------------- 00323 // Function: sets the first line of pin input 00324 // Input: volume id of the pin, alias and total no. of lines in the pin input 00325 // Output: none 00326 // --------------------------------------------------------------------------- 00327 { 00328 m_VCyl(nCyl).GetType(nType); 00329 } 00330 00331 void CPincell::GetCylMat(int nCyl, CVector<std::string> &szVMat) 00332 // --------------------------------------------------------------------------- 00333 // Function: sets the first line of pin input 00334 // Input: volume id of the pin, alias and total no. of lines in the pin input 00335 // Output: none 00336 // --------------------------------------------------------------------------- 00337 { 00338 m_VCyl(nCyl).GetMat(szVMat); 00339 } 00340 00341 00342 00343 void CPincell::GetCellMat(CVector<double> &dVZStart, CVector<double> &dVZEnd, CVector<std::string> &szVCellMat) 00344 // --------------------------------------------------------------------------- 00345 // Function: sets the first line of pin input 00346 // Input: volume id of the pin, alias and total no. of lines in the pin input 00347 // Output: none 00348 // --------------------------------------------------------------------------- 00349 { 00350 dVZStart = m_dVZStart; 00351 dVZEnd = m_dVZEnd; 00352 szVCellMat = m_szVCellMat; 00353 } 00354 00355 void CPincell::GetCellMatSize(int &nSize) 00356 // --------------------------------------------------------------------------- 00357 // Function: sets the first line of pin input 00358 // Input: volume id of the pin, alias and total no. of lines in the pin input 00359 // Output: none 00360 // --------------------------------------------------------------------------- 00361 { 00362 nSize = m_szVCellMat.GetSize(); 00363 } 00364 00365 void CPincell::GetMatArray (int &nMaterials) 00366 // --------------------------------------------------------------------------- 00367 // Function: sets the first line of pin input 00368 // Input: volume id of the pin, alias and total no. of lines in the pin input 00369 // Output: none 00370 // --------------------------------------------------------------------------- 00371 { 00372 nMaterials = m_nMaterials; 00373 00374 }