Search found 159 matches

by daniele
Mon Jun 16, 2025 4:41 pm
Forum: code_saturne usage
Topic: fortran routine for v8
Replies: 1
Views: 1091

fortran routine for v8

Hello, I wrote a large code inside cs_user_boundary_conditions_ale.f90 to impose some desired mesh displacement, in the version 7 of CS. I would like to move to v8, but the cs_user_boundary_conditions_ale.f90 does not exist anymore. Is there a workaround to make it work on v8, to avoid writing one i...
by daniele
Fri Apr 04, 2025 11:01 am
Forum: code_saturne usage
Topic: Clipping of the Reynolds-stress tensor
Replies: 16
Views: 79193

Re: Clipping of the Reynolds-stress tensor

Hi Sean, Thank you for explaining in details your issue. I misunderstood that it was actually purely a numerical problem, not linked with the physics. The flows in which I faced the clipping issue were iso-thermal. And the clipping occurred in specific flow regions, not linked with the partition int...
by daniele
Wed Mar 26, 2025 1:04 pm
Forum: code_saturne usage
Topic: Scale adaptive simulation
Replies: 1
Views: 20097

Re: Scale adaptive simulation

Hello,

Have you tried to define the turbulence model inside the cs_user_parameters.c?
It should be enough to make it work.
I have done it in the past, with v7.

Best regards,
Daniele
by daniele
Wed Mar 26, 2025 12:56 pm
Forum: code_saturne usage
Topic: Clipping of the Reynolds-stress tensor
Replies: 16
Views: 79193

Re: Clipping of the Reynolds-stress tensor

Hello, I allow myself to jump inside this topic. I have faced the clipping bahavior of EBRSM with CS for some configurations. I guess what you call clipping here is the fact that the stresses are clipped to very low values, to prevent zero or negative values? Could you share further details about th...
by daniele
Wed Mar 26, 2025 10:48 am
Forum: code_saturne usage
Topic: head losses coefficient - consistent definition
Replies: 2
Views: 17783

Re: head losses coefficient - consistent definition

Hello Yvan.

Thank you for your precious and accurate help, as usual.
That answers perfectly my question.

Best regards,
Daniele
by daniele
Tue Mar 25, 2025 6:47 pm
Forum: code_saturne usage
Topic: head losses coefficient - consistent definition
Replies: 2
Views: 17783

head losses coefficient - consistent definition

Hello, I am wondering about the interpretation of the head loss coefficient in code_Saturne. The "Head losses" panel in the GUI says: "Head losses coefficients: ... = -0.5*rho*alpha_ij*|U|*U_j" Which would indicate that only the "alpha" term must be specified by the use...
by daniele
Wed Sep 04, 2024 11:46 am
Forum: code_saturne usage
Topic: mesh_output file not created
Replies: 0
Views: 27265

mesh_output file not created

Hello, I would like to use a mesh deformed by a previous simulation, as input for a new one. However, I cannot manage to get the mesh_output file (at the end of the deformable mesh simulation) created inside the checkpoint directory. I have ticked "Save mesh if modified by preprocessing" (...
by daniele
Wed Sep 04, 2024 11:46 am
Forum: code_saturne usage
Topic: mesh_output file not created
Replies: 1
Views: 8579

mesh_output file not created

Hello, I would like to use a mesh deformed by a previous simulation, as input for a new one. However, I cannot manage to get the mesh_output file (at the end of the deformable mesh simulation) created inside the checkpoint directory. I have ticked "Save mesh if modified by preprocessing" (...
by daniele
Tue Sep 03, 2024 7:06 pm
Forum: code_saturne usage
Topic: Restart not taken into account in v7
Replies: 14
Views: 68203

Re: Restart not taken into account in v7

Hello,

Sorry I missed your post.
My personal way of using cs_user_scripts.py to restart a calculation, is just to add:
domain.restart_input = 'RESU/"case_name"/checkpoint'.
Leaving all the other lines "None".

Let me know if it works.
Best regards,
Daniele
by daniele
Mon Aug 26, 2024 11:25 am
Forum: code_saturne usage
Topic: Second-Order Temporal Discretization Except for Turbulence Model Equations
Replies: 7
Views: 29452

Re: Second-Order Temporal Discretization Except for Turbulence Model Equations

Hello, If it can help, my personal way of running "non LES" setups with second-order time scheme for the momentum equations, is to force the second order for the velocity inside the varpos routine, while keeping first order for the turbulence equations. It seems similar to what you do. But...