07 December 2022 3 363 Report

Dear All, I'm trying to implement the C-S EOS in my LBM code but am quite stuck and have no idea what to do. According to the literature, g is used to keep the square root positive, but in my code, after 20 iterations, the value in the square root is always negative. In addition, I TRIED MANY combinations of density and g value but all failed. It is also worth mentioning that my code works fine with the original Shan-Chen model without any EOS. Could anyone give me any direction on how to fix this problem, please? Part of my code of psi function is as attached. Thanks in advance.

Similar questions and discussions