Dear support,
I am trying to export my residuals into an external file (for simulation logging and data convergence check). I have set the residual configuration like this:
Get residuals state
residuals_state = session.settings.solution.monitor.residual.get_state()
Modify state
residuals_state['equations'] = {'continuity': {'absolute_criteria': 1e-3, 'check_convergence': False, 'monitor': True},
'energy': {'absolute_criteria': 1e-6, 'check_convergence': False, 'monitor': True},
'nut': {'absolute_criteria': 1e-3, 'check_convergence': False, 'monitor': True},
'x-velocity': {'absolute_criteria': 1e-3, 'check_convergence': False, 'monitor': True},
'y-velocity': {'absolute_criteria': 1e-3, 'check_convergence': False, 'monitor': True}}
residuals_state['options'] = {'criterion_type': 'absolute',
'n_display': 1000,
'n_save': 1000,
'normalize': False,
'plot': True,
'print': True,
'residual_values': {'compute_local_scale': False, 'scale_residuals': True}}
Set residuals state
session.settings.solution.monitor.residual.set_state(residuals_state)
This works fine but as soon as I use:
session.settings.solution.monitor.residual.write(file_name='.\residuals.out')
the residuals or any other reports aren't printed anymore in the terminal and only 1 iteration is printed in the file 'residuals.out'. It seems that the write method disrups the whole data logging process and I am not sure how to handle it. Can I get some support on this? Thank you in advance!