I am having trouble trying to calculate the time moments of the relative velocities for my case (which uses transient turbomachinery model). I have included the relevant function as per Example 5 from doxygen in cs_user_parameters.c. However I find that when the following line
Code: Select all
const cs_rotation_t *rot = cs_glob_rotation
is executed the variable rot doesnot contain the correct values for omega and axis but zeroes for both. I have called the function rotation_define in cs_user_parameters.f90 to provide my values for rotation vector and invariant point. I even tried placing the cs_rotation_define function within the time-moments code. Please see my attached src files and listing.
(FYI, the simulations run fine and only calculating these particular moments is the issue).
Apologies in advance if this problem is trivial (as I am not very proficient with C).
Many thanks,
Michael