Search found 29 matches

by xiaoxue123
Sun Jan 08, 2023 11:01 am
Forum: code_saturne usage
Topic: variable output on a slice
Replies: 1
Views: 1143

variable output on a slice

Hi, I want to save some variables on a slice at a specific frequency. Attached is the cs_user_postprocess.c and the xml file. The mesh is defined in cs_user_postprocess_meshes, the variable output is defined in cs_user_postprocess_values. In the postprocess folder, geo file is generated but the vari...
by xiaoxue123
Fri Dec 09, 2022 9:53 am
Forum: code_saturne usage
Topic: flux reconstruction
Replies: 5
Views: 2545

Re: flux reconstruction

Hello,

These are the setup and run_solver log which I forgot to attach in my original post.

Xiaoxue
by xiaoxue123
Thu Dec 08, 2022 8:53 am
Forum: code_saturne usage
Topic: flux reconstruction
Replies: 5
Views: 2545

flux reconstruction

Dear expert team, I am running a LES in a T-junction. Synthetic turbulence is applied at the inlets through the subroutine. The fluid is liquid metal which has a high thermal diffusivity. The LES was restarted from a RANS result. The simulation diverges as shown in the temperature contours below. Te...
by xiaoxue123
Thu Nov 10, 2022 2:22 pm
Forum: code_saturne usage
Topic: processing on a slice
Replies: 1
Views: 1224

processing on a slice

Dear expert team, I am trying to extract a slice and export pressure on it. In cs_user_process, the slice (x=0.01) is defined for postprocessing. But pressure is not exported although there is a geometry file "xxx.geo" generated in the postprocessing folder. Could you have a look at it? GU...
by xiaoxue123
Wed Nov 02, 2022 2:03 am
Forum: code_saturne usage
Topic: integration over a slice
Replies: 3
Views: 1368

Re: integration over a slice

Hi Yvan, Thanks for the information. The example is indeed not simple. My geometry is Cartesian-type, the cells are aligned along the axis. The geometry is a pipe and the mesh is extruded along the axis. To do the integration over a slice perpendicular to the axis, I'll need the surface area of the ...
by xiaoxue123
Mon Oct 31, 2022 5:38 am
Forum: code_saturne usage
Topic: LES inlet
Replies: 1
Views: 1267

LES inlet

Dear support team, I am running a LES simulation, I'm using the synthetic turbulence inlet using cs_uder_lew_inflow.f90. I have a specific question about the example in the folder SRC/EXAMPLES. In subroutine cs_user_les_inflow_advanced , Example 1: utau = uref/20.d0 Is utau the friction velcoity, ur...
by xiaoxue123
Mon Oct 31, 2022 5:04 am
Forum: code_saturne usage
Topic: integration over a slice
Replies: 3
Views: 1368

integration over a slice

Dear expert team, I want to calculate an integration over a slice. I plan to add a variable using "cs_parameters_add_property", then do the integration in cs_user_extra_operations. The version I'm using is 6.0.8. The definition of the new variable (swirl number) is attached, and the simula...
by xiaoxue123
Thu Oct 06, 2022 1:13 am
Forum: code_saturne usage
Topic: max and min temperature in LES simulation
Replies: 4
Views: 1588

Re: max and min temperature in LES simulation

Hi Yvan,

Thanks a lot, I understand it now.

Xiaoxue
by xiaoxue123
Sun Oct 02, 2022 5:10 pm
Forum: code_saturne usage
Topic: max and min temperature in LES simulation
Replies: 4
Views: 1588

Re: max and min temperature in LES simulation

Dear Yvan, Thanks for the information. I am trying to use cs_array_reduce_minmax_l, I am calling it in cs_user_extra_operations as attached. The output seems to be at just one cell. I actually want to print the min and max T over the time period for each cell, can you spot any issue with the attache...
by xiaoxue123
Sat Sep 24, 2022 3:22 pm
Forum: code_saturne usage
Topic: max and min temperature in LES simulation
Replies: 4
Views: 1588

max and min temperature in LES simulation

Dear experts, I am running an LES simulation using version 6.0.8. I want to store the minimum and the maximum temperatures at each location. Are there any suggestions to do that? Can I set up new variables such as minT and maxT in cs_user_parameters.c, then store minT and maxT for each location? Bes...