public pure function getEqByDensVel(dens, vel, layout) result(equil)
Calculate the equilibrium distribution function in all directions
The equilibrium distribution function is:\n
feqi=wiρ(1+→ci⋅→uc2s+(→ci⋅→u)22c4s−→u⋅→u2c2s)
where wi is the weight in each direction,\n
ρ is the macroscopic value of density,\n
cs is the speed of sound,\n
→ci is the lattice unit velocity in each direction,\n
→u is the macroscopic value of velocity.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.