|
[Sponsors] |
how to dump UDM surface data do text files at specified timesteps? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 15, 2020, 12:14 |
how to dump UDM surface data do text files at specified timesteps?
|
#1 |
Member
Tyler Richardson
Join Date: Jun 2017
Posts: 30
Rep Power: 9 |
Hi,
i am adapting a journal file and associated compiled script from pseudo-transient to full transient. i am looking to store the UDM information as retrieved in the compiled script to a text file (as now i will want many instances of this data rather than once at the end) is there a simple way to dump C_UDMI(c0,t0,0) to an array in a text file? I am not incredibly familiar with C, but my simple searches in the last hour or so suggest incrementing text file names (i.e. UDM1.dat, UDM2.dat ... etc) is not trivial.. any help would be greatly appreciated! |
|
June 15, 2020, 16:24 |
Ascii
|
#2 |
Senior Member
|
It is straightforward actually. Use File > Export > ASCII and select all UDMs that you want to write with a frequency that you want, say, every time-step or every 5th time-step.
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
June 15, 2020, 18:04 |
|
#3 | |
Member
Tyler Richardson
Join Date: Jun 2017
Posts: 30
Rep Power: 9 |
Quote:
Does this suggest that i need to switch from an execute-on-demand function to something that calculates every iteration? is there a TUI command to do this so i can incorporate it into my journal? THanks for all the help! |
||
June 16, 2020, 04:58 |
Udf
|
#4 |
Senior Member
|
An on-demand UDF can be executed either via GUI or via command. Or you could change ON_DEMAND to EXECUTE_AT_END and hook it. That would be executed at end of every iteration (or at the end of time-step if the case is transient). UDF will be updated accordingly. And you can use same frequency for writing ASCII files.
You can use journal to do both, call on-demand function and write ASCII files.
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
Tags |
define_on_command, text, udf, udm |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Run OpenFoam in 2 nodes of a cluster | WhiteW | OpenFOAM Running, Solving & CFD | 16 | December 20, 2016 01:51 |
[Gmsh] Error : Self intersecting surface mesh, computing intersections & Error : Impossible | velan | OpenFOAM Meshing & Mesh Conversion | 3 | October 22, 2015 12:05 |
saving Transient/Unsteady data of multiple surface integrals in single file | ankur gupta | FLUENT | 0 | February 22, 2012 14:59 |
Writing Case and Data Files Using Journal/Scheme Files | svp | Fluent UDF and Scheme Programming | 0 | April 5, 2011 12:04 |
Results saving in CFD | hawk | Main CFD Forum | 16 | July 21, 2005 21:51 |