Collecting variable values at different timesteps
Posted: Tue Sep 10, 2024 3:27 pm
Hello everyone,
I'm trying to collect time series of data in code_saturne during the calculation itself and not during the post-process phase (i.e., the simulation is running and i collect the data in a user-defined array). This is needed because i'm trying to have full coupling with a neural network which requires time series of data to perform predictions.
Looking at the documentation i found two function: field_get_val_prev2_s(), field_get_val_prev_s(), both return the previous values array for the previous iteration (is there any difference between the two?). I'm wondering if there is any way of retrieving values from even more in the past (i.e., from 10 timesteps ago).
Thanks for the help,
Francesco
I'm trying to collect time series of data in code_saturne during the calculation itself and not during the post-process phase (i.e., the simulation is running and i collect the data in a user-defined array). This is needed because i'm trying to have full coupling with a neural network which requires time series of data to perform predictions.
Looking at the documentation i found two function: field_get_val_prev2_s(), field_get_val_prev_s(), both return the previous values array for the previous iteration (is there any difference between the two?). I'm wondering if there is any way of retrieving values from even more in the past (i.e., from 10 timesteps ago).
Thanks for the help,
Francesco