Skip to content

why is the defineRho in VelocityBM empty?

OpenLB – Open Source Lattice Boltzmann Code Forums on OpenLB General Topics why is the defineRho in VelocityBM empty?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1760
    Leaf
    Member

    hey, guys,rnI got a problem in openLB code, my openLB version is olb-0.8r0. When I traced the code process of Cavity2D, I found that the defineRho function used in setBoundaryValues is empty. Won’t it cause any problem? Looking for your Help. Thank you so much.rnrnrnHere is the function code, which locates in momentaOnBoundaries.hh file.rnrn

    Code:
    template<typename T, template<typename U> class Lattice,rn int direction, int orientation>rnvoid VelocityBM<T,Lattice,direction,orientation>::defineRho (rn Cell<T,Lattice>& cell, T rho_ )rn{ }
    #2145
    mathias
    Keymaster

    Hi openlb12,rnrn For velocity boundary cells the density is to be interpolated and therefore rho is not to be set. So the code is correct.rnrnMathias

    #2146
    Leaf
    Member

    thank you so much

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.