why the code set result is different from gui?

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
Yvonne
Posts: 23
Joined: Sat Oct 02, 2021 7:53 am

why the code set result is different from gui?

Post by Yvonne »

hello!

recently I am so confused with the set in GUI and my code.

In GUI, I choose the specified coordinates to set the velocity. in my opinion, i want to set the 3 m/s as the x、y and z this three dimensions, so I set the norm=3 (because the cubic root 27 is three , so in the three dimensions, the velocity component is 3、3 、3, so the norm velocity= 3√(3^2+3^2+3^2)=3 )

so in the code, i set the u=3,v=3,w=3, the velocity= 3√(3^2+3^2+3^2)=3.
I think the result which set by GUI should same as the code set, but in reality, it is different. I can't understand the reason, could you tell me why?

or should i choose which in boundary conditions in GUI, then use the code? i compare the normal, specified ncoordiantes and the user profiles (the set the same code), the result is different. :( . i really don't konw how shou i do :cry:
when i read the document, i see this line 【Therefore, the code automatically computes the boundary condition to impose to the normal and to the tangential components】 thus, i think the specified coordinates or the user profiles set result maybe same to the code?

it is so important for me!! is there the code has wrong? thank you very much~

Best wish,
Yvonne.
Attachments
code set.png
(10.87 KiB) Not downloaded yet
compare.png
gui set.png
Luciano Garelli
Posts: 280
Joined: Fri Dec 04, 2015 1:42 pm

Re: why the code set result is different from gui?

Post by Luciano Garelli »

Please don't repeat the same question in mutiple post.

viewtopic.php?p=15975#p15975
Post Reply