Simulation of air flow in a room
Forum rules
Please read the forum usage recommendations before posting.
Please read the forum usage recommendations before posting.
Simulation of air flow in a room
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
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
Re: Simulation of air flow in a room
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
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
Re: Simulation of air flow in a room
yes! Thanks you, I didn't made the second tutorial yet, I just saw the obstacle case.
Re: Simulation of air flow in a room
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
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
Re: Simulation of air flow in a room
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
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
Re: Simulation of air flow in a room
From which version cs_user_mesh_thinwall is available?
Re: Simulation of air flow in a room
Hello,
It was added in version 2.1.
Best regards,
Yvan
It was added in version 2.1.
Best regards,
Yvan
Re: Simulation of air flow in a room
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
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
Re: Simulation of air flow in a room
Hello,
I have attached an example: a single lid-driven cavity transformed into a 4 lid-driven cavities.
Best regards,
JF
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