|
[Sponsors] |
executing a script to output nodal locations at time 0 before moving mesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 20, 2020, 09:28 |
executing a script to output nodal locations at time 0 before moving mesh
|
#1 |
Member
Tyler Richardson
Join Date: Jun 2017
Posts: 30
Rep Power: 9 |
Hi,
i have a moving mesh with a UDF that ouputs HTC's every X timesteps beginning at timestep Y (after mass flow ramping and rotation ramping). However, by the time my mass flow and rotation are fully ramped, the mesh is in a different position than the starting position, and is erroneous for mapping to the ANSYS thermal model. I am looking to execute my UDF (DEFINE_ON_DEMAND) at time zero, and not repeat. how can i do this with the TUI? currently i execute the following after several rotations (ramping flow rate, and ramping speed): /solve/execute-commands/add-edit execUDF (rpgetvar'storeudm) "time-step" "/define/user-defined/execute-on-demand "on_demand_calc::HsgUDF"" /solve/execute-commands/add-edit execWRITE (rpgetvar'storeudm) "time-step" "/file/export/ascii hconv_data_%t.csv inflation-rotat_oil_1_elem inflation-static_oil_1_elem inflation-static_oil_2_elem () yes udm-0 () no" Im hoping to be able to execute the two commands above just prior to my initial solve but not "repeat" so i dont get thousands of files Any help would be greatly appreciated! Thanks! |
|
October 20, 2020, 09:35 |
|
#2 |
Member
Tyler Richardson
Join Date: Jun 2017
Posts: 30
Rep Power: 9 |
nevermind, i think i just needed to do this prior to solving:
/file/export/ascii hconv_data_%t.csv inflation-rotat_oil_1_elem inflation-static_oil_1_elem inflation-static_oil_2_elem () () |
|
Tags |
fluent, tui, udf, udm |
|
|
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 |
same geometry,structured and unstructured mesh,different behaviour. | sharonyue | OpenFOAM Running, Solving & CFD | 13 | January 2, 2013 23:40 |
plot over time | fferroni | OpenFOAM Post-Processing | 7 | June 8, 2012 08:56 |
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 | bookie56 | OpenFOAM Installation | 8 | August 13, 2011 05:03 |