Reply To: Unit conversion
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › Unit conversion › Reply To: Unit conversion
Thank you very much for your reply. I’m simulating two-component flow and trying to apply pressure boundary to the outlet, but there are two problems I don’t quite understand.
1.The initial density and initial velocity of each component are defined in prepareLattice function. How to define the initial density of inlet and outlet?
2.Is the initial density of the inlet of the two lattices consistent?
3.I set the following statement in the program to achieve the pressure boundary
setLocalPressureBoundary<T,DESCRIPTOR>(sLatticeOne, omega, superGeometry, 4);
setLocalPressureBoundary<T,DESCRIPTOR>(sLatticeTwo, omega, superGeometry, 4);
Do I need other statements, such as defineU?