Computing moments of gradient
Posted: Mon Apr 11, 2016 5:21 pm
Dear users, developpers,
I am trying to compute the moments (mean and variance) of the velocity gradient. Following the examples, in cs_user_time_moments, I am using cs_time_moment_define_by_func to use a function which compute the velocity gradient.
But there is a problem : the gradient is defined on the (real+ghost) cells while the moments are only defined on the real cells. Is it possible to remove the ghost values from the field? Or to compute the gradient only on the real cells?
I am running version 4.0.4 (with fixed cs_time_moment.c). Attached is the corresponding file cs_user_parameters.c
Best regards,
Cedric
I am trying to compute the moments (mean and variance) of the velocity gradient. Following the examples, in cs_user_time_moments, I am using cs_time_moment_define_by_func to use a function which compute the velocity gradient.
But there is a problem : the gradient is defined on the (real+ghost) cells while the moments are only defined on the real cells. Is it possible to remove the ghost values from the field? Or to compute the gradient only on the real cells?
I am running version 4.0.4 (with fixed cs_time_moment.c). Attached is the corresponding file cs_user_parameters.c
Best regards,
Cedric