Skip to content

shanChenForcedPostProcessor2D

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #5728
    Gloriousface
    Participant

    Hello,all

    I’ve been watching ShanChenForcedPostProcessor2D recently, and I don’t quite understand the following line of code:

    rhoField[0][cell.getCellId()] = cell.computeRho()*rho0[0]

    What density is calculated by this density field, and why is the multiplication of two densities?

    Thanks

    #5729
    mathias
    Keymaster

    It scales the desity to e.g. physical units while the computation always uses lattice units where who is scaled to rho.

    #5730
    Gloriousface
    Participant

    Sorry, I don’t quite understand the meaning of scaling density. Could you explain it in more detail?

    #5736
    Gloriousface
    Participant

    Hello,all

    I have a few code in ShanChenForcedPostProcessor2D that I don’t understand very much.

    util::intersect ( x0, x1, y0, y1,
    x0_, x1_, y0_, y1_,
    newX0, newX1, newY0, newY1)

    What are the functions of these codes,and What do x0 and other symbols mean?
    Thanks

    #5753
    Adrian
    Keymaster

    util::intersect computes the intersection between cuboids (x0,x1)x(y0,y1) and (x0_,x1_)x(y0_,y1_).

    #5772
    Gloriousface
    Participant

    Thank you very much for your reply.Where do the values of the eight parameters come from? I can’t find out where to assign values to these parameters. In addition, do you mean two sets of lattices by two cuboids?

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