parabolic inlet

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
dimitri14
Posts: 38
Joined: Tue Jan 03, 2023 10:25 am

parabolic inlet

Post by dimitri14 »

Hello i'm trying to WRITE a parabollic velocity inlet as described on the following picture
Image
i have read

Code: Select all

https://www.code-saturne.org/forum/viewtopic.php?p=3675&hilit=inlet+parabolic#p3675
but my GUI seems to be different
regards
Attachments
question.png
Yvan Fournier
Posts: 4185
Joined: Mon Feb 20, 2012 3:25 pm

Re: parabolic inlet

Post by Yvan Fournier »

Hello,

Can't see the linked image. I don't see where is the difficulty here. Did you try setting the formula you need ? Also check the rabbit showing available variables.

Best regards,

Yvan
dimitri14
Posts: 38
Joined: Tue Jan 03, 2023 10:25 am

Re: parabolic inlet

Post by dimitri14 »

Thanks for the help

In the post

Code: Select all

https://www.code-saturne.org/forum/viewtopic.php?p=3675&hilit=inlet+parabolic#p3675
user law was based on (sic)analytic functions vx(x,y,z), vy(x,y,z) and vz(x,y,z) (in Cartesian coordinates)".
in my case it 'd be vx=35,693*y*(0,41-y), vy=0 and vz=0.

However in my GUI the user law is defined as

Code: Select all

u_norm=
So i wondering if

Code: Select all

u_norm=35,693*y*(0,41-y)
does work?
Regards
Yvan Fournier
Posts: 4185
Joined: Mon Feb 20, 2012 3:25 pm

Re: parabolic inlet

Post by Yvan Fournier »

Hello,

In the GUI, you also have a second option for the flow direction: either normal to the inlet, a given vector direction, or a second user function. So you can combine the direction and norm definitions to get the desired velocity profile.

Best regards,

Yvan
dimitri14
Posts: 38
Joined: Tue Jan 03, 2023 10:25 am

Re: parabolic inlet

Post by dimitri14 »

Thank you Yvan for your quick and accurate answer
Regards
Post Reply