Version: SMASH-3.3
deformednucleus.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014-2022,2024-2025
3  * SMASH Team
4  *
5  * GNU General Public License (GPLv3 or later)
6  */
7 #ifndef SRC_INCLUDE_SMASH_DEFORMEDNUCLEUS_H_
8 #define SRC_INCLUDE_SMASH_DEFORMEDNUCLEUS_H_
9 
10 #include <map>
11 
12 #include "angles.h"
13 #include "configuration.h"
14 #include "forwarddeclarations.h"
15 #include "nucleus.h"
16 #include "threevector.h"
17 
18 namespace smash {
19 
29 double y_l_m(int l, int m, double cosx, double phi);
30 
38 class DeformedNucleus : public Nucleus {
39  public:
49  const std::map<PdgCode, int> &particle_list, int nTest,
50  SpinInteractionType spin_interaction_type = SpinInteractionType::Off);
60  DeformedNucleus(Configuration &config, int nTest, bool auto_deformation);
68 
80 
89 
94  inline double get_saturation_density() const { return saturation_density_; }
104  double nucleon_density(double r, double cosx, double phi) const override;
114  double nucleon_density_unnormalized(double r, double cosx,
115  double phi) const override;
123  double integrant_nucleon_density_phi(double r, double cosx) const;
132  double calculate_saturation_density() const override;
137  inline void set_beta_2(double b2) { beta2_ = b2; }
142  inline void set_gamma(double ga) { gamma_ = ga; }
147  inline void set_beta_3(double b3) { beta3_ = b3; }
152  inline void set_beta_4(double b4) { beta4_ = b4; }
156  inline double get_beta2() { return beta2_; }
160  inline double get_beta3() { return beta3_; }
164  inline double get_beta4() { return beta4_; }
165 
166  private:
168  double beta2_ = 0.0;
170  double gamma_ = 0.0;
172  double beta3_ = 0.0;
174  double beta4_ = 0.0;
175 };
176 
177 } // namespace smash
178 
179 #endif // SRC_INCLUDE_SMASH_DEFORMEDNUCLEUS_H_
Interface to the SMASH configuration files.
DeformedNucleus: Child of nucleus for deformed nuclei.
double get_beta3()
return the beta3 value.
double get_saturation_density() const
void set_gamma(double ga)
Set the triaxiality coefficient gamma for Y_2_0 and Y_2_2.
double get_beta2()
return the beta2 value.
void set_beta_3(double b3)
Set deformation coefficient for Y_3_0.
ThreeVector distribute_nucleon() override
Deformed Woods-Saxon sampling routine.
double nucleon_density_unnormalized(double r, double cosx, double phi) const override
Return the unnormalized deformed Woods-Saxon distribution for the given position.
double get_beta4()
return the beta4 value.
double integrant_nucleon_density_phi(double r, double cosx) const
Return the integral over the azimuthal angle phi.
double beta4_
Deformation parameter for angular momentum l=4.
double gamma_
Triaxiality parameter for angular momentum l=2.
void set_deformation_parameters_from_config(Configuration &config)
Set parameters for spherical deformation of the nucleus from the values specified in the configuratio...
void set_beta_2(double b2)
Set deformation coefficient for Y_2_0.
double beta3_
Deformation parameter for angular momentum l=3.
DeformedNucleus(const std::map< PdgCode, int > &particle_list, int nTest, SpinInteractionType spin_interaction_type=SpinInteractionType::Off)
Constructor for DeformedNucles which takes a particle list and the number of testparticles.
double nucleon_density(double r, double cosx, double phi) const override
Return the deformed Woods-Saxon probability density for the given position.
void set_beta_4(double b4)
Set deformation coefficient for Y_4_0.
double beta2_
Deformation parameter for angular momentum l=2.
double calculate_saturation_density() const override
void set_deformation_parameters_automatic()
Sets the deformation parameters of the radius according to the current mass number.
A nucleus is a collection of particles that are initialized, before the beginning of the simulation a...
Definition: nucleus.h:27
double saturation_density_
Saturation density of this nucleus.
Definition: nucleus.h:293
The ThreeVector class represents a physical three-vector with the components .
Definition: threevector.h:31
SpinInteractionType
Possible spin interaction types.
@ Off
No spin interactions.
Definition: action.h:24
double y_l_m(int l, int m, double cosx, double phi)
Spherical harmonics Y_2_0, Y_2_2, Y_3_0 and Y_4_0.