Reply To: Unit conversion
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › Unit conversion › Reply To: Unit conversion
June 6, 2021 at 10:33 pm
#5711
Adrian
Keymaster
SuperLattice(2,3)D::defineRhoU
sets the rho and u moments of the indicated cells in lattice unit values given by the passed analytical functor. How these moments relate to the actual population values depends on the selected dynamics and momenta of each individual cell. No unit conversion is performed so if you pass a SI-relative analytical functor to either defineRhoU
or iniEquilibrium
you will get wrong results.
If you want to set e.g. the velocity moment of some set of cells to a value in SI units you will need to scale the value using UnitConverter::getLatticeVelocity
.
- This reply was modified 3 years, 3 months ago by Adrian.