-
Hey, I am looking for a way to load the content of a secondary restart file during initialization. In my case, i want to load previously averaged results to compute some fluctuations during a new run. I guess the iofld class should provide this functionality, but I wasn't quite able to get it to work. When loading the file, I am getting a warning that only part of the data is read (WARNING: restart file has a NSPCAL > LDIMT, read only part of the fld-data!) . Additionally, I was not sure which function one can use to actually access the field data in the udf file. If someone could help in creating a minimal working example, I would gladly appreciate it. Below is a code snippet of my current approach:
Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Refer to the |
Beta Was this translation helpful? Give feedback.
-
Thanks! I simply overlooked calling the process() function. |
Beta Was this translation helpful? Give feedback.
Refer to the
turbPipe
example, where we demonstrate how to write a user-defined field to a file.Note, scalar is a 0-based index. If you want to read the first field you have to use
scalar00
.