4. Matlab-start file

The constans and parameters can be found in the matlab-folder (e.g. C:\Users\DarkNemo\Documents\MATLAB\CUDA\Cloud8\Input1\SimConfig).

ION.e   = double(1.60217649e-19);                                     % elementary charge in ampere seconds
ION.mP  = double(1.67262171e-27);                                     % rest mass of the proton in kg
ION.mN  = double(1.67492716e-27);                                     % rest mass of the neutrons
ION.mE  = double(9.1093826e-31);                                      % rest mass of the free electrons in kg
ION.e0  = double(8.854187817e-12);                                    % electric field constant in As/(Vm)

ION.Z   = 5;                                                          % charge number
ION.M   = 12;                                                         % mass number
ION.A   = 6;                                                          % atomic number

ION.N   = 30;                                                         % number of ions

ION.q   = double(ION.Z*ION.e);                                                       % single ion charge
ION.m   = double((ION.A-ION.Z)*ION.mE + ION.A*ION.mP  + (ION.M-ION.A)*ION.mN);       % single ion mass    

SIM.k1      =   double(ION.q^2/(4*pi*ION.e0*ION.m));                                  % coefficient of Coulomb (SI-Units)
SIM.dt      =   double(1e-10);                                                        % time step in s
SIM.B       =   double(3.5);                                                          % magnetic flux density in T
SIM.wc_z    =   double(SIM.B*ION.q/ION.m);                                            % cyclotron angular frequency in Hz

SIM.SizeLocal       =   int32(10);                                                    % local work size (see programmers users guide cuda)
SIM.SizeGlobal      =   int32(ION.N);                                                 % global work size (see programmers users guide cuda)

SIM.NumBlocks       =   int32(SIM.SizeGlobal/SIM.SizeLocal);
SIM.NumLogs         =   int32(5e+6);                                                  % calculation: number of logs

SIM.NumStepsPerLog  =   int32(1e+2);                                                  % calculation: number of iterations steps between two logs divided by seven
SIM.device          =   int32(0);                                                     % graphic board device

SIM.NumTiles    =   int32(SIM.NumBlocks);                                             % alex
SIM.e_2         =   double(1e-14);                                                    % softening parameter

SIM.LeftElectrode   = 3;                                                              % the choice of the pick up electrode
SIM.RightElectrode  = 0;                                                              % the choice of the pick up electrode

Back Table of Contents Forward


-- EvaMartenstein - 20 Apr 2015
Topic revision: r8 - 2015-05-04, EvaMartenstein
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback
Imprint (in German)
Privacy Policy (in German)