I am using openLB for my thesis but I am completely new to it and to C++ , so I’m struggling with a pretty simple problem. I hope you could help me out with this.
In the cylinder2D example, I would like to add a constant inlet velocity profile (possibly increasing with time) instead of a Poiseuille profile. What changes should I do in the cylinder2D.cpp file ?
I’ve read some topics with similar questions but I didn’t manage to implement it.
you can use a const analytical functor. They are used in the some example to fix the outflow pressure. Please, also have a look in our documentation on functors. Last but not least, consider to come to our next spring school which will help you to get started!
Thank you for your answer, I managed to get what I wanted!
Then, I would have another question: I would like to have a slip condition on the top and on the bottom of my domain, so I added this line where the boundary conditions are defined (velocity and pressure):
Please,explain exactly what iyou think is going wrong. What version of OpenLB are you using? Is it the latest. We have tested the method serveral times.