Internal face to wall

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
Meskine
Posts: 26
Joined: Thu Jul 19, 2012 1:56 pm

Internal face to wall

Post 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
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Internal face to wall

Post 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
Meskine
Posts: 26
Joined: Thu Jul 19, 2012 1:56 pm

Re: Internal face to wall

Post 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
Meskine
Posts: 26
Joined: Thu Jul 19, 2012 1:56 pm

Re: Internal face to wall

Post 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
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Internal face to wall

Post 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
Post Reply