Search found 7 matches

by Li Ma
Mon Mar 20, 2023 4:15 pm
Forum: code_saturne usage
Topic: errors when use cs_user_initialization.f90
Replies: 6
Views: 2253

Re: errors when use cs_user_initialization.f90

Hello, The variation in density is not necessarily linked to the compresibility of the fluids. As you see in your case, the density is only or almost only a function of temperature, sometimes the density is a function of mixture of two gases too, though the Mach number is actually low(even smaller t...
by Li Ma
Fri Mar 17, 2023 6:33 pm
Forum: code_saturne usage
Topic: errors when use cs_user_initialization.f90
Replies: 6
Views: 2253

Re: errors when use cs_user_initialization.f90

So you just need to use the idilat option to represent the variable density.
Feel free if you have any questions about the initialization

Li
by Li Ma
Fri Mar 17, 2023 6:28 pm
Forum: code_saturne usage
Topic: Variable density issue for for gas combustion with EBU model
Replies: 5
Views: 1883

Re: Variable density issue for for gas combustion with EBU model

I made a mistake of structure name.
It should be
cs_velocity_pressure_model_t *vp_model
= cs_get_glob_velocity_pressure_model();
then you can change it by
vp_model->idilat = 2;
by Li Ma
Thu Mar 16, 2023 8:00 pm
Forum: code_saturne usage
Topic: errors when use cs_user_initialization.f90
Replies: 6
Views: 2253

Re: errors when use cs_user_initialization.f90

It seems there were errors of dimension when accessing the velocity array. under fortran if you get the pointer of velocity vel, then the initialisation for the cell iel is vel(1, iel) = u0 vel(2, iel) = v0 vel(3, iel) = w0. Notice now the compressible module is not compatible with combustion module...
by Li Ma
Thu Mar 16, 2023 7:50 pm
Forum: code_saturne usage
Topic: Variable density issue for for gas combustion with EBU model
Replies: 5
Views: 1883

Re: Variable density issue for for gas combustion with EBU model

you can change te idilat to 2 in cs_user_parameters-base.c by setting void cs_user_parameters(cs_domain_t *domain) { cs_glob_velocity_pressure_param->idilat = 2 ; } In addition, it is possible that density is not postprocessed in visualization output. You can enforce the option by setting void cs_us...
by Li Ma
Wed Mar 15, 2023 3:35 pm
Forum: code_saturne usage
Topic: Variable density issue for for gas combustion with EBU model
Replies: 5
Views: 1883

Re: Variable density issue for for gas combustion with EBU model

Hello, irovar = 1 doesn't necessarily mean that the density variation is taken into account in the fluids equations, it indicates the density may be a function of a state law. You may find the idilat option in setup.log of your run folder that indicates which dilatation model you used. Could you ple...
by Li Ma
Fri Nov 18, 2022 4:47 pm
Forum: code_saturne usage
Topic: Gas combustion: What is reaction kinetic model (flame stability)
Replies: 5
Views: 2080

Re: Gas combustion: What is reaction kinetic model (flame stability)

Hello, Sorry for the response a little bit late. I tested this case rapidly. It is true that the ignite process is not observed whatever the inlet temperature is set. I got some information that may help you from one researcher who used Libby Williams model (maybe the only one at EDF R&D for now...