access velocity x,y,z
Posted: Tue Feb 19, 2019 5:59 pm
Hello,
I need to access the velocity, on x, y and z direction, from inside the cs_wall_functions_2scales_log, "cs_wall_functions.h" file.
I assume the variable "vel" is the velocity in the x direction, it is correct?
From doxygen documentation, I understood that I should use this "cs_real_3_t *cvar_vel = (cs_real_3_t *)CS_F_(u)->val" but after when I try to access "uy = cvar_vel[cell_id][1]" I don't know "[cell_id]".
Can anyone help me solve this problem?
Thank you very much,
Ionut
I need to access the velocity, on x, y and z direction, from inside the cs_wall_functions_2scales_log, "cs_wall_functions.h" file.
I assume the variable "vel" is the velocity in the x direction, it is correct?
From doxygen documentation, I understood that I should use this "cs_real_3_t *cvar_vel = (cs_real_3_t *)CS_F_(u)->val" but after when I try to access "uy = cvar_vel[cell_id][1]" I don't know "[cell_id]".
Can anyone help me solve this problem?
Thank you very much,
Ionut