Search found 36 matches

by ximeng
Tue Sep 16, 2025 11:47 am
Forum: code_saturne usage
Topic: Question on Steady vs Unsteady RANS in Code_Saturne
Replies: 3
Views: 224

Question on Steady vs Unsteady RANS in Code_Saturne

Dear Yvan,

I would like to clarify how steady and unsteady RANS are selected in Code_Saturne. Am I correct that choosing Constant or Adaptive time step corresponds to unsteady simulations, while Steady (local time step) corresponds to a steady simulation (But why does the Steady option still ...
by ximeng
Mon Aug 11, 2025 9:00 pm
Forum: code_saturne usage
Topic: streamwise periodicity
Replies: 32
Views: 212499

Re: streamwise periodicity

Hi Yvan,

Thanks for your reply. Do you have any example using cs_divergence?

I implemented it based on the general documentation from the source file, but the simulation freezes at the first step and stops with the following error:

SIGSEGV signal (forbidden memory area access) intercepted!
Call ...
by ximeng
Thu Jul 31, 2025 1:25 am
Forum: code_saturne usage
Topic: streamwise periodicity
Replies: 32
Views: 212499

Re: streamwise periodicity

Hi Yvan,

Thank you for your suggestions. Applying a relaxation factor to progressively add the source term seems to help, but I still observe a slow temperature increase throughout the domain.

Since the previous implementation used a non-conservative form—which can introduce numerical bias—I’d ...
by ximeng
Mon Jun 16, 2025 8:08 pm
Forum: code_saturne usage
Topic: Restart save frequency
Replies: 7
Views: 29381

Re: Restart save frequency

Hi Yvan,

I was wondering whether it is now feasible in code_saturne version 8.0 to restart from a specific restart checkpoint — for example, from the second one (2/4) — rather than defaulting to the latest available checkpoint. Thanks.

Best regards,
Ximeng
by ximeng
Mon May 26, 2025 6:05 pm
Forum: code_saturne usage
Topic: How to Manage Separate Monitoring Outputs with Multiple Probe Files
Replies: 3
Views: 7372

Re: How to Manage Separate Monitoring Outputs with Multiple Probe Files

Hi Yvan,

Thanks.

I can use a single cs_user_postprocess_probes function, but the issue is that I want the outputs to be separate files. Since the number of probes is very large, combining all the data into one file results in a huge output, making postprocessing difficult and inefficient.

Best ...
by ximeng
Mon May 26, 2025 1:55 pm
Forum: code_saturne usage
Topic: How to Manage Separate Monitoring Outputs with Multiple Probe Files
Replies: 3
Views: 7372

How to Manage Separate Monitoring Outputs with Multiple Probe Files

Hi Team,

I'm currently using the cs_user_postprocess_monitors.c file to set up probes and collect their data, as I have a large number of monitors (please see the attached screenshot for reference).

I was wondering if it's possible to use multiple cs_user_postprocess_monitors.c files to generate ...
by ximeng
Thu Mar 20, 2025 1:30 pm
Forum: code_saturne usage
Topic: streamwise periodicity
Replies: 32
Views: 212499

Re: streamwise periodicity

Hi Yvan,

Thanks for your suggestions. The code worked at the time, but for my new case, I’d like to take a more theoretical approach. Specifically, I aim to derive an analytical solution for the source term, based on Page 213 of
Franck Mastrippolito's thesis. (https://theses.fr/2018LYSEC043?domaine ...
by ximeng
Mon Nov 04, 2024 6:21 pm
Forum: code_saturne usage
Topic: output velocity data at each time step from the cell centers
Replies: 5
Views: 21923

Re: output velocity data at each time step from the cell centers

Hi Yvan,

Thank you for your reply. I’m only using g_ii to display the total cell count across the entire domain, and it’s not used in any subsequent code or output, so I don’t think it’s related to the error. I removed this section and kept only a single output file, the same error still occurs. is ...
by ximeng
Fri Nov 01, 2024 5:26 pm
Forum: code_saturne usage
Topic: output velocity data at each time step from the cell centers
Replies: 5
Views: 21923

Re: output velocity data at each time step from the cell centers

Hi Yvan,

Thanks for your suggestion! I’ve revised the code in parallel way to output cell volume for a specific zone at each time step (the attached code focuses on cell volume; a similar approach would apply to velocity). I’m using cs_parall_allgather_r to gather cell volume data across all ranks ...
by ximeng
Tue Oct 29, 2024 3:15 am
Forum: code_saturne usage
Topic: output velocity data at each time step from the cell centers
Replies: 5
Views: 21923

output velocity data at each time step from the cell centers

Hi team,

I need to output velocity data at each time step from the cell centers in my simulation (saved to separate files instead of output through postprocessing folder to avoid large postprocessing results). I've used the attached cs_user_extra_operation.c file to handle this, but the outputs ...