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.
I meant there was still a no-slip boundary condition on the top and on the bottom of the domain. I was using openlb 1.1.
i downloaded openlb 1.2 yesterday and indeed it worked perfectly well with your comments. thank you!
But how come it went wrong with openlb1.1 ?
Author
Posts
Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok