|
[Sponsors] |
how to save parameter in each time step without deleting pervious time step data |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 8, 2022, 18:35 |
how to save parameter in each time step without deleting pervious time step data
|
#1 |
New Member
sheida
Join Date: Mar 2021
Posts: 11
Rep Power: 5 |
hello experts,
I want to save and write one of my defined parameters in a file in each time step without deleting the previous steps' data because I want to compare this parameter in each step. Can anyone help me to know how to save this data by UDF? |
|
April 9, 2022, 08:30 |
|
#2 |
New Member
Jeroen de Graaff
Join Date: Feb 2022
Posts: 9
Rep Power: 4 |
Hey shedo,
You could look into DEFINE_RW_FILE, to write your defined parameter to a file and read the parameter back. This way the data is stored and you can access it. See for more information: https://www.afs.enea.it/project/nept...udf/node29.htm I hope this was usefull! |
|
April 10, 2022, 03:00 |
|
#3 |
New Member
sheida
Join Date: Mar 2021
Posts: 11
Rep Power: 5 |
Dear Jeroen,
thanks for your response. I would like to know whether it is capable of recognizing and recalling the previous step data or not? |
|
April 10, 2022, 04:40 |
|
#4 |
New Member
Jeroen de Graaff
Join Date: Feb 2022
Posts: 9
Rep Power: 4 |
Do you want to use the value for post-processing or for it to be used for later calculations within your simulation?
For post-processing, you can write both the time step and your defined parameter to the file with the macro CURRENT_TIMESTEP. To use it within your simulation you can use another DEFINE_RW_FILE function to read back the data. I hope this was useful |
|
April 10, 2022, 05:23 |
|
#5 |
New Member
sheida
Join Date: Mar 2021
Posts: 11
Rep Power: 5 |
Dear Jeroen,
I want to use it within simulation. your explanation was useful, I do appreciate you. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
courant number increases to rather large values | 6863523 | OpenFOAM Running, Solving & CFD | 22 | July 6, 2023 00:48 |
pimpleDyMFoam computation randomly stops | babapeti | OpenFOAM Running, Solving & CFD | 5 | January 24, 2018 06:28 |
Floating point exception error | lpz_michele | OpenFOAM Running, Solving & CFD | 53 | October 19, 2015 03:50 |
Star cd es-ice solver error | ernarasimman | STAR-CD | 2 | September 12, 2014 01:01 |
Help for the small implementation in turbulence model | shipman | OpenFOAM Programming & Development | 25 | March 19, 2014 11:08 |