Simulation of air flow in a room

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

Simulation of air flow in a room

Post by Damien Charreron »

Hello!

My question is more concerning Salome than CS, but here it is. I am
working on a simulation of air flows in a room.   I have launched
the CS with a hot inlet and an outlet and the simulation went well. As CS
doesn't work with 2D, I have made a partition of my cube (room) in the Geometry
module of Salome, it looks a bit messy but it works fine!
Now, I am wondering how I can include some blocks, inside the room, which
will react like obstacles. Is there a solution to do not mesh inside the
blocks? Do I have to set all the face of the blocks as walls (very boring and
messy)?
 
Thanks and best regards,
 
Damien
Laurent Malod-Panisset

Re: Simulation of air flow in a room

Post by Laurent Malod-Panisset »

Hi
Have you tried to check the tutorial and/or manual for the Head Loss?
If i remember well, you can specify something like X>-10 X<10 Y>-10 Y<10 then give the coef creating a head loss.
 
Regards
Damien Charreron

Re: Simulation of air flow in a room

Post by Damien Charreron »

yes! Thanks you, I didn't made the second tutorial yet, I just saw the obstacle case.
Damien Charreron

Re: Simulation of air flow in a room

Post by Damien Charreron »

Hello! 
Now that I have done the tutorial I am able to create an obstacle inside my room. However, I have issues when I want to simulate an inlet on this obstacle. I spent all the ideas I had to solve it. I tried involving two meshes, or just one with an inlet and walls group on the obstacle. Does somebody have an idea?
 
Best regards,
 
Damien
Jacques Fontaine

Re: Simulation of air flow in a room

Post by Jacques Fontaine »

Hello,
If the geometry of the obstacle is very simple (cube, ...) you can use the user function cs_user_mesh_thinwall. This function allows to transform internal faces into boundary faces onto which you can impose boundary conditions.
I think you can also add a mass source term on the layer of your head loss box. I'm not sure if it works and it is more complicated to implement.
Best regards,
JF
Lucien Samary

Re: Simulation of air flow in a room

Post by Lucien Samary »

From which version cs_user_mesh_thinwall is available?
Yvan Fournier

Re: Simulation of air flow in a room

Post by Yvan Fournier »

Hello,
It was added in version 2.1.
Best regards,
  Yvan
Damien Charreron

Re: Simulation of air flow in a room

Post by Damien Charreron »

Hello!
 
I am not
quite sure about how to use the subroutines. I have activated it by copying
under SRC but now it's not really clear for me because I am using Salome to
make my meshes. Should I modify the file?  Is it possible to have an explanation of how
to use the zero thickness wall function or an example because I don’t understand
the one already in the file.
 
 Best regards,
 
Damien
Jacques Fontaine

Re: Simulation of air flow in a room

Post by Jacques Fontaine »

Hello,

I have attached an example: a single lid-driven cavity transformed into a 4 lid-driven cavities.

Best regards,

JF
Attachments
usclim.f90
(20.11 KiB) Downloaded 224 times
cs_user_mesh_thinwall.c
(4.46 KiB) Downloaded 233 times
4cavity.png
Lucien Samary

Re: Simulation of air flow in a room

Post by Lucien Samary »

Very nice new feature. Thanks ! :)
Post Reply