Search found 149 matches

by daniele
Wed Jul 22, 2020 10:33 am
Forum: code_saturne usage
Topic: ALE - mesh viscosity in v6.0
Replies: 12
Views: 8291

Re: ALE - mesh viscosity in v6.0

Dear Yvan,

Have you had time to check about the CDO settings with your colleagues?

Thank you very much.
Best regards,
Daniele
by daniele
Thu Jul 02, 2020 2:09 pm
Forum: code_saturne usage
Topic: ALE - mesh viscosity in v6.0
Replies: 12
Views: 8291

Re: ALE - mesh viscosity in v6.0

Hello, I have tried to use the CDO approch for the ALE mesh velocity, in v6.0.2. When I put cs_glob_ale = CS_ALE_CDO (instead of cs_glob_ale = CS_ALE_LEGACY) inside the cs_user_parameters.c, I get an error on the definition of the moving boundary conditions: ../../../src/base/cs_ale.c:1414: Fatal er...
by daniele
Mon Jun 29, 2020 11:23 am
Forum: code_saturne usage
Topic: ALE - modify mesh viscosity at each time step
Replies: 1
Views: 1622

ALE - modify mesh viscosity at each time step

Hello, For a ALE simulation, the mesh viscosity defined inside the user_physical_properties.f90 is defined only once at the beginning of a simulation. In my case, I fix the cell mesh viscosity value based on geometrical conditions based on the distance from the moving boundary. Under significant mes...
by daniele
Wed Jun 17, 2020 5:13 pm
Forum: code_saturne usage
Topic: Store surface normal vector to array in parallel simulation
Replies: 4
Views: 3345

Re: Store surface normal vector to array in parallel simulation

Dear Luciano,

You are right, it works correctly after doing a parcpt!
Thank you very much for your precious help.

Best regards,
Daniele
by daniele
Wed Jun 17, 2020 5:10 pm
Forum: code_saturne usage
Topic: time average of profiles
Replies: 7
Views: 4587

Re: time average of profiles

Hello, When postprocessing profiles, I sometimes get the error: System error: File too large ../../../src/fvm/fvm_to_plot.c:203: Fatal error. Error opening file: "profiles/profile5_120170.dat" And the simulation crashes. It looks like a memory problem. Have you ever faced this error? Thank...
by daniele
Thu Jun 11, 2020 4:14 pm
Forum: code_saturne usage
Topic: Store surface normal vector to array in parallel simulation
Replies: 4
Views: 3345

Re: Store surface normal vector to array in parallel simulation

Hello, Thank you very much for your help. cs_parall_allgather_r() actually seems to be what I was looking for. Nevertheless, I am a bit confused since cs_parall_allgather_r() requires the size of the local and global array as inlet parameters... but they are not known... And therefore this syntax: c...
by daniele
Mon Jun 08, 2020 2:24 pm
Forum: code_saturne usage
Topic: Store surface normal vector to array in parallel simulation
Replies: 4
Views: 3345

Store surface normal vector to array in parallel simulation

Hello, I am trying to store the surface normal vector components in arrays (nx, ny, nz) and the norm (nn). Through the following code inside the cs_user_extra_operations.f90 I managed to do it, for a serial (1 processor) simulation: call getfbr('WALL1', nlelt1, lstelt) do ilelt = 1, nlelt1 ifac = ls...
by daniele
Thu Apr 30, 2020 8:16 am
Forum: code_saturne usage
Topic: time average of profiles
Replies: 7
Views: 4587

Re: time average of profiles

Hello Yvan, Thank you for your help. What I understand is that "Time averages" in the GUI calculates the average of the selected variables for all cells, is that right? Then, I can define a profile calling that average? Have I understood exactly? Is there an example in any user routine? Th...
by daniele
Wed Apr 29, 2020 3:46 pm
Forum: code_saturne usage
Topic: time average of profiles
Replies: 7
Views: 4587

time average of profiles

Hello, I was wondering if it is possible to make code_Saturne calculate the time average of a user defined profile or probe. In the GUI, when I add a time average, I do not understand how to set the x,y,z position where I want the average to be calculated. Maybe I misunderstand the use of time avera...
by daniele
Wed Mar 04, 2020 10:02 am
Forum: code_saturne usage
Topic: how to turn on the low-Mach approximation?
Replies: 2
Views: 2490

Re: how to turn on the low-Mach approximation?

Hello Erwan, Thank you for your help. Actually I am simulating the cold leg mixing experimental test, where density difference depends on the species (scalar) mass fraction. Density difference is around 200 kg/m3, with the average density (between the two species) equal to around 1000 kg/m3. If I re...