Skip to content

Poiseuille2D Inflow

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4966
    František Prinz
    Participant

    Hi,

    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.

    Regards
    Frank

    #4972
    Nicolas
    Participant

    Hi Frank,

    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.

    Regards,

    Nicolas

    #4973
    František Prinz
    Participant

    Hi Nicolas,

    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

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.