Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imaginary value of ne_tilda #35

Closed
AreWeDreaming opened this issue Oct 5, 2020 · 7 comments
Closed

Imaginary value of ne_tilda #35

AreWeDreaming opened this issue Oct 5, 2020 · 7 comments

Comments

@AreWeDreaming
Copy link
Collaborator

I could make use of the free NERSC time this weekend and I managed to get AORSA calculations for 11 mode numbers. Now I am trying to calculate the density perturbations in 3D space. If I am not mistaken, this should be completely analogous to the electric field, and I just have to carry out the sum over mode numbers, e.g. (3) from Jaeger et al (2002). However, this would mean that the n_tilda in Efield_2D.vtk is a Fourier coefficient and should be complex. But in the output, I can only find ntilda_e_real and there is no entry for ntilda_e_imag.

@cornwalllau
Copy link

This is outside my expertise as I never done this. @ntsujii : How did you do this for your thesis? There is a file called naoto_2D, which I always assumed contained this information, but I am not sure.

@AreWeDreaming
Copy link
Collaborator Author

Ok so I looked through the code, and I guess @ntsujii told AORSA to carry out the sum for him. In this case, it uses the complex ntilda_e. Unfortunately, the imaginary part is not written out anywhere, meaning I have to redo all of my calculations.

@ntsujii
Copy link

ntsujii commented Oct 7, 2020

You do not need to redo all your calculations. All the information is in the "fpm" file. You just need to modify and rerun the summation part with the "nphi_sum_only?" option, takes little time with, say, 16x16 processors.

Honestly, I rarely used the summation feature of AORSA. I have my own suite of codes to do summation for different antenna spetra (with coupling of higher nphi somehow accounted for), synthesize pci signal, generate silo file of ntilde and electric field for visit, and so on. These are simple, computationally inexpensive task that is more easier and flexible to do locally than on a cluster.

Not sure if my code is user-friendly, but John has all the copies.

@AreWeDreaming
Copy link
Collaborator Author

I also do all the summing in postprocessing. Which means I have not one, but 11 fpm files. I am not sure how to tell this AORSA. I'll see if I can extract the ntilda from the fpm files myself. Thanks for the hint.

@ntsujii
Copy link

ntsujii commented Oct 7, 2020

We use to specify multiple nphi values in one run, in which case, all nphis are stored in one fpm file. Did the convention change at some point? You cannot use the aorsa summation feature in that case. Anyway, shouldn't be a problem if you do the postprocessing yourself. Everything is contained in fpm, so in fact, this is the only output file you need to keep.

@AreWeDreaming
Copy link
Collaborator Author

My cases are pretty big, so I submit each toroidal mode number separately. This way I can have multiple calculations running separately.
My initial cases where about 50k CPU hours, so the 11 mode numbers I use would be 550k CPU hours, which is harder to fit into a single job at NERSC. Especially with the current debug mode active at NERSC, which limits the number of Haswell cores to below 500, splitting the toroidal mode numbers is the only way to go.

@AreWeDreaming
Copy link
Collaborator Author

Addressed in #36.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants