how to put periodic BC in saturne GUI

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
gina

Re: how to put periodic BC in saturne GUI

Post by gina »

Dear Mickael,
the ustsns.f90 wich i use i give it from an other periodic test case in this forum...
can you please tell me what can I write instead of "getfac("entree",...,...)" for my test case?
it is my first use of saturne can you please orient me!
i thank you 
Mickael Hassanaly

Re: how to put periodic BC in saturne GUI

Post by Mickael Hassanaly »

Gina,
you should apply your source term in the cells of your mesh that are near the inlet boundary. Use for this a geometrical criteria and the getcel function.
Regards
gina

Re: how to put periodic BC in saturne GUI

Post by gina »

I have use the subroutine of Sylvain  done for a periodicity in the x direction, like me
, please see the below link:
 
periodic boundary and velocity source production using ustsns
 
 
it is not correct to follow his steps and to write:
"getfac("inlet",...,...)" instead "getfac("entree
",...,...)"
 
because i have name the inlet BC in gambit
by "inlet"
Serra Sylvain

Re: how to put periodic BC in saturne GUI

Post by Serra Sylvain »

Hi Gina,
if the name of the boundary condition in gambit is 'inlet', you have to put 'inlet' instead of 'entree' in the ustsns.f90.
I use "call getfac" because when the boundary conditions are periodics the are not boundary faces (call getfbr) but interior faces.
 
Be careful that you have to use '   and not ".
 
others important points are
- the value of the surface of inlet that in my case is 0.5 and you have to modify it in the following line. debitn = abs(debitn) / 0.5   
 
- I don't try this subrtouine with all the turbulence model.
In my case, it works with RANS k-omega model but not with LES smago and dynamic... For the moment I don't find the problem.
 
Best regards
Sylvain
 
gina

Re: how to put periodic BC in saturne GUI

Post by gina »

thank you sylvain,

what do you mean when you say:
"Be careful that you have to use '   and not "." ?
gina

Re: how to put periodic BC in saturne GUI

Post by gina »

i will to use k-e and latter i will to use LRN model
Mickael Hassanaly

Re: how to put periodic BC in saturne GUI

Post by Mickael Hassanaly »

Dear Gina,
Sylvain talks about using ' instead of ''.
Regards
Mickael
gina

Re: how to put periodic BC in saturne GUI

Post by gina »

I thank you very much Michael and Sylvain for your answers.

I have do my simulation, and I have got a result BUT, the values of TKE is vey small compared to DNS and Fluent results!!!

I think that I have introduice correctly my data !!!

I have simulate 2D channel flow  with dimensions (x*y*z) = (100*0.5*1)m for the helf of my geometry

y is the height, and z is the third dimension.

you can find my files results as attached

please gives me your orientation
Attachments
saturne_simulation.rar
(984.28 KiB) Downloaded 165 times
Post Reply