Ion injector and bug fix in stepping
This commit is contained in:
@@ -70,8 +70,6 @@ def plotElectronDensityVsZ(filename, E_th_max, E_beta_min, filename_output):
|
||||
plot_bins, plot_data = makeBarPlotData(n_secondary, zmins, zmaxs)
|
||||
ax.plot(plot_bins - plot_bins[0], plot_data/1E6, '-.', label="secondary")
|
||||
|
||||
ax.set_ylim((5E-3, 1E6))
|
||||
|
||||
ax.set_yscale("log")
|
||||
|
||||
ax.set_xlabel(r"Distance to rear wall $z$ [m]")
|
||||
|
||||
@@ -13,11 +13,6 @@ namespace IO {
|
||||
|
||||
Fields::Density denstiy(const Parameter& parameter)
|
||||
{
|
||||
//blitz::Array<double,2> data(40,180);
|
||||
//data = 0.;
|
||||
//data(blitz::Range(0,1),blitz::Range(2,7)) = 1.;
|
||||
//return Fields::Density(data);
|
||||
|
||||
std::string filename = std::string(
|
||||
parameter.document.first_element_by_path(
|
||||
"Parameters/Input/Density").child_value("Filename"));
|
||||
@@ -25,6 +20,7 @@ Fields::Density denstiy(const Parameter& parameter)
|
||||
std::string path = std::string(
|
||||
parameter.document.first_element_by_path(
|
||||
"Parameters/Input/Density").child_value("H5Path"));
|
||||
|
||||
std::cout << path << std::endl;
|
||||
HighFive::File f(filename, HighFive::File::ReadOnly);
|
||||
HighFive::DataSet dataset = f.getDataSet(path);
|
||||
|
||||
@@ -38,6 +38,8 @@ int main(int argc, char *argv[]){
|
||||
|
||||
Fields::ElectricField efield_interpolated = Fields::interpolateOnGrid(efield);
|
||||
|
||||
efield_interpolated.data_r_ = 0.;
|
||||
|
||||
IO::save(potential, parameter);
|
||||
IO::save(efield_interpolated, parameter);
|
||||
IO::save(interpolated, parameter);
|
||||
|
||||
Reference in New Issue
Block a user