Advanced question about time moments
Posted: Thu Apr 22, 2021 4:58 pm
Hi,
I'm using v6.0.6 and I used the examples provided in cs_user_parameters-time_moments.c .
It works fine but I would like to import a user-defined variable to calculate t_start, so I can make t_start a function of some constant parameters of the flow (e.g. a given number of transit times...)
I define "transit_time" in cs_user_modules.f90, and so I'd like to access it from the C function that computes time moments.
I checked the documentation, grep'd the sources and did not find anything fully satisfactory.
I thought of a couple of possibilities, among which defining a structure like vcopt, with various parameters inside it. But I did not find where/how vcopt is created, and thus could not follow its example.
Or there's probably a way of calling this transit_time that I define in the Fortran API, from a C function.
Could someone help me ? If I missed an example in the source code, any keyword would become.
Thanks in advance, best regards,
Christophe
I'm using v6.0.6 and I used the examples provided in cs_user_parameters-time_moments.c .
It works fine but I would like to import a user-defined variable to calculate t_start, so I can make t_start a function of some constant parameters of the flow (e.g. a given number of transit times...)
I define "transit_time" in cs_user_modules.f90, and so I'd like to access it from the C function that computes time moments.
I checked the documentation, grep'd the sources and did not find anything fully satisfactory.
I thought of a couple of possibilities, among which defining a structure like vcopt, with various parameters inside it. But I did not find where/how vcopt is created, and thus could not follow its example.
Or there's probably a way of calling this transit_time that I define in the Fortran API, from a C function.
Could someone help me ? If I missed an example in the source code, any keyword would become.
Thanks in advance, best regards,
Christophe