I'm trying to run a calculation in which i try to couple ANN resolution for certain fields with the standard numerical resolution and i need to collect certain data every n time steps. One of them is the measure of the normal stress (that i can easily collect during the postprocess phase) which i haven't figure out how to retrieve. I tried calling the field using
stress_normal is not actually stored as a field, but evaluated locally using a cs_function_t mechanism.
The field which is stored is named "boundary_stress" or something similar. Be careful, it is currently extensive and not intensive, so you need to divide values by the surface.
How can i access it then? Beacuse in post-processing i can see both "Normal_stress" and "Stress" as boundary fields and i think the boundary_stress field you are mentioning only refers to "Stress".
Eventually, if i have to evaluate it sohuld i refer to the user example cs_user_extra_operations-nusselt_and_friction_calculation.c?
You should rather check the cs_post_stress_tangential function in src/base/cs_post_util.cpp, and use that as an example, keeping the normal rather than tangential component in your case.