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

unexpected behaviour of UDF - problems with the coordinate system in Fluent

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 5, 2016, 10:51
Default unexpected behaviour of UDF - problems with the coordinate system in Fluent
  #1
New Member
 
Sarah Garden
Join Date: Sep 2014
Posts: 10
Rep Power: 12
SarahG is on a distinguished road
I have a UDF for a square wave profile for a pressure-inlet zone named ejection which works..
But I noticed it works in a peculiar way. If it says this

pressure = sin(0.52*(t-1.3482)-(5*PI/7));
/* local variables */

if(pressure > 0.75)
{
F_PROFILE(f, thread, position) = 0.5;
}
else
{
F_PROFILE(f, thread, position) = 0.0;
}

It's on for 3/4 of the cycle and off for 1/4 - totally the other way round to what I expected.

In another instance, a UDF to cause pitching of the aerofoil needed an arbitrary pi/2 to get the sense of the pitching right. I also had to rotate the aerofoil in the mesh to the mean angle or else, if was positioned at 0 degrees, it would rotate entirely in the negative quadrant.

I'm running a couple more simulations now, which I think will work as I expect them to. But does anyone know if there is a particular reason for this? Is there a different coordinate system in Fluent?

Appreciate any input, thanks
SarahG 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
FLUENT installation on UBUNTU 12.04 (LTS) teymourj FLUENT 2 March 1, 2017 23:24
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 14:41
How to get the local coordinate Z via UDF or other way in Fluent JoaoSilva Fluent UDF and Scheme Programming 0 July 17, 2015 08:33
Problem in using parallel process in fluent 14 Tleja FLUENT 3 September 13, 2013 11:54
problem in using parallel process in fluent 14 aydinkabir88 FLUENT 1 July 10, 2013 03:00


All times are GMT -4. The time now is 00:50.