piclas-framework / piclas

PICLas is a parallel, three-dimensional PIC-DSMC solver developed cooperatively by the Institute of Space Systems, Institute of Aerodynamics and Gas Dynamics at the University of Stuttgart and the spin-off boltzplatz. PICLas is a flexible particle-based plasma simulation suite.
https://piclas.readthedocs.io
GNU General Public License v3.0
71 stars 17 forks source link

compilation error (HDG) #8

Closed valentinapessina closed 1 year ago

valentinapessina commented 1 year ago

While I was using the latest version of PICLAS (pulled from github 04.01.2023), I tried to compile with ccmake and I get this error relating to HDG. (DSMC and RESERVOIR are yielding this issue, whereas no problem arises when using e.g., RK3/RK4/Leapfrog)

CMake Error at src/CMakeLists.txt:329 (MESSAGE): Unknown time discretization method for HDG. Call Stack (most recent call first): CMakeLists.txt:277 (INCLUDE)

pnizenkov commented 1 year ago

If you want to couple the HDG solver with DSMC, you simply have to select RK3/RK4/Leapfrog time discretization methods. DSMC can then be added to the simulation at runtime through the parameter UseDSMC = T.

To compile the code only for the DSMC method, you have to choose the equation system PICLAS_EQNSYSNAME = maxwell as well as PICLAS_TIMEDISCMETHOD = DSMC. It does not really make sense but has historic reasons, and we will fix the compilation procedure in the future.

valentinapessina commented 1 year ago

Thank you for the rapid answers. Now it compiles flawlessly.