CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

executing a script to output nodal locations at time 0 before moving mesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 20, 2020, 09:28
Default 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
tricha122 is on a distinguished road
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!
tricha122 is offline   Reply With Quote

Old   October 20, 2020, 09:35
Default
  #2
Member
 
Tyler Richardson
Join Date: Jun 2017
Posts: 30
Rep Power: 9
tricha122 is on a distinguished road
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 () ()
tricha122 is offline   Reply With Quote

Reply

Tags
fluent, tui, udf, udm


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 23:01.