galileiTelescope gives NaNs

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

galileiTelescope gives NaNs

Gabor
I used
[new_E_ftfxfy_e] = galileiTelescope(obj,E_ftfxfy_e,'magnification',0.25);
to reduce the beam size. The result only contains NaNs.
What could be the problem? (The input E_ftfxfy_e only contains numbers, no NaNs.)
Thanks
Reply | Threaded
Open this post in threaded view
|

Re: galileiTelescope gives NaNs

Gabor
If I use
[new_E_ftfxfy_e] = galileiTelescope(obj,E_ftfxfy_e,'magnification',0.25,'plotIntegratedProfiles',1);
the detectors plot is updated with the reduced beam's profiles, but the new_E_ftfxfy_e is still contains only NaNs.
Reply | Threaded
Open this post in threaded view
|

Re: galileiTelescope gives NaNs

tinolang
Administrator
In reply to this post by Gabor
Hi, what is the input beam size?
Tino Lang
Reply | Threaded
Open this post in threaded view
|

Re: galileiTelescope gives NaNs

Gabor
Hi,

The input is the output of the simulation using:

%% computational parameters

obj('Nx',1024,'xWindow',0.01,...
    'Ny',128,  'yWindow',0.01,...
    'Nt',512, 'tWindow',5e-13,'shiftFreqWindow',0,...
    'Nz',200, 'propagationLength', 0.0002,...
    'GPUOn',0, 'abortIntensity', inf,...          
    'showResultEach',10, 'showProgress',1);

%% input pulse definition

obj({'pulse1','EorI',0.002,'polarization','o','centerWavelength',8e-07,...
     'pulseDuration',5e-14,'GD',0,'GDD',0,'TOD',0,'Phase',0,'beamShape_t','gauss',...
     'beamRadius_x',0.002,'beamRadius_y',0.002,...     %please choose a reasonable value in y
     'shift_x',0,'shift_y',0,...
     'alpha_x',0,'alpha_y',0,...
     'slant_x',0,'slant_y',0,...
     'radiusOfCurvature_x',0,'radiusOfCurvature_y',0,...
     'beamShape_x',{'gauss'},'beamShape_y',{'gauss'}});
Reply | Threaded
Open this post in threaded view
|

Re: galileiTelescope gives NaNs

Gabor
Even if I change the computational parameters to this (to get better fy sampling):

obj('Nx',256,'xWindow',0.01,...
    'Ny',256,  'yWindow',0.01,...
    'Nt',512, 'tWindow',5e-13,'shiftFreqWindow',0,...
    'Nz',200, 'propagationLength', 0.0002,...
    'GPUOn',0, 'abortIntensity', inf,...                
    'showResultEach',10, 'showProgress',1);

The result is the same. The detector plot is updated with the reduced size beam, but the actual results file still only contains NaNs.
Reply | Threaded
Open this post in threaded view
|

Re: galileiTelescope gives NaNs

tinolang
Administrator
In reply to this post by Gabor
I check this and there was a bug in the code.
Please try this bugfixed version with your parameters.

chi3D.p

I added a quick example how to use the telescope method in the example section of the forum:
http://chi23d-forum.2362115.n4.nabble.com/example-Galilei-Telescope-tp174.html

Best
Tino
Tino Lang
Reply | Threaded
Open this post in threaded view
|

Re: galileiTelescope gives NaNs

Gabor
Hi, it's working now. Thank you for the quick fix