FWH icon indicating copy to clipboard operation
FWH copied to clipboard

how to use this code

Open BenjaminDai opened this issue 4 years ago • 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.

BenjaminDai avatar Mar 29 '21 03:03 BenjaminDai

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

weiqishen avatar Mar 29 '21 18:03 weiqishen

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

BenjaminDai avatar Mar 30 '21 06:03 BenjaminDai

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.

weiqishen avatar Mar 30 '21 22:03 weiqishen

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.

BenjaminDai avatar Mar 31 '21 00:03 BenjaminDai

Hi Weiqi, Thanks for sharing the code. I am confused about the FWH equations. Can you share the references of the equations?

asifnafi avatar May 21 '21 17:05 asifnafi

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 https://github.com/weiqishen/FWH/issues/1#issuecomment-749122835

weiqishen avatar May 22 '21 00:05 weiqishen

Thanks a lot !!

asifnafi avatar May 24 '21 15:05 asifnafi

Hi Weiqi, I am wondering if you could share your input file (r150d_a35d_g020_avg.h5)? Thanks in advance.

hsulee avatar Oct 09 '22 12:10 hsulee