Search found 11 matches

by CandiceLIU
Mon Dec 04, 2023 1:30 pm
Forum: code_saturne usage
Topic: parallelization issues in the cs_user_extra_operations.c
Replies: 1
Views: 25066

parallelization issues in the cs_user_extra_operations.c

Dear Code_Saturne users, I am struggling with the parallelization in the cs_user_extra_operations.c. I am using Version 7 and set up the case by SRC. Firstly, I calculate the shortest distance by using cs_geom_closest_point of each grid cell (domain->mesh_quantities->cell_cen) to the wall surface (d...
by CandiceLIU
Fri Oct 06, 2023 12:52 pm
Forum: code_saturne usage
Topic: cannot access the added members to cs_fluid_properties_t
Replies: 1
Views: 9751

cannot access the added members to cs_fluid_properties_t

Dear Forum users, I have added an additional member to cs_fluid_properties_t, tauhrp( heat release parameter) in the cs_physical_constants.h and finished the mian fluid properties structure and associated pointer and give the value of tauhrp=4.5 in the cs_physical_constants.c at the cs_get_glob_flui...
by CandiceLIU
Tue Mar 21, 2023 6:19 pm
Forum: code_saturne usage
Topic: errors when use cs_user_initialization.f90
Replies: 6
Views: 2246

Re: errors when use cs_user_initialization.f90

Hey Li,

Thanks for your informative reply. Now I can understand. My problems are solved by implementing the BML expression.
I have attached the code as well for others who have the same confusion.

Best regards,
Liyuan
by CandiceLIU
Sat Mar 18, 2023 10:13 pm
Forum: code_saturne usage
Topic: errors when use cs_user_initialization.f90
Replies: 6
Views: 2246

Re: errors when use cs_user_initialization.f90

Dear Li, I have used the incompressible with variable density as you suggested. I have figured out the variable density issue by using the cs_user_initialization.c and cs_user_physical_properties.c Now the density output is as expected. However, I feel confused about how the algorithm works by using...
by CandiceLIU
Fri Mar 17, 2023 5:16 pm
Forum: code_saturne usage
Topic: errors when use cs_user_initialization.f90
Replies: 6
Views: 2246

Re: errors when use cs_user_initialization.f90

Thanks Li for your reply.

I am setting up a case with low Ma number. I was trying to set up a state equation by using the cs_user_physical_properties.f90 and the cs_user_initialization.f90 was required. Currently, what I need is having an viable density with temperature follow the BML expression.
by CandiceLIU
Fri Mar 17, 2023 4:12 pm
Forum: code_saturne usage
Topic: Variable density issue for for gas combustion with EBU model
Replies: 5
Views: 1874

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

Dear Li, Thanks for your swift reply. The density has been output in the post processing. I have implemented that code and now it has an error like below: ‘cs_velocity_pressure_param_t’ {aka ‘const struct <anonymous>’} has no member named ‘idilat’ it seems like idilat is a static variable. I have al...
by CandiceLIU
Thu Mar 16, 2023 4:53 pm
Forum: code_saturne usage
Topic: errors when use cs_user_initialization.f90
Replies: 6
Views: 2246

errors when use cs_user_initialization.f90

Dear code_saturne developers and users I am using code_saturne V7. When I used cs_user_initialization-compressbile.f90, I had an error as shown in the figure. Same error occurs when I used cs_user_initialization-gas_ebu.f90 for the combustion case. Does anyone also have the same problems when using ...
by CandiceLIU
Thu Mar 16, 2023 1:00 pm
Forum: code_saturne usage
Topic: Variable density issue for for gas combustion with EBU model
Replies: 5
Views: 1874

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

Hello Li,

Thanks for your reply. idilat=1 in the setup.log and I have attached the file.

Best regards,
Liyuan
by CandiceLIU
Thu Mar 09, 2023 4:35 pm
Forum: Discussion
Topic: Variable density issue for for gas combustion with EBU model
Replies: 2
Views: 12469

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

Thanks Yvan for your swift reply. I have transferred it to the code_saturne usage section.
by CandiceLIU
Thu Mar 09, 2023 4:33 pm
Forum: code_saturne usage
Topic: Variable density issue for for gas combustion with EBU model
Replies: 5
Views: 1874

Variable density issue for for gas combustion with EBU model

Dear Code_Saturne developers and users, There seems to be a bug in the code regarding the activation of irovar=1 option in the main part of the code when gas phase combustion, especially the EBU model. The case setup has been done in the same manner as I have done it in Version-2 of Code_Saturne. Wh...