Skip to content

How to access the basic values?

OpenLB – Open Source Lattice Boltzmann Code Forums on OpenLB General Topics How to access the basic values?

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

    Dear Community,

    In any lattice boltzmann simulations, we have (x,y,z) location of the lattice nodes and n values associated with the populations.

    This data should be is N*d*n matrix where N is the number of nodes, d the dimension and n the number of populations.

    How can I access and print this data?

    I need this for debugging and I can’t seem to find a way to do it in a straightforward manner.



    You can access the physical location of each discrete lattice location using the CuboidGeometry::getPhysR method. If you need this in the described matrix format you can generate it using this information by e.g. assigning a globally unique cell ID as a combination of global cuboid index and block-local cell ID (obtainable via BlockStructure::getCellId).

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