|
[Sponsors] |
March 23, 2017, 02:53 |
Hooking a UDM function.
|
#1 |
Member
sebastian bergman
Join Date: Mar 2017
Location: seattle
Posts: 52
Rep Power: 9 |
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? |
|
March 23, 2017, 03:45 |
|
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
I would use DEFINE_ON_DEMAND. See the help for more info.
|
|
|
|
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 |