cannot access the added members to cs_fluid_properties_t
Posted: Fri Oct 06, 2023 12:52 pm
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_fluid_properties(). Meanwhile, I built up the binding for tauhrp to the Fortran code in cstphy.f90 and included the cs_c_bindings.f90 in the SRC folder. After I put these files into the SRC, I tried to use the tauhrp in the cs_user_parameters.c by fp->tauhrp=1.0. However, the code have the following error:
error: ‘cs_fluid_properties_t’ {aka ‘struct <anonymous>’} has no member named ‘tauhrp’
fp->tauhrp =1.0;
but the values of tauhrp=4.5 has been passed to the fortran code when I use it in the cs_user_modules.f90.
I have attached the cs_physical_constants.h and cs_physical_constants.c
Does anyone has the same issue as I have and any suggestions are appreciated.
Best regards,
Liyuan
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_fluid_properties(). Meanwhile, I built up the binding for tauhrp to the Fortran code in cstphy.f90 and included the cs_c_bindings.f90 in the SRC folder. After I put these files into the SRC, I tried to use the tauhrp in the cs_user_parameters.c by fp->tauhrp=1.0. However, the code have the following error:
error: ‘cs_fluid_properties_t’ {aka ‘struct <anonymous>’} has no member named ‘tauhrp’
fp->tauhrp =1.0;
but the values of tauhrp=4.5 has been passed to the fortran code when I use it in the cs_user_modules.f90.
I have attached the cs_physical_constants.h and cs_physical_constants.c
Does anyone has the same issue as I have and any suggestions are appreciated.
Best regards,
Liyuan