Search found 88 matches

by daniele
Thu Jul 02, 2020 2:09 pm
Forum: Code_Saturne usage
Topic: ALE - mesh viscosity in v6.0
Replies: 10
Views: 1038

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: 103

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: 251

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: 5
Views: 678

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 you very ...
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: 251

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: 251

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: 5
Views: 678

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? Thank you ve...
by daniele
Wed Apr 29, 2020 3:46 pm
Forum: Code_Saturne usage
Topic: time average of profiles
Replies: 5
Views: 678

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: 809

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...
by daniele
Mon Mar 02, 2020 3:50 pm
Forum: Code_Saturne usage
Topic: how to turn on the low-Mach approximation?
Replies: 2
Views: 809

how to turn on the low-Mach approximation?

Hello, I am a little bit confused about the correct way of setting Code_Saturne to use a Boussinesq approach or a low-Mach approach. I use v6.0.0. In the GUI, one has the possibility of selecting Incompressible or Compressible flow. I guess that in both cases the Incompressible option has tu be chos...