Search found 15 matches

by yang
Sat Feb 17, 2024 1:08 pm
Forum: code_saturne usage
Topic: Define a new field and output it with time
Replies: 2
Views: 1995

Define a new field and output it with time

Hi team, In Code_Saturne v7.0.2, I'd like to monitor the change of kinetic energy in whole field with time. Specifically, in each time step, Code_Saturne calculates kinetic energy in whole field, and output these values into a file. Then, I can plot its change with time. Could you share an example f...
by yang
Sun Dec 31, 2023 6:24 pm
Forum: code_saturne usage
Topic: Convergence study in Code_Saturne
Replies: 9
Views: 271244

Re: Convergence study in Code_Saturne

Hi Yvan, I have tested Code_Saturne three velocity scheme -- automatic, SOLU and second-order scheme. As you predicted, SOLU and second-order scheme show excellent 2nd-order accuracy, but second-order scheme has lower error. The default setup (automatic) only has first-order accuracy, as shown in be...
by yang
Wed Dec 20, 2023 5:44 pm
Forum: code_saturne usage
Topic: Convergence study in Code_Saturne
Replies: 9
Views: 271244

Re: Convergence study in Code_Saturne

Hello Yvan, Thanks for your advice in post-processing. I know the reasons and list here in case someone has similar questions: (1) I should extract velocity component instead of resultant velocity. (2)I extract data from the cell centre and avoid any interpolation scheme. (3)I use velocity centered ...
by yang
Wed Dec 20, 2023 11:57 am
Forum: code_saturne usage
Topic: Convergence study in Code_Saturne
Replies: 9
Views: 271244

Re: Convergence study in Code_Saturne

Hi Yvan,

I used paraview to extract data (velocity distribution) and tested interpolation and no interpolation. The error calculation is through L2-norm:



Best,
Yang
by yang
Tue Dec 19, 2023 7:10 pm
Forum: code_saturne usage
Topic: Convergence study in Code_Saturne
Replies: 9
Views: 271244

Re: Convergence study in Code_Saturne

Hi Yvan,

I tested this case using centered velocity scheme, but it shows similar results.

Best,
Yang
by yang
Tue Dec 19, 2023 4:35 pm
Forum: code_saturne usage
Topic: Convergence study in Code_Saturne
Replies: 9
Views: 271244

Re: Convergence study in Code_Saturne

Thanks Yvan, (1) Did you test using the default centered scheme? I think Code_Saturne default is velocity upwind scheme, and it results is first-order accuracy. Let me test centered scheme then. (2)what type of mesh are you using ? I generate mesh using Code_Saturne GUI, as shown below. Best, Yang
by yang
Tue Dec 19, 2023 12:52 pm
Forum: code_saturne usage
Topic: Convergence study in Code_Saturne
Replies: 9
Views: 271244

Convergence study in Code_Saturne

Hi team, I did a convergence study using Code_Saturne v7.0.2. I tested a pseudo-3D Poiseuille flow with inlet boundary (u=4.0*(y-y*y)) and outlet boundary. Also, the domain is (1m * 1m) and uniform mesh with 16, 50, 100 resolutions. In order to ensure accuracy, I set SOLU velocity scheme. However, m...
by yang
Wed Sep 20, 2023 10:41 am
Forum: code_saturne usage
Topic: How to calculate time-averaged variables every constant time steps
Replies: 1
Views: 8541

How to calculate time-averaged variables every constant time steps

Hi team,

I am using code_saturne v7.0.2. I want to use GUI to calculate time-averaged variables every 10 timesteps. I guess the default time-averaged calculation every timestep. Thanks.

Reagrds,
Yang
by yang
Wed Aug 30, 2023 5:45 pm
Forum: code_saturne usage
Topic: Code_Saturne cells coupling by PLE library
Replies: 1
Views: 7130

Code_Saturne cells coupling by PLE library

Hi team, I am working on coupling simulation with Code_Saturne v7.0.2 with corresponding PLE library. I have achieved such coupling simulation: Code_Saturne receives data and places on it boundary face centre by the function cs_syr_coupling_define [https://github.com/code-saturne/code_saturne/blob/m...