Skip to content

Finding values at a particular lattice

OpenLB – Open Source Lattice Boltzmann Code Forums on OpenLB General Topics Finding values at a particular lattice

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1983
    bujji
    Participant

    Dear Openlb team,
    I’m trying to find the density at a particular lattice in the domain.
    please suggest me a solution to get the information at a particular lattice cell.

    thanks in advance

    #2866
    albert.mink
    Moderator

    Hi Buji

    <particularCell>.computeRho()

    does the job.
    You also might search in src/ folder the word <density>

    Kind regards
    Albert

    #2871
    bujji
    Participant

    Hi,
    thanks for the reply,
    actually, I’m trying to find the density at the center cell of the channel.

    Please suggest me how to get that particular cell. is there any way to find the lattice cell number.
    For example, In a simple channel (100 X 100 cells), I need to get the details of a cell which is present at the 50th lattice cell (x-direction) and 10th lattice cell (y-direction).

    I didn’t find anything when I search in src/ folder the word <density>

    thanks in advance.

    #2872
    albert.mink
    Moderator

    Hi Bujji

    please have a look to
    example/cavity2d/parallel

    in particular function
    getResults

    For details on that you should investigate the data structure of OpenLB.

    #2874
    bujji
    Participant

    Thanks albert for the quick reply. I’ll look into it.

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