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

The request of the inital data for examples #3

Open
Kim1230 opened this issue Jun 7, 2022 · 5 comments
Open

The request of the inital data for examples #3

Kim1230 opened this issue Jun 7, 2022 · 5 comments

Comments

@Kim1230
Copy link

Kim1230 commented Jun 7, 2022

Hello,
When I want to implement the code on my computer. I find the code needs to open ./initial/u.dat file etc. Are these files will be generated automatically or I need to predefine them? If these files need to be predefined, can you share these files?
Thanks

@dueben
Copy link

dueben commented Jun 7, 2022

Hello,
I cannot look into the code just now but I think there is a switch whether or not the model is started from restart fields (then you need the files), or from rest (then you should not need these files). The model will need some time to spin-up, so there is a point in starting reduced precision analysis from restart files. The model output can be used as restart files at a certain point in time. Does this help?
All the best,
Peter

@Kim1230
Copy link
Author

Kim1230 commented Jun 8, 2022

Thanks for your response. I have two questions that need your help. The first question is when I want to read the code with the associated paper rpe v5: an emulator for reduced floating-point precision in large numerical simulations. I can't understand the real meaning of some attributes in the code. Such as
image
. The attribute g you have declared but doesn't use in the code. I just wanna know if there has some detailed explananation or paper that I should pre-read to understand the code?
And the second question is that what tool you used to display the output?
Thanks a lot

@dueben
Copy link

dueben commented Jun 8, 2022

Slip is a parameter that defines whether free-slip or no-slip boundary conditions are used. g is the gravitational acceleration, rho0 had something to do with density but both of the parameters may not be used in the final version of the code. h0 is the offset of the density of the fluid, I think, as in h=h0+h'

I used gnuplot to plot the results a couple of years ago... but the files have the form of a table and are probably also plotable with other tools.

"RHS" is standing for "Right Hand Side" of the equation.

@samhatfield
Copy link
Member

You might also like to consult this alternative version of the shallow water model, which is based on the reference one in this repository: https://github.com/samhatfield/fugaku_toys/tree/master/shallow_water

It's simpler in some respects and includes a script for converting the model output to NetCDF. But it doesn't have the Reduced Precision Emulator. You will also need to change the compiler to GNU or something, since it is designed for running on Fugaku.

@Kim1230
Copy link
Author

Kim1230 commented Jun 9, 2022

Thanks for your response. And I have a math problem to understand the code and the associated paper. The code
image
I surf on the line and find the Bernoulli principle and can't deduce to the Bernoulli potential. Can you give me some references?
And the output of the file.
image
it will have h(i,j), dh(i,j,1) and dh(i,j,2). Why it has dh(i,j,1) and dh(i,j,2)? Is that becuase of the Adams-Bashforth method?
Waiting for your reponse
Thanks!

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