Recently I want to use python scripts to set the boundary conditions.
but when I simulate the simple case, I saw the result is not my want.
first, I set the boundary conditions in GUI ==boundary conditions ->velocity v=3m/s (normal direction to the inlet). in the code, I also set the rcodcl(ifac,iu,1) = 3. when I see the result, it seems the same.
second, i want to set the v and w direction of the inlet face, so i set the rcodcl(ifac,iv,1) = 4, rcodcl(ifac,iw,1) = 5.
and I didn't find the v and w direction set in GUI. (because I think the first in GUI is only in u direction). so I can not prove my result is correct. I don't know the code is right? can I set the three directions by this code?
for another question, should I set the icodcl? (like the under code). I am not clear about this one.
{{ icodcl(ifac,iu) = 1
icodcl(ifac,iv) = 1
icodcl(ifac,iw) = 1}}
if it is right, I want to read the txt to set the boundary. just like picture 1
i don't know if i describe clear. forgive my poor english!
can you help me?? please~~~ I am so sad that I can not solve this problem
