Hello,
I need help for a 3D simulation with Code_Saturne 3.2. I have to simulate diffusion and mass transfer around a vertical rotating cylinder in confined space, so I have to assign a tangential velocity on the cylinder surface. From the GUI interface it's possible to assign a sliding wall with x, y, z velocity components but I'm not sure this can be useful for my case. How can I assign a tangential velocity for a cylinder in CS 3.2?
Thanks
Best regards
Valeria
Rotation of vertical cylinders
Forum rules
Please read the forum usage recommendations before posting.
Please read the forum usage recommendations before posting.
-
- Posts: 4220
- Joined: Mon Feb 20, 2012 3:25 pm
Re: Rotation of vertical cylinders
Hello,
For this, you'll probably need to use the cs_user_boundary_conditions.f90 user subroutine (but as definitions with user subroutines override those of the GUI, you can define everything with the GUI, and handle just the rotating wall with the user subroutine).
Best regards,
Yvan
For this, you'll probably need to use the cs_user_boundary_conditions.f90 user subroutine (but as definitions with user subroutines override those of the GUI, you can define everything with the GUI, and handle just the rotating wall with the user subroutine).
Best regards,
Yvan
Re: Rotation of vertical cylinders
Hello,Yvan Fournier wrote:Hello,
For this, you'll probably need to use the cs_user_boundary_conditions.f90 user subroutine (but as definitions with user subroutines override those of the GUI, you can define everything with the GUI, and handle just the rotating wall with the user subroutine).
Best regards,
Yvan
thanks for the previous suggestion! I have another question about this simulation, I need to calculate averaged mass flow through the outlet section. In particular I want to calculate the mass flow of a tracer (passive scalar) in this way: vz*rho*concentration.
I don't think this is possible to do with the GUI, I need a subroutine, isn't it?
Best regards
Valeria
-
- Posts: 4220
- Joined: Mon Feb 20, 2012 3:25 pm
Re: Rotation of vertical cylinders
Hello,
Yes, you will need a user subroutine (cs_user_extra_operations) to do this. Check the examples in src/user_example/cs_user_extra-operations-energy_balance.f90 for a good starting point.
A less precise but simpler selection is also to do the computation using the field calculator function (with EnSight or ParaView).
Regards,
Yvan
Yes, you will need a user subroutine (cs_user_extra_operations) to do this. Check the examples in src/user_example/cs_user_extra-operations-energy_balance.f90 for a good starting point.
A less precise but simpler selection is also to do the computation using the field calculator function (with EnSight or ParaView).
Regards,
Yvan