how to use this code
BenjaminDai opened this issue · 8 comments
Hi, Weiqi,
I successfully complied your code on my PC with Ubuntu18.04, thanks for sharing. There is a question about how to use this code to do computation. Could you explain what kind of data file does this code read in, or how to use this code with other CFD software? Thanks.
Hi Benjamin,
The input file format is HDF5 written by the inhouse CFD solver HiFiLES. The structure of the file can be inferred from the reader.cpp file in this repository. Basically, the file should contain metadata under the root group: fields(rho u v w p), dt (sampling time step). The file should also include the following dataset: coord (cell center coordinate of the fwh surface), normal (normal vector of the cells on the fwh surface), data (flow field data at the cell center on the fwh surface), area (area of the cells on the fwh surface). It should be easy to understand if you know a little about the HDF5 format. If you want, you can write your own reader to adapt to data file from any solver.
Thanks,
Weiqi
Weiqi,
Thank you for your patient and detailed reply, it helps a lot. And by the way, I am confused about the relation between the inhouse CFD solver HiFiLES you mentioned and the open source CFD software HiFiLES developed by Stanford University, are they the same thing?
Have a nice day!
Benjamin
Weiqi,
Thank you for your patient and detailed reply, it helps a lot. And by the way, I am confused about the relation between the inhouse CFD solver HiFiLES you mentioned and the open source CFD software HiFiLES developed by Stanford University, are they the same thing?
Have a nice day!
Benjamin
The HiFiLES code in my repository was forked from the Stanford HiFiLES repository. I rewrote a large portion of the code and added many new features.
That's awesome. About half a year ago, I downloaded the open-source HiFiLES. But the compilation didn't work, and one of the developer Jacob Crabill told me that HiFiLES hasn't been developed in many years. He suggested me try a more fully-featured solver. After that, I gave up HiFiLES. Now I see what you have done, I really think your work are brilliant.
Hi Weiqi,
Thanks for sharing the code. I am confused about the FWH equations. Can you share the references of the equations?
Hi Weiqi,
Thanks for sharing the code. I am confused about the FWH equations. Can you share the references of the equations?
You can go to this post for references
#1 (comment)
Thanks a lot !!
Hi Weiqi, I am wondering if you could share your input file (r150d_a35d_g020_avg.h5)? Thanks in advance.