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

UDF Interpretation Error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 18, 2011, 11:57
Default UDF Interpretation Error
  #1
New Member
 
Levon
Join Date: Feb 2011
Posts: 3
Rep Power: 15
levonlarson is on a distinguished road
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.
levonlarson is offline   Reply With Quote

Reply

Tags
fluent, udf


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
polynomial thermophysical properties II sebastian OpenFOAM Running, Solving & CFD 54 November 21, 2019 07:12
CGNS Compiling Diego Main CFD Forum 17 December 21, 2014 01:40
OpenFOAM install on Ubuntu Natty 11.04 bkubicek OpenFOAM 13 May 26, 2011 05:48
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50


All times are GMT -4. The time now is 07:39.