Velocity direction normal to the inlet. (surfbo (...))

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
Norbert Modlinski

Velocity direction normal to the inlet. (surfbo (...))

Post by Norbert Modlinski »

Dear Support and Users,
 
I try to set velocity vector direction normal to the inlet using surfbo(...) function. Unfortunately I get an error. Please take a look at the attachments (uscpl.f90 and listing file containing error information). The speed vector directions set by using surfbo(...) are currently commented. When setting speed vector direction without surfbo(...) the calculation runs ok.   Am I am doing something wrong?

Look forward for your advice.

With kind regards

Norbert
Attachments
uscpcl.f90
(164.81 KiB) Downloaded 163 times
listing-12121221.txt
(77.22 KiB) Downloaded 154 times
Yvan Fournier

Re: Velocity direction normal to the inlet. (surfbo (...))

Post by Yvan Fournier »

Hello,

Why are you some times using only the first 2 components of surfbo, and sometimes with a different sign for those components ?

Also, it is surprising that you only use surfbo, not velocity*surfbo/norm(surfbo).

Note that surfbo is not a unit normal, but the unit normal * face surface.

Best regards,

Yvan
Post Reply