Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:58:37

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 // -------------------------------------------------------------------
0027 //      GEANT4 Class file
0028 //
0029 //
0030 //      File name:    G4LightIonQMDMeanField.hh 
0031 //
0032 //      Author: Koi, Tatsumi (tkoi@slac.stanford.edu)       
0033 // 
0034 //      Creation date: 29 March 2007
0035 // -----------------------------------------------------------------------------
0036 // 081120 Add Update
0037 //
0038 // 230307 Skyrme-QMD parameters added by Y-H. Sato and A. Haga
0039 // 230307 "CalDensityProfile" and "CalChargeDensityProfile" functions added by Y-H. Sato and A. Haga
0040 // 230307 "GetSingleEnergy" and "GetTotalEnergy" functions added by Y-H. Sato and A. Haga
0041 
0042 #ifndef G4LightIonQMDMeanField_hh
0043 #define G4LightIonQMDMeanField_hh
0044 
0045 #include "G4QMDSystem.hh"
0046 #include "G4LightIonQMDNucleus.hh"
0047 
0048 class G4LightIonQMDMeanField 
0049 {
0050    public:
0051 
0052       G4LightIonQMDMeanField();
0053       ~G4LightIonQMDMeanField() = default;
0054 
0055       void SetSystem ( G4QMDSystem* aSystem );
0056       void SetNucleus ( G4LightIonQMDNucleus* aSystem );
0057       inline G4QMDSystem* GetSystem () { return system; }
0058 
0059       void Cal2BodyQuantities();
0060       void Cal2BodyQuantities( G4int );
0061 
0062       void CalGraduate();
0063 
0064       G4bool IsPauliBlocked( G4int );
0065 
0066       G4double GetTotalPotential();
0067       G4double GetPotential( G4int );
0068 
0069       void DoPropagation( G4double );
0070 
0071       std::vector< G4LightIonQMDNucleus* > DoClusterJudgment();
0072 
0073       inline G4double GetRR2( G4int i , G4int j ) { return rr2[i][j]; }
0074       inline G4double GetRHA( G4int i , G4int j ) { return rha[i][j]; }
0075       inline G4double GetRHE( G4int i , G4int j ) { return rhe[i][j]; }
0076       inline G4ThreeVector GetFFr( G4int i ) { return ffr[i]; }
0077       inline G4ThreeVector GetFFp( G4int i ) { return ffp[i]; }
0078 
0079       std::vector< G4double > GetLocalDensity();
0080       std::vector< G4double > GetDepthOfPotential();
0081 
0082       void Update();
0083 
0084       G4double GetTotalEnergy(); // added by Y-H.S and A.H.
0085       G4double GetSingleEnergy( G4int ); // added by Y-H.S and A.H.
0086 
0087    private:
0088 
0089       G4double calPauliBlockingFactor( G4int );
0090 
0091    private:
0092 
0093       G4QMDSystem* system;
0094 
0095       G4double rclds { 3.99 };    // distance for cluster judgement
0096 
0097       G4double hbc , rho0;
0098       G4double epsx { -20.0 };    // gauss term
0099       G4double epscl { 0.0001 };  // coulomb term
0100 
0101       G4double cpc;
0102 
0103       //G4int icoul, irelcr;
0104       G4int irelcr { 1 };
0105       G4double gamm, c0, c3, cs, cl, wl;
0106       G4double g0, g0iso, gtau0, eta, kappas; //Skyrme-QMD
0107       //G4double c0w, c3w, clw, c0sw;
0108       G4double c0w, clw, c0sw;
0109 
0110       G4double c0g,c3g,csg,pag; 
0111       G4double cg0,cgtau0,pag_tau; //Skyrme-QMD
0112 
0113       G4double cpw,cph;
0114        
0115       // 2 Body Quantities 
0116       std::vector < std::vector < G4double > > rr2;    
0117       std::vector < std::vector < G4double > > pp2;    
0118       std::vector < std::vector < G4double > > rbij;    
0119 
0120       // Gauss 
0121       std::vector < std::vector < G4double > > rha;    
0122 
0123       // Coulomb
0124       std::vector < std::vector < G4double > > rhe;    
0125       std::vector < std::vector < G4double > > rhc;    
0126                                          
0127       std::vector < G4ThreeVector > ffr;    
0128       std::vector < G4ThreeVector > ffp;    
0129       std::vector < G4double > rh3d;    
0130       std::vector < G4double > rh3d_tau; // Skyrme-QMD
0131 
0132 };
0133 
0134 #endif