Search found 283 matches

by Luciano Garelli
Fri Nov 12, 2021 1:22 pm
Forum: code_saturne usage
Topic: How should i do to set the boundary conditions by python scripts
Replies: 7
Views: 4353

Re: How should i do to set the boundary conditions by python scripts

Hello, The difference between solutions is because you are running two different cases. Please check the definition of the norm of a vector( ||\mathbf v||=\sqrt{x^2+y^2+z^2} ). When you use the GUI the norm is set to 3 m/s (vx=vy=vz=0.707m/s) and when you use the user define function you are setting...
by Luciano Garelli
Wed Nov 10, 2021 8:13 pm
Forum: code_saturne usage
Topic: How should i do to set the boundary conditions by python scripts
Replies: 7
Views: 4353

Re: How should i do to set the boundary conditions by python scripts

Hello, I had used the specified coordinates, but I am so confuse about this set. maybe when I set the coordinates x=1, y=-1, z=1, it means that the coordinate is like the picture ? and the coordinate x=3, y=-3, z=3 is equal to the x=1, y=-1, z=1 ? or 3 is the unit length? You have to set the norm of...
by Luciano Garelli
Tue Nov 09, 2021 1:40 pm
Forum: code_saturne usage
Topic: How should i do to set the boundary conditions by python scripts
Replies: 7
Views: 4353

Re: How should i do to set the boundary conditions by python scripts

Hello, Recently I want to use python scripts to set the boundary conditions. but when I simulate the simple case, I saw the result is not my want. The code that you post uses Fortran, not python. I didn't find the v and w direction set in GUI To set the x,y,z directions for the velocity in the GUI y...
by Luciano Garelli
Wed Sep 22, 2021 3:22 pm
Forum: code_saturne usage
Topic: issues with user routine parallelization
Replies: 7
Views: 6061

Re: issues with user routine parallelization

Hello, When do you mention that " the indexes inside them are different from the ones contained in the ifac_test array" , the values or the order are different? Why are you doing this? "ifac_local_r = real(ifac_local)". It should be a integer list. And about the face_dz() matrix,...
by Luciano Garelli
Tue Jul 06, 2021 3:39 pm
Forum: code_saturne usage
Topic: Wall boiling model
Replies: 3
Views: 2261

Re: Wall boiling model

Hello Yvan and Benoît, I have changed the approach and follow this article https://www.researchgate.net/publication/267594307_Prediction_of_Boiling_and_Critical_Heat_Flux_Using_an_Eulerian_Multiphase_Boiling_Model to avoid the "semi-mechanical" correlations. I have added the vaporization/c...
by Luciano Garelli
Tue Jun 08, 2021 5:33 pm
Forum: code_saturne usage
Topic: Wall boiling model
Replies: 3
Views: 2261

Re: Wall boiling model

Hello Benoît for your answer, I modify the cavitation_compute_source_term as a function of the saturation temperature and this part is working. As you mention in your answer, now I have to add to the energy equation the vaporization/condensation energy due to the phase change (latent heat). Also, th...
by Luciano Garelli
Mon Jun 07, 2021 3:57 pm
Forum: code_saturne usage
Topic: Wall boiling model
Replies: 3
Views: 2261

Wall boiling model

Hello, I'm solving a problem that involves a phase change (water-vapor) in a heat exchanger. My question is if the Merkle (mass transfer) model implemented in the cavitation module can be adapted/modified to produce void fraction as a function of the saturation temperature. The idea is to implement ...
by Luciano Garelli
Sun May 30, 2021 1:34 pm
Forum: code_saturne usage
Topic: Example for Dam breaking
Replies: 10
Views: 5061

Re: Example for Dam breaking

Hello,

But you are solving the dam break problem, you don't need an inlet boundary condition.

Check this post(viewtopic.php?f=2&t=2830) where I set the void fraction to an inlet boundary condition.

Regards,
Luciano
by Luciano Garelli
Sun May 30, 2021 4:02 am
Forum: code_saturne usage
Topic: Example for Dam breaking
Replies: 10
Views: 5061

Re: Example for Dam breaking

Hello,

May be I am wrong, but I think that you should use single quotes '...' for string criteria and not single closing quotes ’..’.

Regards,
Luciano
by Luciano Garelli
Mon May 17, 2021 9:37 pm
Forum: code_saturne usage
Topic: A tutorial on cavitation two-phase flow modeling
Replies: 6
Views: 2943

Re: A tutorial on cavitation two-phase flow modeling

Hello, The error log is telling you that Some boundary condition definitions are incomplete or incorrect. and For details, read the end of the calculation log, or visualize the error postprocessing output. Did you check which BC is not defined? My recommendation is to use the lasted production versi...