Skip to content

retrieve data at specific points

OpenLB – Open Source Lattice Boltzmann Code Forums on OpenLB General Topics retrieve data at specific points

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #4260

    Dear Admin,

    I am just wondering how to get the density at specific points?
    Currently, I tend to use the example “cylinder2d.cpp”.

    However, instead of manually entering all the points I am interested in, is there anyway to retrieve the coordinates of all locations with a specific material number? i.e.,

    AnalyticalFfromSuperLatticeF2D<T, DESCRIPTOR> intpolateDensity( density, true );
    T points_out = superGeometry.getCoordsFromMaterialNumber(5);
    T densities_out[points_out.size()]
    intpolateDensity( &densities_out,points_out );


    Is there any function that does “getCoordsFromMaterialNumber” does?


    • This topic was modified 5 years, 1 month ago by lollipopcorn.

    No, there isnt. For it, one would have to work with lattice Coordinates which are 4D in 3D applications due to the parallel data structure. We decided not to provide a function like this since it would result in very bad performce in the parallel case. Instead, we program static functors which will be relased with the next version. They might be of help for you.


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