Page 1 of 1

Internal face to wall

Posted: Thu Jul 10, 2014 4:17 pm
by Meskine
Hello everybody,

I would like to model a simple duct closure/opening. For the moment the only solution I found is to set and modify a pressure loss in time at the closing/opening location.

This method unfortunately deos not take into account wall properties and I think a diffusion of my scalar still remain after closing the duct (only advection is stopped).

Do you have any idea to model this kind of scenario ?
It is possible to change an internal face to a wall boundary condition at a certain time of calculation and conversely ?

Thank you for your help

Regards

Cyril

Re: Internal face to wall

Posted: Thu Jul 10, 2014 4:23 pm
by Yvan Fournier
Hello,

Check for "thin walls" in cs_user_mesh.c (there may also be old references to this on this Forum)

Regards,

Yvan

Re: Internal face to wall

Posted: Thu Jul 10, 2014 5:03 pm
by Meskine
Hello Jacques,

I am working on a v2.0.4 of code_saturne.

Thank you for your answer. I think that it is what I need :

"The user subroutine cs_user_mesh_thinwall allows insertion of thin walls in the calculation mesh.
Currently, this subroutine simply transforms the selected internal faces into boundary faces, on which
boundary conditions can (and must) be applied"

But also I red on the manual that the routine cs_user_mesh_thinwall is only call during the initialisation.

I would like to transformthe selected internal faces into boundary faces of wall at a certain time of calculation.

Regards
Cyril

Re: Internal face to wall

Posted: Thu Jul 10, 2014 5:14 pm
by Meskine
Hi again Yvan (sorry for called you Jacques...)

I another question : is it possible to do a restart of a calculation in which I define a thin wall ?

I mean : do a first calculation with a mesh and then implement my thin wall in it for a restart ?

regards
cyril

Re: Internal face to wall

Posted: Thu Jul 10, 2014 6:45 pm
by Yvan Fournier
Hello,

No, this is a post-processing step (changing the mesh), and can not be changed during calculation.

You might (no guarantee) be able to change it after a restart, but only if you deactivate reading of auxiliary restart files (ileaux = 0 in cs_user_parameters.f90 without the GUI, or Restart/Advanced options with the GUI).

Regards,

Yvan