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