|
[Sponsors] |
July 18, 2011, 12:57 |
UDF Interpretation Error
|
#1 |
New Member
Levon
Join Date: Feb 2011
Posts: 3
Rep Power: 15 |
Hi, I am trying to impose a time-dependent boundary condition on a face with a UDF. I am using a monitor to verify that my input function is being read properly and I see that Fluent is interpreting a function other than the one that I am inputting. My UDF is as follows:
#include "udf.h" DEFINE_PROFILE(unsteady_pressure, thread, position) { face_t f; real t = CURRENT_TIME; begin_f_loop(f, thread) { F_PROFILE(f, thread, position) = (912199393440*t)*t + (1260098450)*t; } end_f_loop(f, thread) } The problem is that Fluent is reading the above function and reading back the following function with an area-weighted average monitor: p = 2348190783*t*t + 1259645132*t Notice that the linear term is interpreted properly but the squared term is not. I have also verified that this is not an issue with choosing to use an area-weighted average monitor instead of something else like an integral or max or whatever. Has anyone else seen this before? Thanks. |
|
Tags |
fluent, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
polynomial thermophysical properties II | sebastian | OpenFOAM Running, Solving & CFD | 54 | November 21, 2019 08:12 |
CGNS Compiling | Diego | Main CFD Forum | 17 | December 21, 2014 02:40 |
OpenFOAM install on Ubuntu Natty 11.04 | bkubicek | OpenFOAM | 13 | May 26, 2011 06:48 |
Installation OF1.5-dev | ttdtud | OpenFOAM Installation | 46 | May 5, 2009 03:32 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 21:50 |