-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
In the transverse electric field of the beam, a Multigrid can be chosen and a rectangular grid can be given as target grid input (target_grid_beam). When one of the two dimensions of the rectangular target grid input is too small compared to the other one, you can get this error (you can find attached the beam.beam (beam_error.beam.txt) file and the chamber (FCC_ee_chamber_09mm.mat.txt) used for the simulation):
Traceback (most recent call last):
File "/pool/condor/dir_38513/main.py", line 63, in <module>
sim = BuildupSimulation()
File "/afs/cern.ch/work/l/lusabato/sim_workspace_2022_05/PyECLOUD/buildup_simulation.py", line 87, in __init__
) = init.read_input_files_and_init_components(
File "/afs/cern.ch/work/l/lusabato/sim_workspace_2022_05/PyECLOUD/init.py", line 222, in read_input_files_and_init_components
beamtim = beatim.beam_and_timing(b_par.flag_bunched_beam, b_par.fact_beam, b_par.coast_dens, b_par.q_part, b_par.beam_field_file, cc.lam_th,
File "/afs/cern.ch/work/l/lusabato/sim_workspace_2022_05/PyECLOUD/beam_and_timing.py", line 270, in __init__
PyPICobj = PIC_MG.AddTelescopicGrids(pic_main=PyPICmain, f_telescope=f_telescope_beam, target_grid=target_grid_beam,
File "/afs/cern.ch/work/l/lusabato/sim_workspace_2022_05/PyPIC/MultiGrid.py", line 301, in __init__
super(AddTelescopicGrids, self).__init__(pic_main=pic_main, grids=grids, sparse_solver=sparse_solver)
File "/afs/cern.ch/work/l/lusabato/sim_workspace_2022_05/PyPIC/MultiGrid.py", line 172, in __init__
pic_list.append(AddInternalGrid(pic_list[-1], x_min_internal, x_max_internal, y_min_internal,
File "/afs/cern.ch/work/l/lusabato/sim_workspace_2022_05/PyPIC/MultiGrid.py", line 26, in __init__
raise ValueError('The internal grid is outside the chamber!')
ValueError: The internal grid is outside the chamber!
Increasing the value of the smallest dimension of the rectangular target grid, you can avoid the error (you can find attached the beam.beam (beam_corrected.beam.txt) file).
beam_corrected.beam.txt
FCC_ee_chamber_09mm.mat.txt
beam_error.beam.txt
Metadata
Metadata
Assignees
Labels
No labels