Search found 36 matches

by Cbarnaud
Tue Nov 02, 2021 10:04 am
Forum: code_saturne usage
Topic: use of CS_PHYSICAL_MODEL_FLAG
Replies: 1
Views: 1160

use of CS_PHYSICAL_MODEL_FLAG

Hello all, I was wondering which are the values corresponding to "CS_PHYSICAL_MODEL_FLAG". There ares tests in the code "CS_PHYSICAL_MODEL_FLAG<=0" or "CS_PHYSICAL_MODEL_FLAG>=2" but I can't find in the documentation or in the source code a comment section to explain th...
by Cbarnaud
Mon Sep 27, 2021 11:17 am
Forum: code_saturne usage
Topic: Optimisation of CPU time : number of BC
Replies: 1
Views: 878

Optimisation of CPU time : number of BC

Hello all, I was wondering about boundary conditions and their influence on CPU time. In CS (7.0.0 for my version): Is it better to have 10 BC with a wall condition or one unique BC with all the 10 faces, always with a wall condition ? I mean, with the hypothesis the 10 faces are not adjacent/contin...
by Cbarnaud
Mon Apr 19, 2021 2:46 pm
Forum: code_saturne usage
Topic: Restart with a change in rho algorithm option (idilat)
Replies: 1
Views: 1552

Restart with a change in rho algorithm option (idilat)

Hello I'm using CS6.0.0 and I achieved simulations with the parameter idilat=2 in cs_user_parameters.f90 . I would like to use this simulation as a restart, this time with the parameter idilat=3 (low-mach algorithm) with LES and exactly the same input file (xml). But the job fails at the first itera...
by Cbarnaud
Fri Apr 02, 2021 3:01 pm
Forum: code_saturne usage
Topic: Density values in fast chemistry combustion module
Replies: 3
Views: 2337

Re: Density values in fast chemistry combustion module

Hello Yvan, I found that the density outputted in .csv files is the rho used in the combustion module but its limits of variation corresponds to values obtained with pther=p0 with the state law, with pther the thermodynamic pressure, for my fuel and my oxydant. But I wonder why pther is defined unif...
by Cbarnaud
Sun Mar 21, 2021 7:29 pm
Forum: code_saturne usage
Topic: Error in initialisation of a scalar
Replies: 1
Views: 1016

Error in initialisation of a scalar

Hello all, I'm using version 6.0.0 of CS and I have an error with the initialisation of a scalar in my field. I would like to transport Yi (mass fractions) and I have 11 species . My 11th scalar, yN2 should be initialised to 0 in the all domain, like others Yi scalars, but I found that the finial va...
by Cbarnaud
Thu Feb 11, 2021 5:28 pm
Forum: code_saturne usage
Topic: Compilation option for mpicc
Replies: 1
Views: 1384

Compilation option for mpicc

Hello, I'm working on CS 6.0.0 ans I would like to add options/flags to mpicc command just like -g or -O3 (I know they're already there, it's just an example). My goal is to do something like : mpicc test.c -ltensorflow ... Is there a way to add it in a 'clean' way ? I tried to modify cflags_default...
by Cbarnaud
Wed Oct 21, 2020 2:12 pm
Forum: code_saturne usage
Topic: Get the previous time step values for temperature field
Replies: 1
Views: 1283

Get the previous time step values for temperature field

Hello all I'm using code_saturne 6.0 and I need, for an extra calculation, to get the previous values of the temperature field, itemp. I've seen that the option of keeping the previous time step is disabled for temperature and I wonder how to activate it. I've tried to use "call field_set_n_pre...
by Cbarnaud
Fri Aug 28, 2020 8:59 am
Forum: code_saturne usage
Topic: Density values in fast chemistry combustion module
Replies: 3
Views: 2337

Density values in fast chemistry combustion module

Hello All, I was wondering about my RANS simulation with fast chemistry combustion module. Indeed, the output of density in the paraview render is clipped between 0.73 and 1.3. Theses values are not the ones I was expecting, I should have 0.88 and 4.5. I can get these values (or approximate) if I cr...
by Cbarnaud
Sun Aug 16, 2020 6:03 pm
Forum: code_saturne usage
Topic: Divergence of a gradient
Replies: 2
Views: 1825

Re: Divergence of a gradient

Hello, Thank you for your answer. I'm sorry but the file src/turb/cs_les_balance.c doesn't exist on my version (CS 6.0.0), so neither the laplacian function. I used the grep tip and I got the file cs_divergence.c/h too but the use of theses functions didn't fit my needs (if I trust Doxygen's documen...
by Cbarnaud
Sat Aug 15, 2020 12:45 pm
Forum: code_saturne usage
Topic: Divergence of a gradient
Replies: 2
Views: 1825

Divergence of a gradient

Hello, I could like to compute scalar Laplacian, so a divergence of a gradient of a scalar field (div(grad(X))). I found a way to compute the gradient with field_gradient_scalar subroutine. But I can't found the way to compute a divergence or directly a laplacian. Is there someone who can give me ti...