chabner / gaussianBeam-field

2 stars 1 forks source link

don't know how to run #1

Open zhangke97 opened 3 years ago

zhangke97 commented 3 years ago

Hello, I want to reappear the result of the papers and . I want to run it for some results, but I don't know how to use the project. Please help me. Thank you.

chabner commented 3 years ago

Hey, I know it is not that clear how to run the code, I hope that in the future I will have a more clear way for how to run the code. Anyway, first you must have NVIDIA graphic card and MATLAB installed. Open MATLAB, and make sure that all the directory on the path. run buildMex on MATLAB. If you have complied the files successfully, you can try the examples in the examples directory. If you have any question you are welcomed to ask.

zhangke97 commented 3 years ago

Got it, and I will try again. Thank you very much! 

------------------ Original ------------------ From: chabner @.> Date: Wed,Aug 18,2021 4:19 PM To: chabner/gaussianBeam-field @.> Cc: Janck @.>, Author @.> Subject: Re: [chabner/gaussianBeam-field] don't know how to run (#1)

Hey, I know it is not that clear how to run the code, I hope that in the future I will have a more clear way for how to run the code. Anyway, first you must have NVIDIA graphic card and MATLAB installed. Open MATLAB, and make sure that all the directory on the path. run buildMex on MATLAB. If you have complied the files successfully, you can try the examples in the examples directory. If you have any question you are welcomed to ask.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

ryliu1 commented 2 years ago

Hello,I have complied the examples in the examples directory successfully ! But I don't know the unit of parameters in the code: boxDepth, vx, dl, MFP, k. And I don't know wavelength. Can you help me? Thank you.

chabner commented 2 years ago

Hello, glad to hear that the code is compiled well :) I am usually setting the wavelength to be 1, so that k - the wavenumber, is 2pi. Then, everything is relative to the wavelength. So for example if MFP is equals to 4, and k = 2pi, it means that the MFP is 4 wavelength long.

Good luck!

ryliu1 commented 2 years ago

Thank you for your answer ! But I still have a question. What's the unit of vx? Is it also a multiple of wavelength?

chabner commented 2 years ago

In NF setup, vx is indeed a multiple of wavelength. In FF setup, it defined such that vx^2 + vy ^2 (+ vz^2 in 3d) = 1, since it defines a direction.

ryliu1 commented 2 years ago

Got it! Thank you very much!