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

Hooking a UDM function.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2017, 02:53
Default Hooking a UDM function.
  #1
Member
 
sebastian bergman
Join Date: Mar 2017
Location: seattle
Posts: 52
Rep Power: 9
Tushar_Telmasre is on a distinguished road
I did write a simple code to save my temperature data in a udm.


#include "udf.h"
real temp;
cell_t c;
Thread *t;
begin_c_loop(c,t)
{
temp = C_T(c,t);
F_UDMI(c,t,0) = temp;
}
end_c_loop(c,t)

it is not getting interpreted.
I want to know which macro I need to use to hook this function to fluent.
I want to further define a custom field function with value udm0 and plot it at the end of calculation. The contours of that should be same as the contours of temperature.

Can anyone please have a look and suggest any mistake? also how and where do I hook this UDF?
Tushar_Telmasre is offline   Reply With Quote

Old   March 23, 2017, 03:45
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
I would use DEFINE_ON_DEMAND. See the help for more info.
pakk is offline   Reply With Quote

Reply


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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
Lets talk about relaxation factor optimization chriss85 OpenFOAM Running, Solving & CFD 35 June 21, 2019 10:54
compressible flow in turbocharger riesotto OpenFOAM 50 May 26, 2014 02:47
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 10:56
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 21:50


All times are GMT -4. The time now is 18:52.