Changeset 1347 for trunk/source/processes/hadronic/models/abrasion
- Timestamp:
- Dec 22, 2010, 3:52:27 PM (15 years ago)
- Location:
- trunk/source/processes/hadronic/models/abrasion
- Files:
-
- 3 edited
-
History (modified) (1 diff)
-
src/G4NuclearAbrasionGeometry.cc (modified) (3 diffs)
-
src/G4WilsonAbrasionModel.cc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/abrasion/History
r1340 r1347 14 14 --------------------------------------------------------------- 15 15 16 12-Nov-2010, Dennis Wright (had-abrasion-V09-03-01) 17 -------------------------------------------------------------------- 18 - G4WilsonAbrasionModel.cc : initialize r0sq in ctor (CoVerity) 19 - G4NuclearAbrasionGeometry::GetExcitationEnergyOfTarget : 20 fix memory leak by deleting revAbrasionGeometry (CoVerity) 21 16 22 08-Sep-2010, Gunter Folger (had-abrasion-V09-03-00) 23 -------------------------------------------------------------------- 17 24 - G4WilsonAbrasionModel.cc: remove several unused #includes 18 25 -
trunk/source/processes/hadronic/models/abrasion/src/G4NuclearAbrasionGeometry.cc
r819 r1347 194 194 return Es; 195 195 } 196 ////////////////////////////////////////////////////////////////////////////////////// 197 // 196 197 198 198 G4double G4NuclearAbrasionGeometry::GetExcitationEnergyOfTarget () 199 199 { 200 // 201 // 202 // This member function declares a new G4NuclearAbrasionGeometry object but with the 203 // projectile and target exchanged to determine the values for F and P. Determination 204 // of the excess surface area and excitation energy is as above. 205 // 206 G4NuclearAbrasionGeometry *revAbrasionGeometry = 200 // This member function declares a new G4NuclearAbrasionGeometry object 201 // but with the projectile and target exchanged to determine the values 202 // for F and P. Determination of the excess surface area and excitation 203 // energy is as above. 204 205 G4NuclearAbrasionGeometry* revAbrasionGeometry = 207 206 new G4NuclearAbrasionGeometry(AT, AP, r); 208 207 G4double F1 = revAbrasionGeometry->F(); … … 212 211 Es = 0.95 * MeV * 4.0 * pi * rT*rT/fermi/fermi * 213 212 (1.0+P1-std::pow(1.0-F1,2.0/3.0)); 213 214 214 // if (rP < rT && r < rT-rP) 215 if ((r-rT)/rP < rth) 216 { 215 if ((r-rT)/rP < rth) { 217 216 G4double omega = 0.0; 218 217 if (AT < 12.0) omega = 1500.0; … … 225 224 else if (Es > B * AT) 226 225 Es = B * AT; 226 227 delete revAbrasionGeometry; 228 227 229 return Es; 228 230 } 229 ////////////////////////////////////////////////////////////////////////////////230 // -
trunk/source/processes/hadronic/models/abrasion/src/G4WilsonAbrasionModel.cc
r1340 r1347 34 34 // ******************************************************************** 35 35 // 36 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %36 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 37 37 // 38 38 // MODULE: G4WilsonAbrasionModel.cc … … 45 45 // Contract: 17191/03/NL/LvH 46 46 // 47 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %47 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 48 48 // 49 49 // CHANGE HISTORY … … 72 72 // Additional clauses have been included in 73 73 // G4WilsonAbrasionModel::GetNucleonInducedExcitation 74 // Previously it was possible to get sqrt of negative number as Wilson algorithm75 // not properly defined if either:74 // Previously it was possible to get sqrt of negative number as Wilson 75 // algorithm not properly defined if either: 76 76 // rT > rP && rsq < rTsq - rPsq) or (rP > rT && rsq < rPsq - rTsq) 77 77 // 78 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %79 /////////////////////////////////////////////////////////////////////////////// /80 // 78 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 79 /////////////////////////////////////////////////////////////////////////////// 80 81 81 #include "G4WilsonAbrasionModel.hh" 82 82 #include "G4WilsonRadius.hh" … … 99 99 #include "G4IonTable.hh" 100 100 #include "globals.hh" 101 //////////////////////////////////////////////////////////////////////////////// 102 // 101 102 103 103 G4WilsonAbrasionModel::G4WilsonAbrasionModel (G4bool useAblation1) 104 104 :G4HadronicInteraction("G4WilsonAbrasion") 105 105 { 106 // 107 // 108 // Send message to stdout to advise that the G4Abrasion model is being used. 109 // 106 // Send message to stdout to advise that the G4Abrasion model is being used. 110 107 PrintWelcomeMessage(); 111 // 112 // 113 // Set the default verbose level to 0 - no output. 114 // 108 109 // Set the default verbose level to 0 - no output. 115 110 verboseLevel = 0; 116 111 useAblation = useAblation1; 117 // 118 // 119 // No de-excitation handler has been supplied - define the default handler. 120 // 112 113 // No de-excitation handler has been supplied - define the default handler. 114 121 115 theExcitationHandler = new G4ExcitationHandler; 122 116 theExcitationHandlerx = new G4ExcitationHandler; … … 146 140 theExcitationHandlerx->SetMaxAandZForFermiBreakUp(12, 6); 147 141 } 148 // 149 // 150 // Set the minimum and maximum range for the model (despite nomanclature, this 151 // is in energy per nucleon number). 152 // 142 143 // Set the minimum and maximum range for the model (despite nomanclature, 144 // this is in energy per nucleon number). 145 153 146 SetMinEnergy(70.0*MeV); 154 147 SetMaxEnergy(10.1*GeV); 155 148 isBlocked = false; 156 // 157 // 158 // npK, when mutiplied by the nuclear Fermi momentum, determines the range of 159 // momentum over which the secondary nucleon momentum is sampled. 160 // 161 npK = 5.0;162 B = 10.0 * MeV;163 third = 1.0 / 3.0;164 fradius = 0.99;165 conserveEnergy = false;149 150 // npK, when mutiplied by the nuclear Fermi momentum, determines the range of 151 // momentum over which the secondary nucleon momentum is sampled. 152 153 r0sq = 0.0; 154 npK = 5.0; 155 B = 10.0 * MeV; 156 third = 1.0 / 3.0; 157 fradius = 0.99; 158 conserveEnergy = false; 166 159 conserveMomentum = true; 167 160 } 168 //////////////////////////////////////////////////////////////////////////////// 169 // 161 162 170 163 G4WilsonAbrasionModel::G4WilsonAbrasionModel (G4ExcitationHandler *aExcitationHandler) 171 164 {
Note:
See TracChangeset
for help on using the changeset viewer.
