incEquilibrium
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › incEquilibrium
- This topic has 7 replies, 2 voices, and was last updated 6 years, 7 months ago by mathias.
-
AuthorPosts
-
June 16, 2018 at 3:58 am #1978chrisMember
Hello, 🙂
I would like to know about the function incEquilibrium. 😮 Which physical value is related to the return value of the function?
Thank you in advance.
Chris
June 16, 2018 at 9:23 am #2839mathiasKeymasterHi,
incEquilibrium computes f^eq_inc – t_i, where t_i are the lattice weights. That is a model for incombressible flows. The units are the some as for the the standard LBM f^eq. Please have a look in the book of Krüger. There is a section un unit conversation.
Best
MathiasJune 18, 2018 at 9:08 am #2841chrisMemberThank you again for your help!
In the line 353 of dynamics.hh, the pressure is calculated as p = rho / invCs2, which is calculated as I expect.
However, in the line 450 of util.h, the lattice pressure is calculated by p = (rho-1) * Cs2.
The difference between rho and rho-1 comes from the difference between pressure and lattice pressure?
Then, is there any reason that the lattice pressure is defined by using the factor of rho-1 instead of rho?Best,
ChrisJune 18, 2018 at 10:01 am #2842mathiasKeymasterNo, the difference come from that in OpenLB the distribution is stored as f_OpenLB = f – f^eq. Therefore, also the collision operation is presented in a different way.
Best
MathiasJune 18, 2018 at 11:52 am #2844chrisMemberYour equation f_OpenLB = f – f^eq means Cell[iPop] = f_iPop – t_iPop? or it is something else?
In openLB, I have found two expressions to calculate pressure.
1) p = rho / invCs2 which can be reduced to p = rho * Cs2
2) p = (rho-1) * Cs2.
Do you mean 1) is the usual pressure and 2) is the special pressure only for the codes of openLB?Best
ChrisJune 18, 2018 at 1:47 pm #2845mathiasKeymasterYour equation f_OpenLB = f – f^eq means Cell[iPop] = f_iPop – t_iPop? or it is something else?
A: That is right!In openLB, I have found two expressions to calculate pressure.
1) p = rho / invCs2 which can be reduced to p = rho * Cs2
2) p = (rho-1) * Cs2.
Do you mean 1) is the usual pressure and 2) is the special pressure only for the codes of openLB?
A: No, that depends on the actall model.June 18, 2018 at 2:07 pm #2846chrisMemberThank you, Mathias!
I have found the functions “incBgkCollision” and “constRhoBgkCollision”. I suppose that the former is related to the incEquilibrium [Zou et al., 1995]. Is this correct?
Then, what is the related work to the latter?
Best,
ChrisJune 18, 2018 at 3:11 pm #2847mathiasKeymasterHi Chris,
The first is right if I remember well. The latter is just a projection to a mean pressure=0 (rho=1). It is quite natual to do, so I have no idea where it comes form. I think, I have a little not on that in my thesis.
Best
Mathias -
AuthorPosts
- You must be logged in to reply to this topic.