Reply To: Extract Lattice data
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › Extract Lattice data › Reply To: Extract Lattice data
July 21, 2021 at 10:32 pm
#5839
Adrian
Keymaster
The [iC, iX, iY] you get from the cuboid geometry loop are lattice coordinates that can be converted to physical coordinates via getPhysR. The additional lines physCord[0] = double(iX)*cuboidGeometry.getMinDeltaR();
are wrong – you would also need to add the cuboid start point. However, simply use getPhysR with latticeR set to [iC, iX, iY].
- This reply was modified 3 years, 6 months ago by Adrian.