Version: SMASH-3.1
smash::DeformedNucleus Class Reference

#include <deformednucleus.h>

DeformedNucleus: Child of nucleus for deformed nuclei.

All options from the nucleus will still apply. The deformed nucleus adds new or updated features which are outlined below.

Definition at line 38 of file deformednucleus.h.

Inheritance diagram for smash::DeformedNucleus:
smash::Nucleus

Public Member Functions

 DeformedNucleus (const std::map< PdgCode, int > &particle_list, int nTest)
 Constructor for DeformedNucles which takes a particle list and the number of testparticles. More...
 
 DeformedNucleus (Configuration &config, int nTest, bool auto_deformation)
 Constructor for DeformedNucleus, that needs the configuration parameters from the inputfile and the number of testparticles. More...
 
ThreeVector distribute_nucleon () override
 Deformed Woods-Saxon sampling routine. More...
 
void set_deformation_parameters_automatic ()
 Sets the deformation parameters of the radius according to the current mass number. More...
 
void set_deformation_parameters_from_config (Configuration &config)
 Set parameters for spherical deformation of the nucleus from the values specified in the configuration file. More...
 
void set_orientation_from_config (Configuration &orientation_config)
 Set angles for orientation of nucleus from config file. More...
 
void rotate () override
 Rotates the nucleus according to members nucleus_polar_angle_ and nucleus_azimuthal_angle_ and updates nucleon positions. More...
 
double get_saturation_density () const
 
double nucleon_density (double r, double cosx, double phi) const override
 Return the deformed Woods-Saxon probability density for the given position. More...
 
double nucleon_density_unnormalized (double r, double cosx, double phi) const override
 Return the unnormalized deformed Woods-Saxon distribution for the given position. More...
 
double integrant_nucleon_density_phi (double r, double cosx) const
 Return the integral over the azimuthal angle phi. More...
 
double calculate_saturation_density () const override
 
void set_beta_2 (double b2)
 Set deformation coefficient for Y_2_0. More...
 
void set_gamma (double ga)
 Set the triaxiality coefficient gamma for Y_2_0 and Y_2_2. More...
 
void set_beta_3 (double b3)
 Set deformation coefficient for Y_3_0. More...
 
void set_beta_4 (double b4)
 Set deformation coefficient for Y_4_0. More...
 
void set_polar_angle (double theta)
 Set the nucleus polar angle. More...
 
void set_azimuthal_angle (double phi)
 Set the nucleus azimuthal angle. More...
 
void set_angle_psi (double psi)
 Set the angle psi. More...
 
double get_beta2 ()
 return the beta2 value. More...
 
double get_beta3 ()
 return the beta3 value. More...
 
double get_beta4 ()
 return the beta4 value. More...
 
- Public Member Functions inherited from smash::Nucleus
 Nucleus ()=default
 default constructor More...
 
 Nucleus (Configuration &config, int nTest)
 Constructor for Nucleus, that needs the configuration parameters from the inputfile and the number of testparticles. More...
 
 Nucleus (const std::map< PdgCode, int > &particle_list, int nTest)
 Constructor which directly initializes the Nucleus with particles and respective counts. More...
 
virtual ~Nucleus ()=default
 
double mass () const
 
double woods_saxon (double x)
 Woods-Saxon distribution. More...
 
virtual void arrange_nucleons ()
 Sets the positions of the nucleons inside a nucleus. More...
 
virtual void set_parameters_automatic ()
 Sets the deformation parameters of the Woods-Saxon distribution according to the current mass number. More...
 
virtual void set_parameters_from_config (Configuration &config)
 Sets the parameters of the Woods-Saxon according to manually added values in the configuration file. More...
 
virtual void generate_fermi_momenta ()
 Generates momenta according to Fermi motion for the nucleons. More...
 
void boost (double beta_scalar)
 Boosts the nuclei into the computational frame, such that the nucleons have the appropriate momentum and the nuclei are lorentz-contracted. More...
 
void fill_from_list (const std::map< PdgCode, int > &particle_list, int testparticles)
 Adds particles from a map PDG code => Number_of_particles_with_that_PDG_code to the nucleus. More...
 
void shift (double z_offset, double x_offset, double simulation_time)
 Shifts the nucleus to correct impact parameter and z displacement. More...
 
void copy_particles (Particles *particles)
 Copies the particles from this nucleus into the particle list. More...
 
size_t size () const
 Number of numerical (=test-)particles in the nucleus: More...
 
size_t number_of_particles () const
 Number of physical particles in the nucleus: More...
 
size_t number_of_protons () const
 Number of physical protons in the nucleus: More...
 
FourVector center () const
 Calculate geometrical center of the nucleus. More...
 
void set_label (BelongsTo label)
 Sets target / projectile labels on nucleons. More...
 
void align_center ()
 Shifts the nucleus so that its center is at (0,0,0) More...
 
virtual void set_saturation_density (double density)
 Sets the saturation density of the nucleus. More...
 
std::vector< ParticleData >::iterator begin ()
 For iterators over the particle list: More...
 
std::vector< ParticleData >::iterator end ()
 For iterators over the particle list: More...
 
std::vector< ParticleData >::const_iterator cbegin () const
 For const iterators over the particle list: More...
 
std::vector< ParticleData >::const_iterator cend () const
 For const iterators over the particle list: More...
 
void set_diffusiveness (double diffuse)
 Sets the diffusiveness of the nucleus. More...
 
double get_diffusiveness () const
 
double get_saturation_density () const
 
double default_nuclear_radius ()
 Default nuclear radius calculated as: More...
 
void set_nuclear_radius (double rad)
 Sets the nuclear radius. More...
 
double get_nuclear_radius () const
 

Private Attributes

double beta2_ = 0.0
 Deformation parameter for angular momentum l=2. More...
 
double gamma_ = 0.0
 Triaxiality parameter for angular momentum l=2. More...
 
double beta3_ = 0.0
 Deformation parameter for angular momentum l=3. More...
 
double beta4_ = 0.0
 Deformation parameter for angular momentum l=4. More...
 
Angles nuclear_orientation_
 Nucleus orientation (initial profile in xz plane) in terms of a pair of angles (theta, phi) More...
 
bool random_rotation_ = false
 Whether the nuclei should be rotated randomly. More...
 

Additional Inherited Members

- Protected Member Functions inherited from smash::Nucleus
void random_euler_angles ()
 Randomly generate Euler angles. More...
 
- Protected Attributes inherited from smash::Nucleus
std::vector< ParticleDataparticles_
 Particles associated with this nucleus. More...
 
double saturation_density_ = nuclear_density
 Saturation density of this nucleus. More...
 
double euler_phi_
 Euler angel phi. More...
 
double euler_theta_
 Euler angel theta. More...
 
double euler_psi_
 Euler angel psi. More...
 

Constructor & Destructor Documentation

◆ DeformedNucleus() [1/2]

smash::DeformedNucleus::DeformedNucleus ( const std::map< PdgCode, int > &  particle_list,
int  nTest 
)

Constructor for DeformedNucles which takes a particle list and the number of testparticles.

This constructor is only used for testing purposes.

Parameters
[in]particle_listMap with PDGCode and number of particles which make up the nucleus
[in]nTestnumber of testparticles

Definition at line 21 of file deformednucleus.cc.

23  : Nucleus(particle_list, nTest) {}
Nucleus()=default
default constructor

◆ DeformedNucleus() [2/2]

smash::DeformedNucleus::DeformedNucleus ( Configuration config,
int  nTest,
bool  auto_deformation 
)

Constructor for DeformedNucleus, that needs the configuration parameters from the inputfile and the number of testparticles.

Parameters
[in]configcontains the parameters from the inputfile on the numbers of particles with a certain PDG code
[in]nTestnumber of testparticles
[in]auto_deformationwhether or not deformation parameters should be set automatically

Definition at line 25 of file deformednucleus.cc.

27  : Nucleus(config, nTest) {
28  if (auto_deformation) {
31  } else {
33  }
34  if (config.has_value({"Deformed", "Orientation"})) {
35  Configuration sub_conf =
36  config.extract_sub_configuration({"Deformed", "Orientation"});
38  }
39 }
void set_orientation_from_config(Configuration &orientation_config)
Set angles for orientation of nucleus from config file.
void set_deformation_parameters_from_config(Configuration &config)
Set parameters for spherical deformation of the nucleus from the values specified in the configuratio...
double calculate_saturation_density() const override
void set_deformation_parameters_automatic()
Sets the deformation parameters of the radius according to the current mass number.
virtual void set_saturation_density(double density)
Sets the saturation density of the nucleus.
Definition: nucleus.h:261

Member Function Documentation

◆ distribute_nucleon()

ThreeVector smash::DeformedNucleus::distribute_nucleon ( )
overridevirtual

Deformed Woods-Saxon sampling routine.

Returns
Spatial position from uniformly sampling the deformed woods-saxon distribution

Reimplemented from smash::Nucleus.

Definition at line 41 of file deformednucleus.cc.

41  {
42  double a_radius;
43  Angles a_direction;
44  // Set a sensible maximum bound for radial sampling.
45  double radius_max =
48 
49  // Sample the distribution.
50  do {
51  a_direction.distribute_isotropically();
52  // sample r**2 dr
53  a_radius = radius_max * std::cbrt(random::canonical());
54  } while (random::canonical() > nucleon_density(a_radius,
55  a_direction.costheta(),
56  a_direction.phi()) /
58 
59  // Update (x, y, z) positions.
60  return a_direction.threevec() * a_radius;
61 }
double nucleon_density(double r, double cosx, double phi) const override
Return the deformed Woods-Saxon probability density for the given position.
double get_diffusiveness() const
Definition: nucleus.h:331
double get_saturation_density() const
Definition: nucleus.h:336
double get_nuclear_radius() const
Definition: nucleus.h:364
T canonical()
Definition: random.h:113

◆ set_deformation_parameters_automatic()

void smash::DeformedNucleus::set_deformation_parameters_automatic ( )

Sets the deformation parameters of the radius according to the current mass number.

The deformation parameters are taken from Moller:1993ed [38]. Corrections to the deformation parameter beta2 in Uranium come from Kuhlman:2005ts [32]. For finite nucleon size corrections to the nuclear density and radius for copper and gold, see Hirano:2009ah [25], and Hirano:2010jg [27] for uranium.

Definition at line 63 of file deformednucleus.cc.

63  {
64  // Set the deformation parameters
65  // reference for U, Pb, Au, Cu: \iref{Moller:1993ed}
66  // reference for Zr and Ru: \iref{Schenke:2019ruo}
67  // reference for Xe: \iref{Moller:2015fba}
68  bool listed = 0;
69  const std::map<int, std::string> A_map = {{238, "Uranium"},
70  {208, "Lead"},
71  {197, "Gold"},
72  {63, "Copper"},
73  {129, "Xenon"}};
74  const std::map<std::string, std::string> Z_map = {{"Uranium", "92"},
75  {"Lead", "82"},
76  {"Gold", "79"},
77  {"Copper", "29"},
78  {"Xenon", "54"}};
81  switch (A) {
82  case 238: // Uranium
83  if (Z == 92) {
84  set_beta_2(0.28);
85  set_beta_4(0.093);
86  } else {
87  listed = true;
88  }
89  break;
90  case 208: // Lead
91  if (Z == 82) {
92  set_beta_2(0.0);
93  set_beta_4(0.0);
94  } else {
95  listed = true;
96  }
97  break;
98  case 197: // Gold
99  if (Z == 79) {
100  set_beta_2(-0.131);
101  set_beta_4(-0.031);
102  } else {
103  listed = true;
104  }
105  break;
106  case 129: // Xenon
107  if (Z == 54) {
108  set_beta_2(0.162);
109  set_beta_4(-0.003);
110  } else {
111  listed = true;
112  }
113  break;
114  case 63: // Copper
115  if (Z == 29) {
116  set_beta_2(0.162);
117  set_beta_4(-0.006);
118  } else {
119  listed = true;
120  }
121  break;
122  case 96:
123  if (Z == 40) { // Zirconium
124  set_beta_2(0.0);
125  set_beta_4(0.0);
126  } else if (Z == 44) { // Ruthenium
127  set_beta_2(0.158);
128  set_beta_4(0.0);
129  } else {
130  throw std::domain_error(
131  "Number of protons for nuclei with mass number A = 96 does not "
132  "match that of Zirconium or Ruthenium. The deformation parameters "
133  "for additional isobars are currently not implemented."
134  " Please specify at least \"Beta_2\" and \"Beta_4\" "
135  "manually and set \"Automatic: False.\" ");
136  }
137  break;
138  default:
139  throw std::domain_error(
140  "Mass number not listed for automatically setting deformation "
141  "parameters. Please specify at least \"Beta_2\" and \"Beta_4\" "
142  "manually and set \"Automatic: False.\" ");
143  }
144  if (listed) {
145  throw std::domain_error("Mass number is listed under " + A_map.at(A) +
146  " but the proton "
147  "number of " +
148  std::to_string(Z) +
149  " does not match "
150  "its " +
151  Z_map.at(A_map.at(A)) +
152  " protons."
153  "Please specify at least \"Beta_2\" and \"Beta_4\" "
154  "manually and set \"Automatic: False.\" ");
155  }
156 }
void set_beta_2(double b2)
Set deformation coefficient for Y_2_0.
void set_beta_4(double b4)
Set deformation coefficient for Y_4_0.
size_t number_of_protons() const
Number of physical protons in the nucleus:
Definition: nucleus.h:184
size_t number_of_particles() const
Number of physical particles in the nucleus:
Definition: nucleus.h:165

◆ set_deformation_parameters_from_config()

void smash::DeformedNucleus::set_deformation_parameters_from_config ( Configuration config)

Set parameters for spherical deformation of the nucleus from the values specified in the configuration file.

Parameters
configThe configuration for the deformation of this nucleus (projectile or target).

Definition at line 158 of file deformednucleus.cc.

159  {
160  // Deformation parameters.
161  if (config.has_value({"Deformed", "Beta_2"})) {
162  set_beta_2(static_cast<double>(config.take({"Deformed", "Beta_2"})));
163  }
164  if (config.has_value({"Deformed", "Gamma"})) {
165  set_gamma(static_cast<double>(config.take({"Deformed", "Gamma"})));
166  }
167  if (config.has_value({"Deformed", "Beta_3"})) {
168  set_beta_3(static_cast<double>(config.take({"Deformed", "Beta_3"})));
169  }
170  if (config.has_value({"Deformed", "Beta_4"})) {
171  set_beta_4(static_cast<double>(config.take({"Deformed", "Beta_4"})));
172  }
173 }
void set_gamma(double ga)
Set the triaxiality coefficient gamma for Y_2_0 and Y_2_2.
void set_beta_3(double b3)
Set deformation coefficient for Y_3_0.

◆ set_orientation_from_config()

void smash::DeformedNucleus::set_orientation_from_config ( Configuration orientation_config)

Set angles for orientation of nucleus from config file.

Parameters
[in]orientation_configThe configuration for the deformation of this nucleus (projectile or target).

Definition at line 175 of file deformednucleus.cc.

176  {
177  // Read in orientation if provided, otherwise, the defaults are
178  // theta = pi/2, phi = 0, as declared in the angles class
179 
180  if (orientation_config.has_value({"Theta"})) {
181  if (orientation_config.has_value({"Random_Rotation"}) &&
182  orientation_config.take({"Random_Rotation"})) {
183  throw std::domain_error(
184  "Random rotation of nuclei is activated although"
185  " theta is provided. Please specify only either of them. ");
186  } else {
187  set_polar_angle(static_cast<double>(orientation_config.take({"Theta"})));
188  }
189  }
190 
191  if (orientation_config.has_value({"Phi"})) {
192  if (orientation_config.has_value({"Random_Rotation"}) &&
193  orientation_config.take({"Random_Rotation"})) {
194  throw std::domain_error(
195  "Random rotation of nuclei is activated although"
196  " phi is provided. Please specify only either of them. ");
197  } else {
199  static_cast<double>(orientation_config.take({"Phi"})));
200  }
201  }
202 
203  if (orientation_config.has_value({"Psi"})) {
204  if (orientation_config.has_value({"Random_Rotation"}) &&
205  orientation_config.take({"Random_Rotation"})) {
206  throw std::domain_error(
207  "Random rotation of nuclei is activated although"
208  " psi is provided. Please specify only either of them. ");
209  } else {
210  set_angle_psi(static_cast<double>(orientation_config.take({"Psi"})));
211  }
212  }
213 
214  if (orientation_config.take({"Random_Rotation"}, false)) {
215  random_rotation_ = true;
216  }
217 }
bool random_rotation_
Whether the nuclei should be rotated randomly.
void set_angle_psi(double psi)
Set the angle psi.
void set_polar_angle(double theta)
Set the nucleus polar angle.
void set_azimuthal_angle(double phi)
Set the nucleus azimuthal angle.

◆ rotate()

void smash::DeformedNucleus::rotate ( )
overridevirtual

Rotates the nucleus according to members nucleus_polar_angle_ and nucleus_azimuthal_angle_ and updates nucleon positions.

Reimplemented from smash::Nucleus.

Definition at line 219 of file deformednucleus.cc.

219  {
220  if (random_rotation_) {
221  // Randomly generate euler angles for theta and phi. Psi needs not be
222  // assigned, as the nucleus objects are symmetric with respect to psi.
227  }
228  for (auto &particle : *this) {
229  /* Rotate every vector by the nuclear azimuth phi, polar angle
230  * theta and psi (the Euler angles). This means applying the matrix for a
231  * rotation of phi about z, followed by the matrix for a rotation
232  * theta about the rotated x axis. If the triaxiality coefficient is not
233  * zero, one has to include the third rotation around psi as the nucleus is
234  * not symmetric under rotation of any axis.*/
235  ThreeVector three_pos = particle.position().threevec();
236  three_pos.rotate(nuclear_orientation_.phi(), nuclear_orientation_.theta(),
238  particle.set_3position(three_pos);
239  }
240 }
double theta() const
Definition: angles.h:292
double phi() const
Definition: angles.h:279
double psi() const
Definition: angles.h:280
Angles nuclear_orientation_
Nucleus orientation (initial profile in xz plane) in terms of a pair of angles (theta,...
double euler_theta_
Euler angel theta.
Definition: nucleus.h:303
void random_euler_angles()
Randomly generate Euler angles.
Definition: nucleus.cc:480
double euler_phi_
Euler angel phi.
Definition: nucleus.h:301
double euler_psi_
Euler angel psi.
Definition: nucleus.h:305

◆ get_saturation_density()

double smash::DeformedNucleus::get_saturation_density ( ) const
inline
Returns
the saturation density of the deformed_nucleus
See also
saturation_density_

Definition at line 102 of file deformednucleus.h.

102 { return saturation_density_; }
double saturation_density_
Saturation density of this nucleus.
Definition: nucleus.h:292

◆ nucleon_density()

double smash::DeformedNucleus::nucleon_density ( double  r,
double  cosx,
double  phi 
) const
overridevirtual

Return the deformed Woods-Saxon probability density for the given position.

This corresponds to the nuclear density at the very same position.

Parameters
[in]rThe radius at which to sample
[in]cosxThe cosine of the polar angle at which to sample
[in]phiThe azimuthal angle at which to sample
Returns
The Woods-Saxon density

Reimplemented from smash::Nucleus.

Definition at line 260 of file deformednucleus.cc.

261  {
263  (1 + std::exp((r - Nucleus::get_nuclear_radius() *
264  (1 +
265  beta2_ * (std::cos(gamma_) *
266  y_l_m(2, 0, cosx, phi) +
267  std::sqrt(2) * std::sin(gamma_) *
268  y_l_m(2, 2, cosx, phi)) +
269  beta3_ * y_l_m(3, 0, cosx, phi) +
270  beta4_ * y_l_m(4, 0, cosx, phi))) /
272 }
double beta4_
Deformation parameter for angular momentum l=4.
double gamma_
Triaxiality parameter for angular momentum l=2.
double beta3_
Deformation parameter for angular momentum l=3.
double beta2_
Deformation parameter for angular momentum l=2.
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.

◆ nucleon_density_unnormalized()

double smash::DeformedNucleus::nucleon_density_unnormalized ( double  r,
double  cosx,
double  phi 
) const
overridevirtual

Return the unnormalized deformed Woods-Saxon distribution for the given position.

Parameters
[in]rThe radius
[in]cosxThe cosine of the polar angle
[in]phiThe azimuthal angle
Returns
The unnormalized Woods-Saxon distribution

Reimplemented from smash::Nucleus.

Definition at line 274 of file deformednucleus.cc.

275  {
276  return 1.0 /
277  (1 + std::exp((r - Nucleus::get_nuclear_radius() *
278  (1 +
279  beta2_ * (std::cos(gamma_) *
280  y_l_m(2, 0, cosx, phi) +
281  std::sqrt(2) * std::sin(gamma_) *
282  y_l_m(2, 2, cosx, phi)) +
283  beta3_ * y_l_m(3, 0, cosx, phi) +
284  beta4_ * y_l_m(4, 0, cosx, phi))) /
286 }

◆ integrant_nucleon_density_phi()

double smash::DeformedNucleus::integrant_nucleon_density_phi ( double  r,
double  cosx 
) const

Return the integral over the azimuthal angle phi.

Parameters
[in]rThe radius
[in]cosxThe cosine of the polar angle
Returns
The unnormalized Woods-Saxon distribution integrated over dphi

Definition at line 288 of file deformednucleus.cc.

289  {
290  Integrator integrate;
291  // Perform the phi integration. This is needed if the triaxiality coefficient
292  // gamma is included, which includes a dependency around the phi axis.
293  // Unfortunately the Integrator class does not support 3d integration which is
294  // why this intermediate integral is needed. It has been checked that the
295  // integral factorizes.
296  const auto result = integrate(0.0, 2.0 * M_PI, [&](double phi) {
297  return nucleon_density_unnormalized(r, cosx, phi);
298  });
299  return result.value();
300 }
double nucleon_density_unnormalized(double r, double cosx, double phi) const override
Return the unnormalized deformed Woods-Saxon distribution for the given position.
static Integrator integrate
Definition: decaytype.cc:143

◆ calculate_saturation_density()

double smash::DeformedNucleus::calculate_saturation_density ( ) const
overridevirtual
Returns
the normalized ground state density for the corresponding Woods-Saxon parameter. This is done by integrating the Woods-Saxon distribution and setting the normalization such that the integral of the Woods-Saxon distribution yields the number of particles in the nucleus \(\int\rho(r)d^3r = N_{particles}\).

Reimplemented from smash::Nucleus.

Definition at line 302 of file deformednucleus.cc.

302  {
303  Integrator2d integrate;
304  // Transform integral from (0, oo) to (0, 1) via r = (1 - t) / t.
305  // To prevent overflow, the integration is only performed to t = 0.01 which
306  // corresponds to r = 99fm. Additionally the precision settings in the
307  // Integrator2d scheme are equally important. However both these point affect
308  // the result only after the seventh digit which should not be relevant here.
309  if (gamma_ == 0.0) {
310  const auto result = integrate(0.01, 1, -1, 1, [&](double t, double cosx) {
311  const double r = (1 - t) / t;
312  return twopi * std::pow(r, 2.0) *
313  nucleon_density_unnormalized(r, cosx, 0.0) / std::pow(t, 2.0);
314  });
315  const auto rho0 = number_of_particles() / result.value();
316  return rho0;
317  } else {
318  const auto result = integrate(0.01, 1, -1, 1, [&](double t, double cosx) {
319  const double r = (1 - t) / t;
320  return std::pow(r, 2.0) * integrant_nucleon_density_phi(r, cosx) /
321  std::pow(t, 2.0);
322  });
323  const auto rho0 = number_of_particles() / result.value();
324  return rho0;
325  }
326 }
double integrant_nucleon_density_phi(double r, double cosx) const
Return the integral over the azimuthal angle phi.
constexpr double twopi
.
Definition: constants.h:45

◆ set_beta_2()

void smash::DeformedNucleus::set_beta_2 ( double  b2)
inline

Set deformation coefficient for Y_2_0.

Parameters
[in]b2deformation coefficient for l=2

Definition at line 145 of file deformednucleus.h.

145 { beta2_ = b2; }

◆ set_gamma()

void smash::DeformedNucleus::set_gamma ( double  ga)
inline

Set the triaxiality coefficient gamma for Y_2_0 and Y_2_2.

Parameters
[in]gatriaxiality coefficient for l=2

Definition at line 150 of file deformednucleus.h.

150 { gamma_ = ga; }

◆ set_beta_3()

void smash::DeformedNucleus::set_beta_3 ( double  b3)
inline

Set deformation coefficient for Y_3_0.

Parameters
[in]b3deformation coefficient for l=3

Definition at line 155 of file deformednucleus.h.

155 { beta3_ = b3; }

◆ set_beta_4()

void smash::DeformedNucleus::set_beta_4 ( double  b4)
inline

Set deformation coefficient for Y_4_0.

Parameters
[in]b4deformation coefficient for l=4

Definition at line 160 of file deformednucleus.h.

160 { beta4_ = b4; }

◆ set_polar_angle()

void smash::DeformedNucleus::set_polar_angle ( double  theta)
inline

Set the nucleus polar angle.

Parameters
[in]thetaPolar angle of position inside nucleus

Definition at line 165 of file deformednucleus.h.

165  {
167  }
void set_theta(const double theta)
Set the polar angle.
Definition: angles.h:237

◆ set_azimuthal_angle()

void smash::DeformedNucleus::set_azimuthal_angle ( double  phi)
inline

Set the nucleus azimuthal angle.

Parameters
[in]phiAzimuthal angle of position inside nucleus

Definition at line 172 of file deformednucleus.h.

172  {
174  }
void set_phi(const double phi)
Sets the azimuthal angle.
Definition: angles.h:205

◆ set_angle_psi()

void smash::DeformedNucleus::set_angle_psi ( double  psi)
inline

Set the angle psi.

Parameters
[in]psiAngle psi for properly rotating nucleus

Definition at line 179 of file deformednucleus.h.

void set_psi(const double psi)
Sets the euler angle psi.
Definition: angles.h:213

◆ get_beta2()

double smash::DeformedNucleus::get_beta2 ( )
inline

return the beta2 value.

Definition at line 183 of file deformednucleus.h.

183 { return beta2_; }

◆ get_beta3()

double smash::DeformedNucleus::get_beta3 ( )
inline

return the beta3 value.

Definition at line 187 of file deformednucleus.h.

187 { return beta3_; }

◆ get_beta4()

double smash::DeformedNucleus::get_beta4 ( )
inline

return the beta4 value.

Definition at line 191 of file deformednucleus.h.

191 { return beta4_; }

Member Data Documentation

◆ beta2_

double smash::DeformedNucleus::beta2_ = 0.0
private

Deformation parameter for angular momentum l=2.

Definition at line 195 of file deformednucleus.h.

◆ gamma_

double smash::DeformedNucleus::gamma_ = 0.0
private

Triaxiality parameter for angular momentum l=2.

Definition at line 197 of file deformednucleus.h.

◆ beta3_

double smash::DeformedNucleus::beta3_ = 0.0
private

Deformation parameter for angular momentum l=3.

Definition at line 199 of file deformednucleus.h.

◆ beta4_

double smash::DeformedNucleus::beta4_ = 0.0
private

Deformation parameter for angular momentum l=4.

Definition at line 201 of file deformednucleus.h.

◆ nuclear_orientation_

Angles smash::DeformedNucleus::nuclear_orientation_
private

Nucleus orientation (initial profile in xz plane) in terms of a pair of angles (theta, phi)

Definition at line 206 of file deformednucleus.h.

◆ random_rotation_

bool smash::DeformedNucleus::random_rotation_ = false
private

Whether the nuclei should be rotated randomly.

Definition at line 210 of file deformednucleus.h.


The documentation for this class was generated from the following files: