Version: SMASH-2.2
deformednucleus.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014-2020
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 
27 double y_l_0(int l, double cosx);
28 
36 class DeformedNucleus : public Nucleus {
37  public:
44  DeformedNucleus(const std::map<PdgCode, int> &particle_list, int nTest);
54  DeformedNucleus(Configuration &config, int nTest, bool auto_deformation);
62 
74 
83 
89  void set_orientation_from_config(Configuration &orientation_config);
94  void rotate() override;
95 
100  inline double get_saturation_density() const { return saturation_density_; }
109  double nucleon_density(double r, double cosx) const override;
118  double nucleon_density_unnormalized(double r, double cosx) const override;
123  inline void set_beta_2(double b2) { beta2_ = b2; }
128  inline void set_beta_4(double b4) { beta4_ = b4; }
133  inline void set_polar_angle(double theta) {
135  }
140  inline void set_azimuthal_angle(double phi) {
142  }
146  inline double get_beta2() { return beta2_; }
150  inline double get_beta4() { return beta4_; }
151 
152  private:
154  double beta2_ = 0.0;
156  double beta4_ = 0.0;
165  bool random_rotation_ = false;
166 };
167 
168 } // namespace smash
169 
170 #endif // SRC_INCLUDE_SMASH_DEFORMEDNUCLEUS_H_
Angles provides a common interface for generating directions: i.e., two angles that should be interpr...
Definition: angles.h:59
void set_phi(const double phi)
Sets the azimuthal angle.
Definition: angles.h:194
void set_theta(const double theta)
Set the polar angle.
Definition: angles.h:218
Interface to the SMASH configuration files.
DeformedNucleus: Child of nucleus for deformed nuclei.
void set_orientation_from_config(Configuration &orientation_config)
Set angles for orientation of nucleus from config file.
double get_saturation_density() const
double get_beta2()
return the beta2 value.
bool random_rotation_
Whether the nuclei should be rotated randomly.
double nucleon_density(double r, double cosx) const override
Return the deformed Woods-Saxon probability density for the given position.
ThreeVector distribute_nucleon() override
Deformed Woods-Saxon sampling routine.
double nucleon_density_unnormalized(double r, double cosx) const override
Return the unnormalized deformed Woods-Saxon distribution for the given position.
double get_beta4()
return the beta4 value.
void set_polar_angle(double theta)
Set the nucleus polar angle.
void rotate() override
Rotates the nucleus according to members nucleus_polar_angle_ and nucleus_azimuthal_angle_ and update...
double beta4_
Deformation parameter for angular momentum l=4.
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.
Angles nuclear_orientation_
Nucleus orientation (initial profile in xz plane) in terms of a pair of angles (theta,...
DeformedNucleus(const std::map< PdgCode, int > &particle_list, int nTest)
Constructor for DeformedNucles which takes a particle list and the number of testparticles.
void set_beta_4(double b4)
Set deformation coefficient for Y_4_0.
void set_azimuthal_angle(double phi)
Set the nucleus azimuthal angle.
double beta2_
Deformation parameter for angular momentum l=2.
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:292
The ThreeVector class represents a physical three-vector with the components .
Definition: threevector.h:31
Definition: action.h:24
double y_l_0(int l, double cosx)
Spherical harmonics Y_2_0 and Y_4_0.