Navigate: ← Features | Multispecies test case tutorial
Multispecies approach implemented in the code is based on the paper "Multi-species Lattice Boltzmann Model and Practical Examples. Short Course material Pietro Asinari PhD."
Equlibrium distribution function for multispecies is given in the paper as fσ(eq)α(ρ,u∗σ)=ωα⋅[sσα+1c2s(eα⋅u∗σ)+12c4s(eα⋅u∗σ)2−1c2s(u∗σ⋅u∗σ)]
where, sσ0=(9−5ϕσ)/4 sσα=ϕσ for 1≤α≤8 and ϕσ=minς(mς)/mσ, pσ=ρσϕσ/3 mσ is molecular weight for species σ.
u∗σ is given as u∗σ=uσ+∑ςm2mσmςBσςBmmxς(uς−uσ) xσ=ρσ/ρ
Relaxation time is given as
λσ=pBmmρ
A semi-implicit Lattice Boltzmann equation is given as,
fσ,+(x+e,t+1)=fσ(x,t)+(1−12)λσ[fσ(eq)−fσ]+12λσ,+[fσ(eq),+−fσ,+]
Variable transformation presented in above paper involves three steps
gσ=fσ−12λσ[fσ(eq)−fσ]
gσ,+=gσ+λσ1+12λσ[fσ(eq)−gσ]
fσ,+=gσ,++12λσ,+fσ(eq),+1+12λσ,+
In back tranformation, to compute feq we need ρ and uσ ρ can be computed directly from g ρ+σ=<gσ,+>
where as the uσ computed by solving the linear system of equation given below
<eigσ,+>=[1+12λσ,+∑ς(χσςx+ς)]q+σ,i−12λσ,+x+σ∑ς(χσςq+ς,i)
where, χσς is, χσς=m2mσmςBσςBσσ
Todo
use for optimized routine
fortran
!West
u_n(1) = - uxstar(s)
!south
u_n(2) = - uystar(s)
!bottom
u_n(3) = - uzstar(s)
!east
u_n(4) = uxstar(s)
!north
u_n(5) = uystar(s)
!top
u_n(6) = uzstar(s)
!bottom south
u_n(7)
!top south
u_n(7)
!bottom north
u_n(7)
!top north
u_n(7)
!bottom west
u_n(7)
!bo
u_n(7)
u_n(7)
u_n(7)
u_n(7)
Navigate: ← Features | Multispecies test case tutorial