I have a trouble with initialising Poiseuille velocity profile on the inlet. I have a rectangular channel with Poiseuille inflow on the left side and pressure outflow conditions on the right. But I get just a constant velocity at the inflow .
Here is my code (I simplified my problem for this purpose to make it more readable): https://drive.google.com/file/d/1ypBYH3nUcKRaAgWonMrSUjfr-wOiX9ZH/view?usp=sharing
I suppose there is some trivial mistake which I overlook, thank you for every help.
is there any particular reason you changed the original line
T distance2Wall = converter.getConversionFactorLength();
to
T distance2Wall = converter.getLatticeLength(ly0_new/2.);
?
In any case, in your setup this results in a deformed poiseuille profile giving you the impression of a constant value. Just restore the line to its original version and it will probably work the way you intended it to.
thank you very much, I thought that distance2Wall is the Radius of the channel, but it is the difference to the nearest node.
Regards,
Frank
Author
Posts
Viewing 3 posts - 1 through 3 (of 3 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