IDEAS home Printed from https://ideas.repec.org/a/wsi/ijmpcx/v33y2022i11ns0129183122501479.html
   My bibliography  Save this article

A DSMC program that supports different heterogeneous systems to simulate near-continuum gases

Author

Listed:
  • Chenchen Zhang

    (School of Aeronautics and Astronautics, Shanghai Jiao Tong University, 800 Dong Chuan Road, Shanghai 200240, P. R. China)

  • MinHua Wen

    (Center for High Performance Computing, Shanghai Jiao Tong University, 800 Dong Chuan Road, Shanghai 200240, P. R. China)

  • Bin Zhang

    (School of Aeronautics and Astronautics, Shanghai Jiao Tong University, 800 Dong Chuan Road, Shanghai 200240, P. R. China3Sichuan Research Institute, Shanghai Jiao Tong University, Chengdu 610213, P. R. China)

  • James Lin

    (Center for High Performance Computing, Shanghai Jiao Tong University, 800 Dong Chuan Road, Shanghai 200240, P. R. China)

  • Hong Liu

    (School of Aeronautics and Astronautics, Shanghai Jiao Tong University, 800 Dong Chuan Road, Shanghai 200240, P. R. China)

Abstract

It has become a trend for Direct Simulation Monte Carlo (DSMC) to simulate near-continuum gas, which makes the problem of a large amount of computation more prominent in turn. Moreover, heterogeneous architecture is becoming mainstream for modern supercomputers. Speeding DSMC on heterogeneous systems has been a must consideration for DSMC researchers. However, little research on the DSMC program that supports different heterogeneous systems is available. In this paper, we developed a DSMC program supporting heterogeneous systems through OpenMP4.5, and our codes can execute on many accelerators in theory such as Nvidia GPUs, AMD GPUs and Intel Many Integrated Core (MIC) products. The implementation of our heterogeneous DSMC is elaborated first, and then we explain the algorithm proposed to generate random numbers on accelerators. In addition, the optimization methods, including load-balance and granularity refinement strategy, branch elimination, and particles’ removal and entering, are described in detail, respectively. A shock-bubble interaction (SBI) case under Knudsen number of 1.66789×10−3 is utilized to validate the accuracy of our DSMC and do the performance analysis. An Nvidia RTX 2080 serves as a device, and the results show that our program can not only gain accurate flowfield information, but also perform well under different computing loads. More specifically, the whole speedup ratio of 52∼63 can be obtained relative to a single CPU core, and for the subroutine Collision, the ratio can even reach approximately 90.

Suggested Citation

  • Chenchen Zhang & MinHua Wen & Bin Zhang & James Lin & Hong Liu, 2022. "A DSMC program that supports different heterogeneous systems to simulate near-continuum gases," International Journal of Modern Physics C (IJMPC), World Scientific Publishing Co. Pte. Ltd., vol. 33(11), pages 1-18, November.
  • Handle: RePEc:wsi:ijmpcx:v:33:y:2022:i:11:n:s0129183122501479
    DOI: 10.1142/S0129183122501479
    as

    Download full text from publisher

    File URL: http://www.worldscientific.com/doi/abs/10.1142/S0129183122501479
    Download Restriction: Access to full text is restricted to subscribers

    File URL: https://libkey.io/10.1142/S0129183122501479?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    More about this item

    Keywords

    DSMC; heterogeneous; OpenMP4.5; optimization;
    All these keywords.

    JEL classification:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:wsi:ijmpcx:v:33:y:2022:i:11:n:s0129183122501479. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Tai Tone Lim (email available below). General contact details of provider: http://www.worldscinet.com/ijmpc/ijmpc.shtml .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.