From 5cb560e7272b2bbf2bd58682b7d8cdd141d5b645 Mon Sep 17 00:00:00 2001 From: csendlinger Date: Thu, 30 Oct 2025 16:19:18 +0100 Subject: [PATCH] Removed possibility of Nphi > 1 --- .../bottleApproximations/field_map_1GHz_2d.h5 | Bin 0 -> 104368 bytes include/generators/vector_field_generator.h | 4 +- include/poisson_solver/poisson_solver.h | 17 +- include/simulation/cpu_synchronizer.h | 4 +- include/simulation/current_collector.h | 66 ++-- include/simulation/density_field.h | 26 +- include/simulation/position_binning.h | 14 +- include/simulation/simulation.h | 2 +- include/simulation/vector_field.h | 14 +- src/IO/restart.cpp | 6 +- src/IO/simulation_output.cpp | 32 +- src/generators/binning_generator.cpp | 11 +- src/generators/vector_field_generator.cpp | 14 +- src/poisson_solver/poisson_solver.cpp | 331 +++++++----------- src/simulation/cpu_synchronizer.cpp | 20 +- src/simulation/current_collector.cpp | 176 +++++----- src/simulation/density_field.cpp | 129 ++++--- src/simulation/position_binning.cpp | 34 +- src/simulation/simulation.cpp | 12 +- src/simulation/vector_field.cpp | 11 +- src/simulation/velocity_distribution.cpp | 4 +- 21 files changed, 403 insertions(+), 524 deletions(-) create mode 100644 data/magnetigField/bottleApproximations/field_map_1GHz_2d.h5 diff --git a/data/magnetigField/bottleApproximations/field_map_1GHz_2d.h5 b/data/magnetigField/bottleApproximations/field_map_1GHz_2d.h5 new file mode 100644 index 0000000000000000000000000000000000000000..aff6d9b522ac421ed9642033f4c5cbbc19149d1a GIT binary patch literal 104368 zcmeFac{G>Z+y8BzGeu-*FjX2PO;Y<*(Ma>8Nux#$nny#EP%24-RH#IVq*RWRq(sJO zKq`?TB|{ks&;Fd-@mu%0*Yo}T@vQZ%-@Ts4b*m5OzNhf zqaY^wM@~*mN=#Mw5P#|D{O4YPxUhtuzrEngnq30vUB18r6MjS zE%3{J5fR#7xJg`s5wFpC@2bxF-#?e6k<;| zK)KGONQ!rE7qcG6cH*yl@q_;(b?%IrHlo(>cZt2y|NA!B%wl4FI_LdQyY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veb>7nHZuR#;o{%}~I3SIkp5@9vvX*`>4Yq0MF@_*~f;bMx1 z?ykZ0^%M{Ok(p~tDIPWspAL(scxd`;!i6M?2d%HuAxaUz{{Q-X0JA zKlI+Dc+h3d+a4u7AM7Q?gH$haKatO){3U4|T31NpihLcBuPgFAM4p$(^AvgBBHICM z7qFeccGLeIk`BPS0P6&-8?cVRx&rGAtUItDfc*mOCt$w;`%(6*>}O=ZBXfYv1u`ed z+#qv=%oX0Kl{iD@4xc$Eafti3NL(UwiUy6uEi%W*TqARi%)J~37#|a>R|#stlecW^ z@>FAP-ge{G9W7&ayXP90nHMh>1eGu{>X3!7ZFA@<>nGPM<-MVRN^l`M=-}{D2@VqE zXmb*#N=^6s0k`OckcmRbh?7Gf7pk@QRjbv~DQ?u?emJRi6gb8hO;)+oK3+dY-*-&; zvJ!Wnv25Mt+_C%J{p|m5?LXzpN2QYP@%H=tUwOI1m81F&SG$-i`N<$_IKH|1_w=YP zbLjTp(nI#z-<8`ZiMF0?Q*;&5@j2LStY**KzZ=72qb0l9Y=;IiLxPaT1FN}|+vR$$ z7Mdo>-;`2OKv6(ZKv6(ZKv6(ZKv6(ZKv6(ZKv6(ZKv7`4DPUjE%l`-1*Z6+|d-@`x literal 0 HcmV?d00001 diff --git a/include/generators/vector_field_generator.h b/include/generators/vector_field_generator.h index 93ff507..9a17860 100755 --- a/include/generators/vector_field_generator.h +++ b/include/generators/vector_field_generator.h @@ -10,8 +10,8 @@ namespace generator { std::shared_ptr buildVectorField(json_t* object); std::string readAbsoluteFilename(json_t* object); -blitz::Array readComponentFromFile(json_t* object, int component); -blitz::Array readFromFile(json_t* object); +blitz::Array readComponentFromFile(json_t* object, int component); +blitz::Array readFromFile(json_t* object); } // namespace generator #endif /* VECTOR_FIELD_GENERATOR_H */ diff --git a/include/poisson_solver/poisson_solver.h b/include/poisson_solver/poisson_solver.h index 90071e5..5786bf5 100755 --- a/include/poisson_solver/poisson_solver.h +++ b/include/poisson_solver/poisson_solver.h @@ -45,6 +45,7 @@ class RearWall : public Electrode { bool isOnElectrode(const Coordinate& position); }; +// for (r,z) axially density class PoissonSolver { public: PoissonSolver(GlobalBoundary bottom_boundary, @@ -57,12 +58,12 @@ class PoissonSolver { int num_cycles, bool do_solver); - void solvePotential(const blitz::Array charge_density); - blitz::Array potential(); + void solvePotential(const blitz::Array charge_density); + blitz::Array potential(); std::shared_ptr staticElectricField(); const CylinderBinning* densityBinning(); - void setPotential(blitz::Array& potential); + void setPotential(blitz::Array& potential); private: GlobalBoundary bottom_boundary_; @@ -78,13 +79,13 @@ class PoissonSolver { // density binning defined on the cell centers, potential defined // such that it exists on the cell edges so that the azimuthal // position is the same as the one of the density binning - blitz::Array potential_; //unit V + blitz::Array potential_; //unit V - blitz::Array interpolateDensityToPotentialGrid( - const blitz::Array charge_density); + blitz::Array interpolateDensityToPotentialGrid( + const blitz::Array charge_density); - void solverIteration(const blitz::Array& interpolated_density); - bool converged(const blitz::Array& interpolated_density); + void solverIteration(const blitz::Array& interpolated_density); + bool converged(const blitz::Array& interpolated_density); }; // Electrodes can only be dirichlet boundary conditions diff --git a/include/simulation/cpu_synchronizer.h b/include/simulation/cpu_synchronizer.h index 81d4c16..17cde21 100755 --- a/include/simulation/cpu_synchronizer.h +++ b/include/simulation/cpu_synchronizer.h @@ -32,8 +32,6 @@ class CpuSynchronizer { /* sums delta = * - last_sync_* to last_sync_* over all CPUs */ - void sumToAll(blitz::Array& array, - blitz::Array& last_sync_array); void sumToAll(blitz::Array& array, blitz::Array& last_sync_array); void sumToAll(blitz::Array& array, @@ -45,9 +43,11 @@ class CpuSynchronizer { // array has to be the delta of the timestep void sumToAll(blitz::Array& array); + void sumToAll(blitz::Array& array); // collect data to rank 0 functions void sumToRoot(blitz::Array& array); + void sumToRoot(blitz::Array& array); void sumToRoot(long int& value); void sumToRoot(double& value); diff --git a/include/simulation/current_collector.h b/include/simulation/current_collector.h index 9aad41b..8481677 100755 --- a/include/simulation/current_collector.h +++ b/include/simulation/current_collector.h @@ -14,20 +14,20 @@ class CurrentCollector { void collect(particle::Particle* particle, const Coordinate& old_position); - blitz::Array negativeCrossingsInR() const; - blitz::Array positiveCrossingsInR() const; - blitz::Array areaInR() const; - blitz::Array currentInR() const; + blitz::Array negativeCrossingsInR() const; + blitz::Array positiveCrossingsInR() const; + blitz::Array areaInR() const; + blitz::Array currentInR() const; - blitz::Array negativeCrossingsInPhi() const; - blitz::Array positiveCrossingsInPhi() const; - blitz::Array areaInPhi() const; - blitz::Array currentInPhi() const; + blitz::Array negativeCrossingsInPhi() const; + blitz::Array positiveCrossingsInPhi() const; + blitz::Array areaInPhi() const; + blitz::Array currentInPhi() const; - blitz::Array negativeCrossingsInZ() const; - blitz::Array positiveCrossingsInZ() const; - blitz::Array areaInZ() const; - blitz::Array currentInZ() const; + blitz::Array negativeCrossingsInZ() const; + blitz::Array positiveCrossingsInZ() const; + blitz::Array areaInZ() const; + blitz::Array currentInZ() const; double physicalTime() const; @@ -36,39 +36,39 @@ class CurrentCollector { friend class CpuSynchronizer; private: - void collectRadialMovement(const blitz::TinyVector& bin_old, - const blitz::TinyVector& bin_new, + void collectRadialMovement(const blitz::TinyVector& bin_old, + const blitz::TinyVector& bin_new, const double weight); - void collectLongitudinalMovement(const blitz::TinyVector& bin_old, - const blitz::TinyVector& bin_new, + void collectLongitudinalMovement(const blitz::TinyVector& bin_old, + const blitz::TinyVector& bin_new, const double weight); - void collectAzimuthalMovement(const blitz::TinyVector& bin_old, - const blitz::TinyVector& bin_new, + void collectAzimuthalMovement(const blitz::TinyVector& bin_old, + const blitz::TinyVector& bin_new, const double weight); - blitz::Array createAreaLongitudinal( + blitz::Array createAreaLongitudinal( const CylinderBinning& position_binning); - blitz::Array createCrossingsLongitudinal( + blitz::Array createCrossingsLongitudinal( const CylinderBinning& position_binning); - blitz::Array createAreaRadial( + blitz::Array createAreaRadial( const CylinderBinning& position_binning); - blitz::Array createCrossingsRadial( + blitz::Array createCrossingsRadial( const CylinderBinning& position_binning); - blitz::Array createAreaAzimuthal( + blitz::Array createAreaAzimuthal( const CylinderBinning& position_binning); - blitz::Array createCrossingsAzimuthal( + blitz::Array createCrossingsAzimuthal( const CylinderBinning& position_binning); - blitz::Array z_negative_crossings; - blitz::Array z_positive_crossings; + blitz::Array z_negative_crossings; + blitz::Array z_positive_crossings; - blitz::Array phi_negative_crossings; - blitz::Array phi_positive_crossings; + blitz::Array phi_negative_crossings; + blitz::Array phi_positive_crossings; - blitz::Array r_negative_crossings; - blitz::Array r_positive_crossings; + blitz::Array r_negative_crossings; + blitz::Array r_positive_crossings; // blitz::Array sync_z_negative_crossings; // blitz::Array sync_z_positive_crossings; @@ -79,9 +79,9 @@ class CurrentCollector { // blitz::Array sync_r_negative_crossings; // blitz::Array sync_r_positive_crossings; - blitz::Array collector_areas_r; - blitz::Array collector_areas_phi; - blitz::Array collector_areas_z; + blitz::Array collector_areas_r; + blitz::Array collector_areas_phi; + blitz::Array collector_areas_z; CylinderBinning position_binning_; std::shared_ptr timer_; diff --git a/include/simulation/density_field.h b/include/simulation/density_field.h index 712912f..4be37bd 100755 --- a/include/simulation/density_field.h +++ b/include/simulation/density_field.h @@ -46,10 +46,10 @@ class DynamicDensityField : public DensityField { // of the pitch angle binning bool changedPitchAngleBin(double old_pitch_angle, double new_pitch_angle) const; - blitz::Array densityArray(); - blitz::Array spectrumArray(); - blitz::Array timeInBinArray() const; - blitz::Array binVolumeArray() const; + blitz::Array densityArray(); + blitz::Array spectrumArray(); + blitz::Array numberInBinArray() const; + blitz::Array binVolumeArray() const; // return an array of the density values at the Coordinate position (only energy // direction left); over and underflow bin are removed @@ -58,7 +58,7 @@ class DynamicDensityField : public DensityField { // return an array of the time in bin at the Coordinate position and the energy // energy_eV (only pitch angle direction left); over and underflow bin are removed - blitz::Array sliceTimeInBinArray(const Coordinate& position, + blitz::Array sliceNumberInBinArray(const Coordinate& position, double energy_eV) const; const EnergyBinning* energyBinning() const; @@ -73,21 +73,19 @@ class DynamicDensityField : public DensityField { friend class CpuSynchronizer; void restartTimer(double time, double delta_t); - void restartTimeInBin(blitz::Array time_in_bin); + void restartNumberInBin(blitz::Array number_in_bin); void recalculateDensityArray(); private: - // use ordering r, phi, z, pitch_angle, E - // time in bin now contains the physical particle number per bin - // (not renamed, since that would require many, many changes due to - // renaming of the functions) - blitz::Array time_in_bin_s_; - blitz::Array sync_time_in_bin_s_; + // use ordering r, z, pitch_angle, E. + // Full symmetry in azimuthal direction -> no phi resolution + blitz::Array number_in_bin_; + blitz::Array sync_number_in_bin_; - blitz::Array density_per_m3_; - blitz::Array bin_volume_m3_; + blitz::Array density_per_m3_; + blitz::Array bin_volume_m3_; const CylinderBinning position_binning_; const EnergyBinning energy_binning_; diff --git a/include/simulation/position_binning.h b/include/simulation/position_binning.h index 44bc556..3d51027 100755 --- a/include/simulation/position_binning.h +++ b/include/simulation/position_binning.h @@ -60,21 +60,19 @@ class CylinderBinning { public: CylinderBinning(int num_bins_radial, double radius, - int num_bins_azimuthal, int num_bins_longitudinal, double height); - blitz::TinyVector bin( + blitz::TinyVector bin( const blitz::TinyVector& cylinder_position) const; - blitz::TinyVector stepsize() const; + blitz::TinyVector stepsize() const; - blitz::TinyVector numBins() const; - blitz::TinyVector numBinsIncludingOverUnderflow() const; - blitz::TinyVector binIndexMin() const; - blitz::TinyVector binIndexMax() const; + blitz::TinyVector numBins() const; + blitz::TinyVector numBinsIncludingOverUnderflow() const; + blitz::TinyVector binIndexMin() const; + blitz::TinyVector binIndexMax() const; const LowerBoundBinningWithOverflow radial_binning; - const LowerAndUpperBoundBinning azimuth_binning; const BinningWithOverAndUnderflow longitudinal_binning; }; diff --git a/include/simulation/simulation.h b/include/simulation/simulation.h index 008a17b..81a69d9 100755 --- a/include/simulation/simulation.h +++ b/include/simulation/simulation.h @@ -52,7 +52,7 @@ class Simulation { RandomNumbers* random, std::vector& macroscopic_cross_sections_m); - blitz::Array chargedensity(); + blitz::Array chargedensity(); std::map> tracked_species_; diff --git a/include/simulation/vector_field.h b/include/simulation/vector_field.h index 3cc1783..7bca9bf 100755 --- a/include/simulation/vector_field.h +++ b/include/simulation/vector_field.h @@ -14,9 +14,9 @@ class VectorField { class VectorFieldFromArray : public VectorField { public: - VectorFieldFromArray(const blitz::Array& radial_component, - const blitz::Array& azimuthal_component, - const blitz::Array& longitudial_component, + VectorFieldFromArray(const blitz::Array& radial_component, + const blitz::Array& azimuthal_component, + const blitz::Array& longitudial_component, double radius, double length); @@ -24,12 +24,12 @@ class VectorFieldFromArray : public VectorField { private: // todo: make sure we use fast axis on z to reduce access time - const blitz::Array Fr_; - const blitz::Array Fphi_; - const blitz::Array Fz_; + const blitz::Array Fr_; + const blitz::Array Fphi_; + const blitz::Array Fz_; CylinderBinning binning_; - CylinderVector value(const blitz::TinyVector& bin) const; + CylinderVector value(const blitz::TinyVector& bin) const; }; class VectorFieldConstant : public VectorField { diff --git a/src/IO/restart.cpp b/src/IO/restart.cpp index e770794..b12c7dd 100644 --- a/src/IO/restart.cpp +++ b/src/IO/restart.cpp @@ -139,8 +139,8 @@ void Restart::restartDrawingDensityField(DynamicDensityField* field, std::string #ifdef debug_level3 DEBUG_LEVEL_3(path_to_data); #endif - blitz::Array time_in_bin = reader_.readD5Double(path_to_data); - field->restartTimeInBin(time_in_bin); + blitz::Array number_in_bin = reader_.readD4Double(path_to_data); + field->restartNumberInBin(number_in_bin); field->recalculateDensityArray(); } @@ -163,7 +163,7 @@ void Restart::restartPoissonSolver(PoissonSolver* solver) { #ifdef debug_level3 DEBUG_LEVEL_3(path); #endif - blitz::Array potential = reader_.readD3Double(path); + blitz::Array potential = reader_.readD2Double(path); solver->setPotential(potential); } diff --git a/src/IO/simulation_output.cpp b/src/IO/simulation_output.cpp index ecb1c71..c20bc29 100755 --- a/src/IO/simulation_output.cpp +++ b/src/IO/simulation_output.cpp @@ -322,7 +322,7 @@ void SimulationOutput::writeDensity(DynamicDensityField* density_field, void SimulationOutput::writeTimeInBin(DynamicDensityField* density_field, std::string path) { - writer.write(density_field->timeInBinArray(), path + "/TimeInBin"); + writer.write(density_field->numberInBinArray(), path + "/TimeInBin"); } // void SimulationOutput::writeDeletedParticles(DynamicDensityField* density_field, @@ -385,10 +385,6 @@ void SimulationOutput::writeMetaData(DynamicDensityField* density_field, density_field->positionBinning()->radial_binning.binBorders(); writer.write(radial_bin_borders, path_to_bin_borders + "/radial"); - std::vector azimuth_bin_borders = - density_field->positionBinning()->azimuth_binning.binBorders(); - writer.write(azimuth_bin_borders, path_to_bin_borders + "/azimuth"); - std::vector longitudinal_bin_borders = density_field->positionBinning()->longitudinal_binning.binBorders(); writer.write(longitudinal_bin_borders, path_to_bin_borders + "/longitudinal"); @@ -397,12 +393,11 @@ void SimulationOutput::writeMetaData(DynamicDensityField* density_field, // write num bins { std::string path_to_num_bins = path_to_field + "/NumBins"; - blitz::TinyVector num_bins = density_field->spectrumArray().extent(); + blitz::TinyVector num_bins = density_field->spectrumArray().extent(); - writer.write(num_bins(0), path_to_num_bins + "/energy"); - writer.write(num_bins(1), path_to_num_bins + "/radial"); - writer.write(num_bins(2), path_to_num_bins + "/azimuthal"); - writer.write(num_bins(3), path_to_num_bins + "/longitudinal"); + writer.write(num_bins(0), path_to_num_bins + "/radial"); + writer.write(num_bins(1), path_to_num_bins + "/longitudinal"); + writer.write(num_bins(2), path_to_num_bins + "/energy"); } } @@ -423,10 +418,6 @@ void SimulationOutput::writeMetaData(PoissonSolver* poisson_solver, poisson_solver->densityBinning()->radial_binning.binBorders(); writer.write(radial_bin_borders, path_to_bin_borders + "/radial"); - std::vector azimuth_bin_borders = - poisson_solver->densityBinning()->azimuth_binning.binBorders(); - writer.write(azimuth_bin_borders, path_to_bin_borders + "/azimuth"); - std::vector longitudinal_bin_borders = poisson_solver->densityBinning()->longitudinal_binning.binBorders(); writer.write(longitudinal_bin_borders, path_to_bin_borders + "/longitudinal"); @@ -448,12 +439,11 @@ void SimulationOutput::writeBinVolumes(DynamicDensityField* density_field, void SimulationOutput::writeNumBins(DynamicDensityField* density_field, std::string path_to_field) { std::string path_to_num_bins = path_to_field + "/NumBins"; - blitz::TinyVector num_bins = density_field->spectrumArray().extent(); + blitz::TinyVector num_bins = density_field->spectrumArray().extent(); - writer.write(num_bins(0), path_to_num_bins + "/energy"); - writer.write(num_bins(1), path_to_num_bins + "/radial"); - writer.write(num_bins(2), path_to_num_bins + "/azimuthal"); - writer.write(num_bins(3), path_to_num_bins + "/longitudinal"); + writer.write(num_bins(0), path_to_num_bins + "/radial"); + writer.write(num_bins(1), path_to_num_bins + "/longitudinal"); + writer.write(num_bins(2), path_to_num_bins + "/energy"); } void SimulationOutput::writeBinBorders(DynamicDensityField* density_field, @@ -468,10 +458,6 @@ void SimulationOutput::writeBinBorders(DynamicDensityField* density_field, density_field->positionBinning()->radial_binning.binBorders(); writer.write(radial_bin_borders, path_to_bin_borders + "/radial"); - std::vector azimuth_bin_borders = - density_field->positionBinning()->azimuth_binning.binBorders(); - writer.write(azimuth_bin_borders, path_to_bin_borders + "/azimuth"); - std::vector longitudinal_bin_borders = density_field->positionBinning()->longitudinal_binning.binBorders(); writer.write(longitudinal_bin_borders, path_to_bin_borders + "/longitudinal"); diff --git a/src/generators/binning_generator.cpp b/src/generators/binning_generator.cpp index 14806d9..e944e55 100755 --- a/src/generators/binning_generator.cpp +++ b/src/generators/binning_generator.cpp @@ -23,12 +23,6 @@ CylinderBinning buildPositionBinning(json_t* object) { json_read_length(json_object_by_path(radial, {"MaxRadius"}), "m"); ASSERT_POSITIVE(&max_radius, "Radius must be positive"); - json_t* azimuthal = json_object_by_path(object, {"Azimuthal"}); - int number_of_bins_azimuthal = - json_int(json_object_by_path(azimuthal, {"NumberOfBins"})); - ASSERT_POSITIVE(&number_of_bins_azimuthal, - "Number of Bins must be positive"); - json_t* longitudinal = json_object_by_path(object, {"Longitudinal"}); int number_of_bins_longitudinal = json_int(json_object_by_path(longitudinal, {"NumberOfBins"})); @@ -41,8 +35,6 @@ CylinderBinning buildPositionBinning(json_t* object) { #ifdef debug_level3 DEBUG_LEVEL_3("with number of bins radial: " + std::to_string(number_of_bins_radial)); - DEBUG_LEVEL_3("with number of bins azimuthal: " + - std::to_string(number_of_bins_azimuthal)); DEBUG_LEVEL_3("with number of bins longitudinal: " + std::to_string(number_of_bins_longitudinal)); DEBUG_LEVEL_3("with radius: " + std::to_string(max_radius) + " m"); @@ -50,11 +42,10 @@ CylinderBinning buildPositionBinning(json_t* object) { #endif return CylinderBinning(number_of_bins_radial, max_radius, - number_of_bins_azimuthal, number_of_bins_longitudinal, max_length); } else { ERROR("This position binning is not implemented."); - return CylinderBinning(0, 0, 0, 0, 0); + return CylinderBinning(0, 0, 0, 0); } } diff --git a/src/generators/vector_field_generator.cpp b/src/generators/vector_field_generator.cpp index b4dc8a1..404523c 100755 --- a/src/generators/vector_field_generator.cpp +++ b/src/generators/vector_field_generator.cpp @@ -32,23 +32,23 @@ std::string readAbsoluteFilename(json_t* object) { } } -blitz::Array readFromFile(json_t* object) { +blitz::Array readFromFile(json_t* object) { std::string absolute_filename = readAbsoluteFilename(json_object_by_path(object, {"PathToH5"})); std::string key = json_string(json_object_by_path(object, {"Key"})); Hdf5Reader reader(absolute_filename); - return reader.readD3Double(key); + return reader.readD2Double(key); } -blitz::Array readComponentFromFile(json_t* object, int component) { +blitz::Array readComponentFromFile(json_t* object, int component) { std::string absolute_filename = readAbsoluteFilename(json_object_by_path(object, {"PathToH5"})); std::string key = json_string( json_array_get(json_object_by_path(object, {"Keys"}), component)); Hdf5Reader reader(absolute_filename); - return reader.readD3Double(key); + return reader.readD2Double(key); } std::shared_ptr buildVectorField(json_t* object) { @@ -75,15 +75,15 @@ std::shared_ptr buildVectorField(json_t* object) { DEBUG_LEVEL_2("Creating Vector field: VectorFieldFromArray"); #endif - blitz::Array v_radial = readComponentFromFile( + blitz::Array v_radial = readComponentFromFile( json_object_by_path(object, {"VectorFieldFromArray", "ReadArrayFromFile"}), 0); - blitz::Array v_azimuthal = readComponentFromFile( + blitz::Array v_azimuthal = readComponentFromFile( json_object_by_path(object, {"VectorFieldFromArray", "ReadArrayFromFile"}), 1); - blitz::Array v_longitudinal = readComponentFromFile( + blitz::Array v_longitudinal = readComponentFromFile( json_object_by_path(object, {"VectorFieldFromArray", "ReadArrayFromFile"}), 2); diff --git a/src/poisson_solver/poisson_solver.cpp b/src/poisson_solver/poisson_solver.cpp index 2456bf7..fa9ac43 100755 --- a/src/poisson_solver/poisson_solver.cpp +++ b/src/poisson_solver/poisson_solver.cpp @@ -22,73 +22,66 @@ PoissonSolver::PoissonSolver(GlobalBoundary bottom_boundary, hull_boundary_(hull_boundary), geometry_(geometry), density_binning_(density_binning), - potential_(blitz::Array( + potential_(blitz::Array( blitz::Range(density_binning.binIndexMin()(0), density_binning.binIndexMax()(0)), - blitz::Range(density_binning.binIndexMin()(1), - density_binning.binIndexMax()(1)), // the azimuthal direction is periodic - blitz::Range(density_binning.binIndexMin()(2) + 1, - density_binning.binIndexMax()(2)))), + blitz::Range(density_binning.binIndexMin()(1) + 1, + density_binning.binIndexMax()(1)))), electrodes_(electrodes), target_accuracy_(target_accuracy), num_cycles_(num_cycles), do_solver_(do_solver) { - blitz::TinyVector stepsize = density_binning_.stepsize(); + blitz::TinyVector stepsize = density_binning_.stepsize(); for (int i = potential_.lbound(0); i <= potential_.ubound(0); ++i) { for (int j = potential_.lbound(1); j <= potential_.ubound(1); ++j) { - for (int k = potential_.lbound(2); k <= potential_.ubound(2); - ++k) { - CylinderCoordinate position(blitz::TinyVector( - i * stepsize(0), j * stepsize(1), k * stepsize(2))); + CylinderCoordinate position(blitz::TinyVector( + i * stepsize(0), 0, j * stepsize(1))); - switch(geometry_->isWhere(position)) { - case GeometryPositioning::bottom: - potential_(i,j,k) = {bottom_boundary_.type, bottom_boundary_.boundary_value}; - break; - case GeometryPositioning::top: - potential_(i,j,k) = {top_boundary_.type, top_boundary_.boundary_value}; - break; - case GeometryPositioning::hull: - potential_(i,j,k) = {hull_boundary_.type, hull_boundary_.boundary_value}; - break; - case GeometryPositioning::inside: - potential_(i,j,k) = {BoundaryType::no_boundary, 0.}; - break; - default: - // include position in output - ERROR("Something went terribly wrong. Position is nowhere."); - break; - } - for (auto& electrode : electrodes_) { - if (electrode->isOnElectrode(position)) { - potential_(i,j,k).type = BoundaryType::dirichlet; - potential_(i,j,k).value = electrode->electrodePotential(); - } + switch(geometry_->isWhere(position)) { + case GeometryPositioning::bottom: + potential_(i,j) = {bottom_boundary_.type, bottom_boundary_.boundary_value}; + break; + case GeometryPositioning::top: + potential_(i,j) = {top_boundary_.type, top_boundary_.boundary_value}; + break; + case GeometryPositioning::hull: + potential_(i,j) = {hull_boundary_.type, hull_boundary_.boundary_value}; + break; + case GeometryPositioning::inside: + potential_(i,j) = {BoundaryType::no_boundary, 0.}; + break; + default: + // include position in output + ERROR("Something went terribly wrong. Position is nowhere."); + break; + } + for (auto& electrode : electrodes_) { + if (electrode->isOnElectrode(position)) { + potential_(i,j).type = BoundaryType::dirichlet; + potential_(i,j).value = electrode->electrodePotential(); } } } } - blitz::Array zero_chargedensity( + blitz::Array zero_chargedensity( blitz::Range(density_binning.binIndexMin()(0), density_binning.binIndexMax()(0)), blitz::Range(density_binning.binIndexMin()(1), - density_binning.binIndexMax()(1)), - blitz::Range(density_binning.binIndexMin()(2), - density_binning.binIndexMax()(2))); + density_binning.binIndexMax()(1))); zero_chargedensity = 0.; solvePotential(zero_chargedensity); } void PoissonSolver::solvePotential( - const blitz::Array charge_density) { + const blitz::Array charge_density) { if (!(do_solver_)) { return; } #ifdef debug_level3 DEBUG_LEVEL_3("Interpolating chargedensity."); #endif - blitz::Array interpolated_density = + blitz::Array interpolated_density = interpolateDensityToPotentialGrid(charge_density); int it = 1; do { @@ -106,61 +99,45 @@ void PoissonSolver::solvePotential( } void PoissonSolver::solverIteration( - const blitz::Array& interpolated_density) { - blitz::TinyVector stepsize = density_binning_.stepsize(); + const blitz::Array& interpolated_density) { + blitz::TinyVector stepsize = density_binning_.stepsize(); const double dr_sq = stepsize(0)*stepsize(0); // shorthand - const double dth_sq = stepsize(1)*stepsize(1); // shorthand - const double dz_sq = stepsize(2)*stepsize(2); // shorthand + const double dz_sq = stepsize(1)*stepsize(1); // shorthand for (int i = potential_.lbound(0); i <= potential_.ubound(0); ++i) { for (int j = potential_.lbound(1); j <= potential_.ubound(1); ++j) { - for (int k = potential_.lbound(2); k <= potential_.ubound(2); ++k) { - //rewrite with a switch-case - if (potential_(i, j, k).type == BoundaryType::dirichlet) { - potential_(i, j, k).value = potential_(i, j, k).value; - } else if (potential_(i, j, k).type == BoundaryType::neumann_to_top) { - potential_(i, j, k).value = potential_(i, j, k - 1).value - + top_boundary_.boundary_value * stepsize(2); - } else if (potential_(i, j, k).type == BoundaryType::neumann_to_bottom) { - potential_(i, j, k).value = potential_(i, j, k + 1).value - - bottom_boundary_.boundary_value * stepsize(2); - } else if (potential_(i, j, k).type == BoundaryType::neumann_to_hull) { - potential_(i, j, k).value = potential_(i - 1, j, k).value - + hull_boundary_.boundary_value * stepsize(0); - } else if (i == 0) { - // special calculation for r=0 - const int jmirror = (j potential_.ubound(1) - ? potential_.lbound(1) - : j + 1; // j+1 with periodic guard - const int jm1 = j - 1 < potential_.lbound(1) - ? potential_.ubound(1) - : j - 1; // j-1 with periodic guard - - const double scaling_factor = 2 / dr_sq + 2 / dz_sq + - 2 / (i*i * dr_sq * dth_sq); + } else { + const double scaling_factor = 2 / dr_sq + 2 / dz_sq; - potential_(i, j, k).value = - (1 / scaling_factor) * - ((1 / dr_sq * (1 + 1. / (2. * i))) * potential_(i + 1, j, k).value + - (1 / dr_sq * (1 - 1. / (2. * i))) * potential_(i - 1, j, k).value + - (1 / (i*i * dr_sq * dth_sq)) * - (potential_(i, jp1, k).value + potential_(i, jm1, k).value) + - (1 / dz_sq) * (potential_(i, j, k + 1).value + - potential_(i, j, k - 1).value) + - interpolated_density(i, j, k)/SI::eps0); - } + potential_(i, j).value = + (1 / scaling_factor) * + ((1 / dr_sq * (1 + 1. / (2. * i))) * potential_(i + 1, j).value + + (1 / dr_sq * (1 - 1. / (2. * i))) * potential_(i - 1, j).value + + (1 / dz_sq) * (potential_(i, j + 1).value + + potential_(i, j - 1).value) + + interpolated_density(i, j)/SI::eps0); } } } @@ -169,11 +146,10 @@ void PoissonSolver::solverIteration( //as of now does not check for inner cells with dirichlet or neumann //boundary, probably needs to be added (or the "electrodes" removed) bool PoissonSolver::converged( - const blitz::Array& interpolated_density) { - blitz::TinyVector stepsize = density_binning_.stepsize(); + const blitz::Array& interpolated_density) { + blitz::TinyVector stepsize = density_binning_.stepsize(); const double dr_sq = stepsize(0)*stepsize(0); // shorthand - const double dth_sq = stepsize(1)*stepsize(1); // shorthand - const double dz_sq = stepsize(2)*stepsize(2); // shorthand + const double dz_sq = stepsize(1)*stepsize(1); // shorthand double cumulated_quadradic_difference = 0.; double normalized_difference = 0.; @@ -181,64 +157,44 @@ bool PoissonSolver::converged( for (int i = potential_.lbound(0); i < potential_.ubound(0); ++i) { for (int j = potential_.lbound(1); j <= potential_.ubound(1); ++j) { - for (int k = potential_.lbound(2) + 1; k <= potential_.ubound(2) - 1; - ++k) { - if(potential_(i,j,k).type != BoundaryType::no_boundary) { - continue; + if(potential_(i,j).type != BoundaryType::no_boundary) { + continue; + } + if (i == 0) { + // special calculation for r=0 + const double difference = interpolated_density(i,j)/SI::eps0 + + 4*(potential_(i+1,j).value - potential_(i,j).value)/dr_sq + + (potential_(i,j+1).value - 2*potential_(i,j).value + + potential_(i,j-1).value)/dz_sq; + + cumulated_quadradic_difference += difference*difference; + + if(fabs(difference) > maximum_difference) { + maximum_difference = fabs(difference); } - if (i == 0) { - // special calculation for r=0 - //Note: the value \phi_{i,j+Nj/2,k} as the replacement of - // \phi_{i-1,j,k} is only correct if Nj is even otherwise the mirrored point - // lies inbetween two known values; additionally not sure if this calculation - // is correct at all (would definitely be fine for cylindrical symmetric calc.) - const int jmirror = (j maximum_difference) { - maximum_difference = fabs(difference); - } + } else { + const double difference = interpolated_density(i,j)/SI::eps0 + + (potential_(i+1,j).value - 2*potential_(i,j).value + + potential_(i-1,j).value)/dr_sq + + (potential_(i+1,j).value - potential_(i-1,j).value)/ + (2*i*dr_sq) + + (potential_(i,j+1).value - 2*potential_(i,j).value + + potential_(i,j-1).value)/dz_sq; - } else { - const int jp1 = j + 1 > potential_.ubound(1) - ? potential_.lbound(1) - : j + 1; // j+1 with periodic guard - const int jm1 = j - 1 < potential_.lbound(1) - ? potential_.ubound(1) - : j - 1; // j-1 with periodic guard + cumulated_quadradic_difference += difference*difference; - const double difference = interpolated_density(i,j,k)/SI::eps0 + - (potential_(i+1,j,k).value - 2*potential_(i,j,k).value + - potential_(i-1,j,k).value)/dr_sq + - (potential_(i+1,j,k).value - potential_(i-1,j,k).value)/ - (2*i*dr_sq) + - (potential_(i,jp1,k).value - 2*potential_(i,j,k).value + - potential_(i,jm1,k).value)/(i*i*dr_sq*dth_sq) + - (potential_(i,j,k+1).value - 2*potential_(i,j,k).value + - potential_(i,j,k-1).value)/dz_sq; - - cumulated_quadradic_difference += difference*difference; - - if(fabs(difference) > maximum_difference) { - maximum_difference = fabs(difference); - } + if(fabs(difference) > maximum_difference) { + maximum_difference = fabs(difference); } } } } const int nr = potential_.extent(0) - 1; - const int nth = potential_.extent(1); - const int nz = potential_.extent(2) - 2; + const int nz = potential_.extent(1) - 2; normalized_difference = - std::sqrt(cumulated_quadradic_difference / (nr * nth * nz)); + std::sqrt(cumulated_quadradic_difference / (nr * nz)); #ifdef debug DEBUG_LEVEL_0("Poisson solver reached a normalized difference of: " + std::to_string(normalized_difference)); @@ -254,37 +210,33 @@ bool PoissonSolver::converged( return normalized_difference < target_accuracy_; } -blitz::Array PoissonSolver::potential() { +blitz::Array PoissonSolver::potential() { // there might be a better way to do this... (if one can do array.memberValue without // explicitely looping) - blitz::Array potentialValues(potential_.lbound(), potential_.extent()); + blitz::Array potentialValues(potential_.lbound(), potential_.extent()); #ifdef debug_level3 DEBUG_LEVEL_3("Extracting potential values"); #endif for(int i = potential_.lbound(0); i <= potential_.ubound(0); ++i) { for(int j = potential_.lbound(1); j <= potential_.ubound(1); ++j) { - for(int k = potential_.lbound(2); k <= potential_.ubound(2); ++k) { - potentialValues(i,j,k) = potential_(i,j,k).value; - } + potentialValues(i,j) = potential_(i,j).value; } } return potentialValues; } -blitz::Array PoissonSolver::interpolateDensityToPotentialGrid( - const blitz::Array density) { +blitz::Array PoissonSolver::interpolateDensityToPotentialGrid( + const blitz::Array density) { // adapted from the external poisson solver (SDS: \\lsdf02.urz.uni-heidelberg.de\SD19H002\karl\src\tools\analysis_jkellerer) - blitz::Array interpolatedDensity(potential_.lbound(), potential_.extent()); + blitz::Array interpolatedDensity(potential_.lbound(), potential_.extent()); interpolatedDensity = 0.; //center values for(int i = potential_.lbound(0)+1; i <= potential_.ubound(0); ++i) { for(int j = potential_.lbound(1); j <= potential_.ubound(1); ++j) { - for(int k = potential_.lbound(2); k <= potential_.ubound(2); ++k) { - interpolatedDensity(i, j, k) = ( - density(i-1, j , k-1) + density(i, j , k-1) + - density(i-1, j , k ) + density(i, j , k ))/4.; - } + interpolatedDensity(i, j) = ( + density(i-1, j-1) + density(i, j-1) + + density(i-1, j ) + density(i, j ))/4.; } } @@ -292,17 +244,12 @@ blitz::Array PoissonSolver::interpolateDensityToPotentialGrid( //values for r=0; charge density has to be single valued at r=0 //therefore all elements in the j index have to be the same fixedIndex = potential_.lbound(0); - for(int j = potential_.lbound(1); j <= potential_.ubound(1); ++j) { - for(int k = potential_.lbound(2)+1; k <= potential_.ubound(2)-1; ++k) { - //might not work that way, would need a dummy variable otherwise - interpolatedDensity(potential_.lbound(0), blitz::Range::all(), k) += - (density(fixedIndex, j, k-1) + density(fixedIndex, j, k))/2.; - } + for(int k = potential_.lbound(1)+1; k <= potential_.ubound(1)-1; ++k) { + //might not work that way, would need a dummy variable otherwise + interpolatedDensity(potential_.lbound(0), k) = + (density(fixedIndex, k-1) + density(fixedIndex, k))/2.; } - //might not work that way (if not needs a loop) - interpolatedDensity(fixedIndex, blitz::Range::all(), blitz::Range::all()) /= - potential_.extent(1); #ifdef debug_level3 DEBUG_LEVEL_3("Max Value in interpolated density array: " + std::to_string(blitz::max(interpolatedDensity))); @@ -313,60 +260,41 @@ blitz::Array PoissonSolver::interpolateDensityToPotentialGrid( } std::shared_ptr PoissonSolver::staticElectricField() { - blitz::TinyVector stepsize = density_binning_.stepsize(); - blitz::TinyVector Eextent = potential_.extent() - - blitz::TinyVector(1,0,1); - blitz::Array Er(potential_.lbound(), Eextent); - blitz::Array Ephi(potential_.lbound(), Eextent); - blitz::Array Ez(potential_.lbound(), Eextent); + blitz::TinyVector stepsize = density_binning_.stepsize(); + blitz::TinyVector Eextent = potential_.extent() - + blitz::TinyVector(1,1); + blitz::Array Er(potential_.lbound(), Eextent); + blitz::Array Ephi(potential_.lbound(), Eextent); + blitz::Array Ez(potential_.lbound(), Eextent); Ephi = 0.; //do calculation of E from the potential and interpolation to //cell center at the same time - for(int j = potential_.lbound(1); j <= potential_.ubound(1); ++j) { - int jp = (j+1 > potential_.ubound(1)) ? potential_.lbound(1) : j+1; - int jm = (j-1 < potential_.lbound(1)) ? potential_.ubound(1) : j-1; - for(int i = potential_.lbound(0); i < potential_.ubound(0); ++i) { - for(int k = potential_.lbound(2); k < potential_.ubound(2); ++k) { - Er(i,j,k) = -(potential_(i+1,j,k ).value - - potential_(i ,j,k ).value + - potential_(i+1,j,k+1).value - - potential_(i ,j,k+1).value) - /(2*stepsize(0)); - Ez(i,j,k) = -(potential_(i ,j,k+1).value - - potential_(i ,j,k ).value + - potential_(i+1,j,k+1).value - - potential_(i+1,j,k ).value) - /(2*stepsize(2)); + for(int i = potential_.lbound(0); i < potential_.ubound(0); ++i) { + for(int k = potential_.lbound(1); k < potential_.ubound(1); ++k) { + Er(i,k) = -(potential_(i+1,k ).value - + potential_(i ,k ).value + + potential_(i+1,k+1).value - + potential_(i ,k+1).value ) /(2*stepsize(0)); - if(i==potential_.lbound(0)) { - Ephi(i,j,k) = -( - potential_(i+1,jp,k ).value - potential_(i+1,jm,k ).value + - potential_(i+1,jp,k+1).value - potential_(i+1,jm,k+1).value) - /((i+1)*stepsize(0)*stepsize(2))/4.; - } else { - Ephi(i,j,k) = -( - (potential_(i ,jp,k ).value - potential_(i ,jm,k ).value + - potential_(i ,jp,k+1).value - potential_(i ,jm,k+1).value) - /(i*stepsize(0)) + - (potential_(i+1,jp,k ).value - potential_(i+1,jm,k ).value + - potential_(i+1,jp,k+1).value - potential_(i+1,jm,k+1).value) - /((i+1)*stepsize(0)) )/(4.*stepsize(1)); - } - } + Ez(i,k) = -(potential_(i ,k+1).value - + potential_(i ,k ).value + + potential_(i+1,k+1).value - + potential_(i+1,k ).value )/(2*stepsize(1)); } } + return std::shared_ptr( new VectorFieldFromArray(Er, Ephi, Ez, - Eextent(0)*stepsize(0), Eextent(2)*stepsize(2))); + Eextent(0)*stepsize(0), Eextent(1)*stepsize(1))); } const CylinderBinning* PoissonSolver::densityBinning() { return &density_binning_; } -void PoissonSolver::setPotential(blitz::Array& potential) { +void PoissonSolver::setPotential(blitz::Array& potential) { // check if the loaded potential has the same size as the potential // specified by the json file if(!blitz::all(potential.length() == potential_.length())) { @@ -381,13 +309,10 @@ void PoissonSolver::setPotential(blitz::Array& potential) { // while the parameter array is most likely starting from 0) const int i_offset = potential.lbound(0) - potential_.lbound(0); const int j_offset = potential.lbound(1) - potential_.lbound(1); - const int k_offset = potential.lbound(2) - potential_.lbound(2); for(int i = potential_.lbound(0); i <= potential_.ubound(0); ++i) { for(int j = potential_.lbound(1); j <= potential_.ubound(1); ++j) { - for(int k = potential_.lbound(2); k <= potential_.ubound(2); ++k) { - potential_(i,j,k).value = potential(i + i_offset,j + j_offset,k + k_offset); - } + potential_(i,j).value = potential(i + i_offset,j + j_offset); } } } diff --git a/src/simulation/cpu_synchronizer.cpp b/src/simulation/cpu_synchronizer.cpp index 396d06d..e2a1ab0 100755 --- a/src/simulation/cpu_synchronizer.cpp +++ b/src/simulation/cpu_synchronizer.cpp @@ -7,14 +7,10 @@ #include "simulation/species.h" #include "simulation/mpi_communication.h" -void CpuSynchronizer::sumToAll(blitz::Array& array, - blitz::Array& last_sync_array) { +void CpuSynchronizer::sumToAll(blitz::Array& array) { int size = array.size(); - blitz::Array delta(array.extent()); - delta = array - last_sync_array; - MPI_Allreduce(MPI_IN_PLACE, delta.data(), size, MPI_DOUBLE, + MPI_Allreduce(MPI_IN_PLACE, array.data(), size, MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD); - last_sync_array += delta; } void CpuSynchronizer::sumToAll(blitz::Array& array) { @@ -77,6 +73,14 @@ void CpuSynchronizer::sumToRoot(blitz::Array& array) { MPI_Reduce(array.data(), nullptr, size, MPI_DOUBLE, MPI_SUM, root, MPI_COMM_WORLD); } +void CpuSynchronizer::sumToRoot(blitz::Array& array) { + int size = array.size(); + if(MpiCommunication::mpi_rank == root) + MPI_Reduce(MPI_IN_PLACE, array.data(), size, MPI_DOUBLE, MPI_SUM, root, MPI_COMM_WORLD); + else + MPI_Reduce(array.data(), nullptr, size, MPI_DOUBLE, MPI_SUM, root, MPI_COMM_WORLD); +} + void CpuSynchronizer::sumToRoot(long int& value) { int size = 1; if(MpiCommunication::mpi_rank == root) { @@ -110,8 +114,8 @@ void CpuSynchronizer::synchronize(Timer* timer, Timer* last_sync_timer) { // array storing the previous timestep void CpuSynchronizer::synchronize(DynamicDensityField* field) { if (field) { - sumToAll(field->sync_time_in_bin_s_); - field->time_in_bin_s_ = field->sync_time_in_bin_s_; + sumToAll(field->sync_number_in_bin_); + field->number_in_bin_ = field->sync_number_in_bin_; field->recalculateDensityArray(); } } diff --git a/src/simulation/current_collector.cpp b/src/simulation/current_collector.cpp index 83676e0..5dad234 100755 --- a/src/simulation/current_collector.cpp +++ b/src/simulation/current_collector.cpp @@ -21,17 +21,16 @@ CurrentCollector::CurrentCollector(const CylinderBinning& position_binning, // sync_phi_positive_crossings(createCrossingsAzimuthal(position_binning)) {} -blitz::Array CurrentCollector::createAreaLongitudinal( +blitz::Array CurrentCollector::createAreaLongitudinal( const CylinderBinning& position_binning) { - const blitz::TinyVector bin_index_min = + const blitz::TinyVector bin_index_min = position_binning.binIndexMin(); - const blitz::TinyVector bin_index_max = + const blitz::TinyVector bin_index_max = position_binning.binIndexMax(); - blitz::Array area_z( + blitz::Array area_z( blitz::Range(bin_index_min(0), bin_index_max(0)), - blitz::Range(bin_index_min(1), bin_index_max(1)), - blitz::Range(0, bin_index_max(2))); + blitz::Range(0, bin_index_max(1))); for (int ir = 0; ir <= area_z.ubound(0); ++ir) { const double dr = position_binning.stepsize()(0); @@ -39,106 +38,100 @@ blitz::Array CurrentCollector::createAreaLongitudinal( const double r2 = (ir + 1) * dr; // const double area_element = // (std::pow(r2, 2) - std::pow(r1, 2)) * M_PI / (area_z.extent(1)); - const double area_element = - (r2*r2 - r1*r1) * M_PI / (area_z.extent(1)); - area_z(ir, blitz::Range::all(), blitz::Range::all()) = area_element; + const double area_element = (r2*r2 - r1*r1) * M_PI; + area_z(ir, blitz::Range::all()) = area_element; } return area_z; } -blitz::Array CurrentCollector::createCrossingsLongitudinal( +blitz::Array CurrentCollector::createCrossingsLongitudinal( const CylinderBinning& position_binning) { - const blitz::TinyVector bin_index_min = + const blitz::TinyVector bin_index_min = position_binning.binIndexMin(); - const blitz::TinyVector bin_index_max = + const blitz::TinyVector bin_index_max = position_binning.binIndexMax(); - blitz::Array crossings_longitudinal( + blitz::Array crossings_longitudinal( blitz::Range(bin_index_min(0), bin_index_max(0)), - blitz::Range(bin_index_min(1), bin_index_max(1)), - blitz::Range(0, bin_index_max(2))); + blitz::Range(0, bin_index_max(1))); crossings_longitudinal = 0.; return crossings_longitudinal; } -blitz::Array CurrentCollector::createAreaRadial( +blitz::Array CurrentCollector::createAreaRadial( const CylinderBinning& position_binning) { - const blitz::TinyVector bin_index_min = + const blitz::TinyVector bin_index_min = position_binning.binIndexMin(); - const blitz::TinyVector bin_index_max = + const blitz::TinyVector bin_index_max = position_binning.binIndexMax(); - blitz::Array area_r( + blitz::Array area_r( blitz::Range(bin_index_min(0), bin_index_max(0) - 1), - blitz::Range(bin_index_min(1), bin_index_max(1)), - blitz::Range(bin_index_min(2), bin_index_max(2))); + blitz::Range(bin_index_min(1), bin_index_max(1))); for (int ir = 0; ir <= area_r.ubound(0); ++ir) { const double dr = position_binning.stepsize()(0); - const double dz = position_binning.stepsize()(2); + const double dz = position_binning.stepsize()(1); const double r = (ir + 1) * dr; - const double area_element = (2 * M_PI * r) / area_r.extent(1) * dz; + const double area_element = (2 * M_PI * r) * dz; - area_r(ir, blitz::Range::all(), blitz::Range::all()) = area_element; + area_r(ir, blitz::Range::all()) = area_element; } return area_r; } -blitz::Array CurrentCollector::createCrossingsRadial( +blitz::Array CurrentCollector::createCrossingsRadial( const CylinderBinning& position_binning) { - const blitz::TinyVector bin_index_min = + const blitz::TinyVector bin_index_min = position_binning.binIndexMin(); - const blitz::TinyVector bin_index_max = + const blitz::TinyVector bin_index_max = position_binning.binIndexMax(); - blitz::Array crossings_radial( + blitz::Array crossings_radial( blitz::Range(bin_index_min(0), bin_index_max(0) - 1), - blitz::Range(bin_index_min(1), bin_index_max(1)), - blitz::Range(bin_index_min(2), bin_index_max(2))); + blitz::Range(bin_index_min(1), bin_index_max(1))); crossings_radial = 0.; return crossings_radial; } -blitz::Array CurrentCollector::createAreaAzimuthal( +blitz::Array CurrentCollector::createAreaAzimuthal( const CylinderBinning& position_binning) { - const blitz::TinyVector bin_index_min = + const blitz::TinyVector bin_index_min = position_binning.binIndexMin(); - const blitz::TinyVector bin_index_max = + const blitz::TinyVector bin_index_max = position_binning.binIndexMax(); - blitz::Array area_phi( + blitz::Array area_phi( blitz::Range(bin_index_min(0), bin_index_max(0)), - blitz::Range(bin_index_min(1), bin_index_max(1)), - blitz::Range(bin_index_min(2), bin_index_max(2))); + blitz::Range(bin_index_min(1), bin_index_max(1))); const double dr = position_binning.stepsize()(0); - const double dz = position_binning.stepsize()(2); + const double dz = position_binning.stepsize()(1); const double area_element = dr * dz; - area_phi(blitz::Range::all(), blitz::Range::all(), blitz::Range::all()) = + area_phi(blitz::Range::all(), blitz::Range::all()) = area_element; return area_phi; } -blitz::Array CurrentCollector::createCrossingsAzimuthal( +blitz::Array CurrentCollector::createCrossingsAzimuthal( const CylinderBinning& position_binning) { - const blitz::TinyVector bin_index_min = + const blitz::TinyVector bin_index_min = position_binning.binIndexMin(); - const blitz::TinyVector bin_index_max = + const blitz::TinyVector bin_index_max = position_binning.binIndexMax(); - blitz::Array crossings_azimuthal( + blitz::Array crossings_azimuthal( blitz::Range(bin_index_min(0), bin_index_max(0)), - blitz::Range(bin_index_min(1), bin_index_max(1)), - blitz::Range(bin_index_min(2), bin_index_max(2))); + blitz::Range(bin_index_min(1), bin_index_max(1))); crossings_azimuthal = 0; return crossings_azimuthal; } void CurrentCollector::collect(particle::Particle* particle, const Coordinate& old_position) { - blitz::TinyVector bin_old = + blitz::TinyVector bin_old = position_binning_.bin(old_position.cylinderEntries()); - blitz::TinyVector bin_new = + blitz::TinyVector bin_new = position_binning_.bin(particle->cylinderPosition().cylinderEntries()); const double weight = particle->weight(); @@ -149,108 +142,103 @@ void CurrentCollector::collect(particle::Particle* particle, } void CurrentCollector::collectRadialMovement( - const blitz::TinyVector& bin_old, - const blitz::TinyVector& bin_new, + const blitz::TinyVector& bin_old, + const blitz::TinyVector& bin_new, const double weight) { if (bin_new(0) < bin_old(0)) { - r_negative_crossings(bin_new(0), bin_old(1), bin_old(2)) += weight; + r_negative_crossings(bin_new(0), bin_old(1)) += weight; } else if (bin_new(0) > bin_old(0)) { - r_positive_crossings(bin_new(0) - 1, bin_old(1), bin_old(2)) += weight; + r_positive_crossings(bin_new(0) - 1, bin_old(1)) += weight; } } void CurrentCollector::collectLongitudinalMovement( - const blitz::TinyVector& bin_old, - const blitz::TinyVector& bin_new, + const blitz::TinyVector& bin_old, + const blitz::TinyVector& bin_new, const double weight) { - if (bin_new(2) < bin_old(2)) { - z_negative_crossings(bin_old(0), bin_old(1), bin_new(2) + 1) += weight; - } else if (bin_new(2) > bin_old(2)) { - z_positive_crossings(bin_old(0), bin_old(1), bin_new(2)) += weight; + if (bin_new(1) < bin_old(1)) { + z_negative_crossings(bin_old(0), bin_new(1) + 1) += weight; + } else if (bin_new(1) > bin_old(1)) { + z_positive_crossings(bin_old(0), bin_old(1)) += weight; } } +// does not work! void CurrentCollector::collectAzimuthalMovement( - const blitz::TinyVector& bin_old, - const blitz::TinyVector& bin_new, + const blitz::TinyVector& bin_old, + const blitz::TinyVector& bin_new, const double weight) { if ((bin_new(1) < bin_old(1)) || ((bin_old(1) == 0) && (bin_new(1) == position_binning_.binIndexMax()(1)))) { - phi_negative_crossings(bin_old(0), bin_new(1), bin_old(2)) += weight; + phi_negative_crossings(bin_old(0), bin_new(1)) += weight; } else if ((bin_new(1) > bin_old(1)) || ((bin_old(1) == position_binning_.binIndexMax()(1)) && (bin_new(1) == 0))) { - phi_positive_crossings(bin_old(0), bin_new(1) - 1, bin_old(2)) += weight; + phi_positive_crossings(bin_old(0), bin_new(1) - 1) += weight; } } -blitz::Array CurrentCollector::negativeCrossingsInZ() const { +blitz::Array CurrentCollector::negativeCrossingsInZ() const { return z_negative_crossings; } -blitz::Array CurrentCollector::positiveCrossingsInZ() const { +blitz::Array CurrentCollector::positiveCrossingsInZ() const { return z_positive_crossings; } -blitz::Array CurrentCollector::negativeCrossingsInPhi() const { +blitz::Array CurrentCollector::negativeCrossingsInPhi() const { return phi_negative_crossings; } -blitz::Array CurrentCollector::positiveCrossingsInPhi() const { +blitz::Array CurrentCollector::positiveCrossingsInPhi() const { return phi_positive_crossings; } -blitz::Array CurrentCollector::negativeCrossingsInR() const { +blitz::Array CurrentCollector::negativeCrossingsInR() const { return r_negative_crossings; } -blitz::Array CurrentCollector::positiveCrossingsInR() const { +blitz::Array CurrentCollector::positiveCrossingsInR() const { return r_positive_crossings; } -blitz::Array CurrentCollector::areaInR() const { +blitz::Array CurrentCollector::areaInR() const { return collector_areas_r; } -blitz::Array CurrentCollector::areaInPhi() const { +blitz::Array CurrentCollector::areaInPhi() const { return collector_areas_phi; } -blitz::Array CurrentCollector::areaInZ() const { +blitz::Array CurrentCollector::areaInZ() const { return collector_areas_z; } -blitz::Array CurrentCollector::currentInZ() const { - blitz::Array current_in_z = z_positive_crossings.copy(); - current_in_z(blitz::Range::all(), blitz::Range::all(), blitz::Range::all()) = - (z_positive_crossings(blitz::Range::all(), blitz::Range::all(), - blitz::Range::all()) - - z_negative_crossings(blitz::Range::all(), blitz::Range::all(), - blitz::Range::all())) / +blitz::Array CurrentCollector::currentInZ() const { + blitz::Array current_in_z = z_positive_crossings.copy(); + current_in_z(blitz::Range::all(), blitz::Range::all()) = + (z_positive_crossings(blitz::Range::all(), blitz::Range::all()) - + z_negative_crossings(blitz::Range::all(), blitz::Range::all())) / (physicalTime() * collector_areas_z(blitz::Range::all(), - blitz::Range::all(), blitz::Range::all())); return current_in_z; } -blitz::Array CurrentCollector::currentInPhi() const { - blitz::Array current_in_phi = phi_positive_crossings.copy(); - current_in_phi(blitz::Range::all(), blitz::Range::all(), - blitz::Range::all()) = - (phi_positive_crossings(blitz::Range::all(), blitz::Range::all(), - blitz::Range::all()) - - phi_negative_crossings(blitz::Range::all(), blitz::Range::all(), - blitz::Range::all())) / + +// does not work due to wrong phi_{positive/negative}_crossings +blitz::Array CurrentCollector::currentInPhi() const { + blitz::Array current_in_phi = phi_positive_crossings.copy(); + current_in_phi(blitz::Range::all(), blitz::Range::all()) = + (phi_positive_crossings(blitz::Range::all(), blitz::Range::all()) - + phi_negative_crossings(blitz::Range::all(), blitz::Range::all())) / (physicalTime() * collector_areas_phi(blitz::Range::all(), - blitz::Range::all(), blitz::Range::all())); return current_in_phi; } -blitz::Array CurrentCollector::currentInR() const { - blitz::Array current_in_r = r_positive_crossings.copy(); - current_in_r(blitz::Range::all(), blitz::Range::all(), blitz::Range::all()) = - (r_positive_crossings(blitz::Range::all(), blitz::Range::all(), - blitz::Range::all()) - - r_negative_crossings(blitz::Range::all(), blitz::Range::all(), - blitz::Range::all())) / + +blitz::Array CurrentCollector::currentInR() const { + blitz::Array current_in_r = r_positive_crossings.copy(); + current_in_r(blitz::Range::all(), blitz::Range::all()) = + (r_positive_crossings(blitz::Range::all(), blitz::Range::all()) - + r_negative_crossings(blitz::Range::all(), blitz::Range::all())) / (physicalTime() * collector_areas_r(blitz::Range::all(), - blitz::Range::all(), blitz::Range::all())); return current_in_r; } + double CurrentCollector::physicalTime() const { return timer_->getDeltaT(); } diff --git a/src/simulation/density_field.cpp b/src/simulation/density_field.cpp index 519e93c..5e27c7f 100755 --- a/src/simulation/density_field.cpp +++ b/src/simulation/density_field.cpp @@ -9,11 +9,20 @@ #include "tools/simulation_time.h" template -blitz::Array initiate4DArray(blitz::Range radial, - blitz::Range phi, +blitz::Array initiate3DArray(blitz::Range radial, blitz::Range longitudinal, blitz::Range energy) { - blitz::Array data(radial, phi, longitudinal, energy); + blitz::Array data(radial, longitudinal, energy); + data = static_cast(0); + return data.copy(); +} + +template +blitz::Array initiate4DArray(blitz::Range radial, + blitz::Range longitudinal, + blitz::Range energy, + blitz::Range pitchangle) { + blitz::Array data(radial, longitudinal, energy, pitchangle); data = static_cast(0); return data.copy(); } @@ -29,24 +38,23 @@ blitz::Array initiate5DArray(blitz::Range radial, return data.copy(); } -blitz::Array initiateVolumeArray( +blitz::Array initiateVolumeArray( blitz::Range radial, - blitz::Range phi, blitz::Range longitudinal, - const blitz::TinyVector& position_spacing) { - blitz::Array volume(radial, phi, longitudinal); + const blitz::TinyVector& position_spacing) { + blitz::Array volume(radial, longitudinal); for (int ir = 0; ir <= volume.ubound(0); ++ir) { const double r1 = ir * position_spacing(0); const double r2 = (ir + 1) * position_spacing(0); - for (int iz = volume.lbound(2); iz <= volume.ubound(2); ++iz) { - const double z1 = iz * position_spacing(2); - const double z2 = (iz + 1) * position_spacing(2); + for (int iz = volume.lbound(1); iz <= volume.ubound(1); ++iz) { + const double z1 = iz * position_spacing(1); + const double z2 = (iz + 1) * position_spacing(1); const double bin_volume = - M_PI * ((r2*r2) - (r1*r1)) * (z2 - z1) / phi.length(); + M_PI * ((r2*r2) - (r1*r1)) * (z2 - z1); - volume(ir, blitz::Range::all(), iz) = bin_volume; + volume(ir, iz) = bin_volume; } } return volume.copy(); @@ -61,33 +69,27 @@ DynamicDensityField::DynamicDensityField( energy_binning_(energy_binning), pitch_angle_binning_(pitch_angle_binning), timer_(timer), - time_in_bin_s_(initiate5DArray( + number_in_bin_(initiate4DArray( blitz::Range(position_binning.radial_binning.binIndexMin(), position_binning.radial_binning.binIndexMax()), - blitz::Range(position_binning.azimuth_binning.binIndexMin(), - position_binning.azimuth_binning.binIndexMax()), blitz::Range(position_binning.longitudinal_binning.binIndexMin(), position_binning.longitudinal_binning.binIndexMax()), blitz::Range(pitch_angle_binning.binIndexMin(), pitch_angle_binning.binIndexMax()), blitz::Range(energy_binning.binIndexMin(), energy_binning.binIndexMax()))), - sync_time_in_bin_s_(initiate5DArray( + sync_number_in_bin_(initiate4DArray( blitz::Range(position_binning.radial_binning.binIndexMin(), position_binning.radial_binning.binIndexMax()), - blitz::Range(position_binning.azimuth_binning.binIndexMin(), - position_binning.azimuth_binning.binIndexMax()), blitz::Range(position_binning.longitudinal_binning.binIndexMin(), position_binning.longitudinal_binning.binIndexMax()), blitz::Range(pitch_angle_binning.binIndexMin(), pitch_angle_binning.binIndexMax()), blitz::Range(energy_binning.binIndexMin(), energy_binning.binIndexMax()))), - density_per_m3_(initiate4DArray( + density_per_m3_(initiate3DArray( blitz::Range(position_binning.radial_binning.binIndexMin(), position_binning.radial_binning.binIndexMax()), - blitz::Range(position_binning.azimuth_binning.binIndexMin(), - position_binning.azimuth_binning.binIndexMax()), blitz::Range(position_binning.longitudinal_binning.binIndexMin(), position_binning.longitudinal_binning.binIndexMax()), blitz::Range(energy_binning.binIndexMin(), @@ -95,8 +97,6 @@ DynamicDensityField::DynamicDensityField( bin_volume_m3_(initiateVolumeArray( blitz::Range(position_binning.radial_binning.binIndexMin(), position_binning.radial_binning.binIndexMax()), - blitz::Range(position_binning.azimuth_binning.binIndexMin(), - position_binning.azimuth_binning.binIndexMax()), blitz::Range(position_binning.longitudinal_binning.binIndexMin(), position_binning.longitudinal_binning.binIndexMax()), position_binning.stepsize())) { @@ -106,7 +106,7 @@ DynamicDensityField::DynamicDensityField( } double DynamicDensityField::density(const Coordinate& position) { - const blitz::TinyVector position_bin = + const blitz::TinyVector position_bin = position_binning_.bin(position.cylinderEntries()); #ifdef debug_level1 @@ -117,7 +117,7 @@ double DynamicDensityField::density(const Coordinate& position) { } #endif - return blitz::sum(density_per_m3_(position_bin(0), position_bin(1), position_bin(2), + return blitz::sum(density_per_m3_(position_bin(0), position_bin(1), blitz::Range::all())); /*/ @@ -136,33 +136,31 @@ double DynamicDensityField::density(const Coordinate& position) { double DynamicDensityField::density(const Coordinate& position, double energy_eV) { - const blitz::TinyVector position_bin = + const blitz::TinyVector position_bin = position_binning_.bin(position.cylinderEntries()); const int energy_bin = energy_binning_.bin(energy_eV); // const double t = timer_->getDeltaT(); - const double time_in_bin = blitz::sum(time_in_bin_s_( - position_bin(0), position_bin(1), position_bin(2), - blitz::Range::all(), energy_bin)); + const double number_in_bin = blitz::sum(number_in_bin_( + position_bin(0), position_bin(1), blitz::Range::all(), energy_bin)); // const long deleted_particles = blitz::sum(deleted_particles_( // position_bin(0), position_bin(1), position_bin(2), // blitz::Range::all(), energy_bin)); - return (time_in_bin) / // - deleted_particles) / - bin_volume_m3_(position_bin(0), position_bin(1), position_bin(2)); + return (number_in_bin) / // - deleted_particles) / + bin_volume_m3_(position_bin(0), position_bin(1)); } bool DynamicDensityField::changedPositionBin( const Coordinate& old_position, const Coordinate& new_position) const { - const blitz::TinyVector old_bin = + const blitz::TinyVector old_bin = position_binning_.bin(old_position.cylinderEntries()); - const blitz::TinyVector new_bin = + const blitz::TinyVector new_bin = position_binning_.bin(new_position.cylinderEntries()); - return !((old_bin(0) == new_bin(0)) && (old_bin(1) == new_bin(1)) && - (old_bin(2) == new_bin(2))); + return !((old_bin(0) == new_bin(0)) && (old_bin(1) == new_bin(1))); } bool DynamicDensityField::changedEnergyBin(double old_energy_eV, @@ -194,50 +192,48 @@ void DynamicDensityField::logMovement(const Coordinate& position, double pitch_angle, double weight) { - const blitz::TinyVector position_bin = + const blitz::TinyVector position_bin = position_binning_.bin(position.cylinderEntries()); const int energy_bin = energy_binning_.bin(energy_eV); const int pitch_angle_bin = pitch_angle_binning_.bin(pitch_angle); - sync_time_in_bin_s_(position_bin(0), position_bin(1), position_bin(2), + sync_number_in_bin_(position_bin(0), position_bin(1), pitch_angle_bin, energy_bin) += weight; } -blitz::Array DynamicDensityField::densityArray() { +blitz::Array DynamicDensityField::densityArray() { #ifdef debug_level3 DEBUG_LEVEL_3("recalc Density array"); #endif // recalculated after a timestep reset (as of now hope that's enough and works correctly) // recalculateDensityArray(); - blitz::TinyVector lowerbound(density_per_m3_.lbound(0), - density_per_m3_.lbound(1), - density_per_m3_.lbound(2)); - blitz::TinyVector extent(density_per_m3_.extent(0), - density_per_m3_.extent(1), - density_per_m3_.extent(2)); - blitz::Array density(lowerbound, extent); + blitz::TinyVector lowerbound(density_per_m3_.lbound(0), + density_per_m3_.lbound(1)); + blitz::TinyVector extent(density_per_m3_.extent(0), + density_per_m3_.extent(1)); + blitz::Array density(lowerbound, extent); - blitz::fourthIndex iE; + blitz::thirdIndex iE; // DEBUG_LEVEL_3("density sum"); density = blitz::sum(density_per_m3_, iE); return density.copy(); } -blitz::Array DynamicDensityField::spectrumArray() { +blitz::Array DynamicDensityField::spectrumArray() { // recalculateDensityArray(); return density_per_m3_; } -blitz::Array DynamicDensityField::timeInBinArray() const { - return time_in_bin_s_; +blitz::Array DynamicDensityField::numberInBinArray() const { + return number_in_bin_; } // blitz::Array DynamicDensityField::deletedParticlesArray() const { // return deleted_particles_; // } -blitz::Array DynamicDensityField::binVolumeArray() const { +blitz::Array DynamicDensityField::binVolumeArray() const { return bin_volume_m3_; } @@ -264,18 +260,17 @@ double DynamicDensityField::timeResolution() const { void DynamicDensityField::recalculateDensityArray() { // SimulationTimer::eventStartPoint("recalcDensityArray"); blitz::firstIndex ir; - blitz::secondIndex iphi; - blitz::thirdIndex iz; - blitz::fourthIndex ipitch; - blitz::fifthIndex iE; + blitz::secondIndex iz; + blitz::thirdIndex ipitch; + blitz::fourthIndex iE; // reduction only seems to work for the last dimension (iE) // -> first reorder (by exchanging iE and ipitch) and afterwards doing // the reduction over iE (which now contains the pitch dimension) // blitz::Array temp((time_in_bin_s_(ir, iphi, iz, ipitch, iE))); - density_per_m3_ = blitz::sum((time_in_bin_s_(ir, iphi, iz, iE, ipitch)), iE) / - bin_volume_m3_(ir, iphi, iz); + density_per_m3_ = blitz::sum((number_in_bin_(ir, iz, iE, ipitch)), iE) / + bin_volume_m3_(ir, iz); // SimulationTimer::eventStopPoint("recalcDensityArray"); } @@ -283,7 +278,7 @@ void DynamicDensityField::recalculateDensityArray() { // particle number blitz::Array DynamicDensityField::sliceSpectrumArray( const Coordinate& position) const { - blitz::TinyVector position_bin = + blitz::TinyVector position_bin = position_binning_.bin(position.cylinderEntries()); // blitz::Array check = density_per_m3_.copy(); @@ -292,25 +287,25 @@ blitz::Array DynamicDensityField::sliceSpectrumArray( // ERROR("splice specturm array: check failed."); // } - return density_per_m3_(position_bin(0), position_bin(1), position_bin(2), + return density_per_m3_(position_bin(0), position_bin(1), blitz::Range(energy_binning_.binIndexMin(), energy_binning_.binIndexMax()-1)); } -blitz::Array DynamicDensityField::sliceTimeInBinArray( +blitz::Array DynamicDensityField::sliceNumberInBinArray( const Coordinate& position, double energy_eV) const { - blitz::TinyVector position_bin = + blitz::TinyVector position_bin = position_binning_.bin(position.cylinderEntries()); int energy_bin = energy_binning_.bin(energy_eV); - return time_in_bin_s_(position_bin(0), position_bin(1), position_bin(2), + return number_in_bin_(position_bin(0), position_bin(1), blitz::Range(0, pitch_angle_binning_.binIndexMax()-1), energy_bin); } // resets the field that logs the new density void DynamicDensityField::resetDynamicDensityField() { - sync_time_in_bin_s_ = 0.; + sync_number_in_bin_ = 0.; } void DynamicDensityField::restartTimer(double time, double delta_t) { @@ -324,15 +319,15 @@ void DynamicDensityField::restartTimer(double time, double delta_t) { timer_->setDeltaT(delta_t); } -void DynamicDensityField::restartTimeInBin(blitz::Array time_in_bin) { - if(!blitz::all(time_in_bin_s_.length() == time_in_bin.length())) { +void DynamicDensityField::restartNumberInBin(blitz::Array number_in_bin) { + if(!blitz::all(number_in_bin_.length() == number_in_bin.length())) { std::stringstream out; - out << "Expected a size of " << time_in_bin_s_.length(); - out << ", received a length of " << time_in_bin.length(); + out << "Expected a size of " << number_in_bin_.length(); + out << ", received a length of " << number_in_bin.length(); out << " for time_in_bin array"; ERROR(out.str()); } - time_in_bin_s_ = time_in_bin.copy().reindex(time_in_bin_s_.lbound()); + number_in_bin_ = number_in_bin.copy().reindex(number_in_bin_.lbound()); } // void DynamicDensityField::restartDeletedParticlesArray( diff --git a/src/simulation/position_binning.cpp b/src/simulation/position_binning.cpp index 0e95bf9..3c0f3f1 100755 --- a/src/simulation/position_binning.cpp +++ b/src/simulation/position_binning.cpp @@ -117,46 +117,40 @@ int BinningWithOverAndUnderflow::binIndexMax() const { CylinderBinning::CylinderBinning(int num_bins_radial, double radius, - int num_bins_azimuthal, int num_bins_longitudinal, double height) : radial_binning(num_bins_radial, radius), - azimuth_binning(num_bins_azimuthal, 2 * M_PI), longitudinal_binning(num_bins_longitudinal, height) {} -blitz::TinyVector CylinderBinning::bin( +blitz::TinyVector CylinderBinning::bin( const blitz::TinyVector& cylinder_position) const { - return blitz::TinyVector( + return blitz::TinyVector( radial_binning.bin(cylinder_position(0)), - azimuth_binning.bin(cylinder_position(1)), longitudinal_binning.bin(cylinder_position(2))); } -blitz::TinyVector CylinderBinning::numBins() const { - return blitz::TinyVector( - radial_binning.numBinsWithoutOverflow(), azimuth_binning.numBins(), +blitz::TinyVector CylinderBinning::numBins() const { + return blitz::TinyVector( + radial_binning.numBinsWithoutOverflow(), longitudinal_binning.numBinsWithoutOverUnderflow()); } -blitz::TinyVector CylinderBinning::stepsize() const { - return blitz::TinyVector(radial_binning.stepsize(), - azimuth_binning.stepsize(), +blitz::TinyVector CylinderBinning::stepsize() const { + return blitz::TinyVector(radial_binning.stepsize(), longitudinal_binning.stepsize()); } -blitz::TinyVector CylinderBinning::numBinsIncludingOverUnderflow() +blitz::TinyVector CylinderBinning::numBinsIncludingOverUnderflow() const { - return blitz::TinyVector( - radial_binning.numBinsWithOverflow(), azimuth_binning.numBins(), + return blitz::TinyVector( + radial_binning.numBinsWithOverflow(), longitudinal_binning.numBinsWithOverUnderflow()); } -blitz::TinyVector CylinderBinning::binIndexMin() const { - return blitz::TinyVector(radial_binning.binIndexMin(), - azimuth_binning.binIndexMin(), +blitz::TinyVector CylinderBinning::binIndexMin() const { + return blitz::TinyVector(radial_binning.binIndexMin(), longitudinal_binning.binIndexMin()); } -blitz::TinyVector CylinderBinning::binIndexMax() const { - return blitz::TinyVector(radial_binning.binIndexMax(), - azimuth_binning.binIndexMax(), +blitz::TinyVector CylinderBinning::binIndexMax() const { + return blitz::TinyVector(radial_binning.binIndexMax(), longitudinal_binning.binIndexMax()); } diff --git a/src/simulation/simulation.cpp b/src/simulation/simulation.cpp index e9f125e..aba6541 100755 --- a/src/simulation/simulation.cpp +++ b/src/simulation/simulation.cpp @@ -188,8 +188,8 @@ void Simulation::start() { #if defined(debug_level1) || defined(debug_level2) || defined(debug_level3) DEBUG_LEVEL_1("Processing timestep: " + std::to_string(timestep)); - DEBUG_LEVEL_1("Leftover events this timestep: " + - std::to_string(leftover_events_time_resolution)); + // DEBUG_LEVEL_1("Leftover events this timestep: " + + // std::to_string(leftover_events_time_resolution)); #endif #ifdef debug @@ -557,7 +557,7 @@ void Simulation::collisionTime(particle::Particle& particle, RandomNumbers* rand particle.indexNextInteration((min_iterator - collision_times.begin())); particle.timeUntilCollision(*min_iterator); -#ifdef debug +#ifdef debug_level1 std::stringstream out; out << "collision times "; out << particle.specie()->name() <<":\n[ "; @@ -604,7 +604,7 @@ interaction::InteractionOutput Simulation::interact( } //maybe put that into the poisson solver -blitz::Array Simulation::chargedensity() { +blitz::Array Simulation::chargedensity() { #ifdef debug_level3 DEBUG_LEVEL_3("Initialize chargedensity Array"); #endif @@ -619,9 +619,9 @@ blitz::Array Simulation::chargedensity() { if(!firstTracked) ERROR("Extracted pointer is null."); - blitz::Array init = firstTracked-> + blitz::Array init = firstTracked-> dynamicDensityField()->densityArray(); - blitz::Array chargeden(init.lbound(), init.extent()); + blitz::Array chargeden(init.lbound(), init.extent()); chargeden = 0.; #ifdef debug_level3 diff --git a/src/simulation/vector_field.cpp b/src/simulation/vector_field.cpp index 4c862a3..3d3707b 100755 --- a/src/simulation/vector_field.cpp +++ b/src/simulation/vector_field.cpp @@ -3,9 +3,9 @@ #include "simulation/coordinates.h" VectorFieldFromArray::VectorFieldFromArray( - const blitz::Array& radial_component, - const blitz::Array& azimuthal_component, - const blitz::Array& longitudial_component, + const blitz::Array& radial_component, + const blitz::Array& azimuthal_component, + const blitz::Array& longitudial_component, double radius, double length) : Fr_(radial_component.copy()), @@ -14,17 +14,16 @@ VectorFieldFromArray::VectorFieldFromArray( binning_(CylinderBinning(radial_component.extent(0), radius, radial_component.extent(1), - radial_component.extent(2), length)) {} CylinderVector VectorFieldFromArray::value(const Coordinate& coordinate) const { - const blitz::TinyVector bin = + const blitz::TinyVector bin = binning_.bin(coordinate.cylinderEntries()); return value(bin); } CylinderVector VectorFieldFromArray::value( - const blitz::TinyVector& bin) const { + const blitz::TinyVector& bin) const { if (Fr_.isInRange(bin)) { return CylinderVector( blitz::TinyVector(Fr_(bin), Fphi_(bin), Fz_(bin))); diff --git a/src/simulation/velocity_distribution.cpp b/src/simulation/velocity_distribution.cpp index 9369487..6c74145 100755 --- a/src/simulation/velocity_distribution.cpp +++ b/src/simulation/velocity_distribution.cpp @@ -138,7 +138,7 @@ CartesianVector VelocityDistributionFromDensityField::rollVelocity( // SIM_INFO("set mu values"); - const blitz::Array mu_values = density_field_->sliceTimeInBinArray(position, energy_eV); + const blitz::Array mu_values = density_field_->sliceNumberInBinArray(position, energy_eV); // std::cout << mu_values; @@ -211,7 +211,7 @@ CartesianVector VelocityDistributionFromDensityField::rollVelocity( // draw pitch angle from DynamicDensityField blitz::Array pitchAngleValues = density_field_-> - sliceTimeInBinArray(position, energy_eV); + sliceNumberInBinArray(position, energy_eV); std::piecewise_constant_distribution pitchAngle_dist( pitchAngleBinBorders_.begin(),