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

Ansys Fluent 17 UDF Velocity Profile Update.

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 14, 2016, 11:34
Unhappy Ansys Fluent 17 UDF Velocity Profile Update.
  #1
New Member
 
Phillip Marlow
Join Date: Oct 2016
Posts: 4
Rep Power: 10
Phil-M is on a distinguished road
Hello,

I have been given a velocity profile UDF made for a previous version of ANSYS, which however does not work in Fluent 17.

Any input on how to update this to work in Fluent 17 would be greatly appreciated.

#include "udf.h"

DEFINE_PROFILE(inlet_parab,thread,equation)
{
float x[3],y; /*face centroid coordinates */
face_t f; /* face identifier*/
float Vz;
float C1 = 1.76E-6;
float C2 = 2E-5;
float C3 = 6E-4;
float C4 = 2.1E-2;
float Const = 1.79;

/* loop on all faces belonging to the current thread */

begin_f_loop(f,thread)
{
F_CENTROID(x,f,thread); /*get the face centroid coordinates*/
y=x[1]; /*get the y coordinate */
Vz = -(C1*y*y*y*y)-(C2*y*y*y)+(C3*y*y)+(C4*y)+ Const; /*equation fit at 1.79 m/s to channel flow */
F_PROFILE(f,thread,equation)=Vz;
}
end_f_loop(f,thread)
}


Kind Regards, Phil.
Phil-M is offline   Reply With Quote

Old   October 17, 2016, 05:29
Default
  #2
Member
 
Join Date: Jun 2016
Posts: 66
Rep Power: 11
Zbynek is on a distinguished road
What error message do you get?
Zbynek is offline   Reply With Quote

Old   October 17, 2016, 06:23
Default
  #3
New Member
 
Phillip Marlow
Join Date: Oct 2016
Posts: 4
Rep Power: 10
Phil-M is on a distinguished road
Hi Zbynek,

This is the error message I am currently getting.






Many thanks for your response,

Phil.
Phil-M is offline   Reply With Quote

Old   October 17, 2016, 09:30
Default
  #4
Member
 
Join Date: Jun 2016
Posts: 66
Rep Power: 11
Zbynek is on a distinguished road
As the error message says - you did not compile the UDF, or not at least for the double precision solver (dpp). Install Visual Studio and compile the code. You can find several threads about this on this portal.
Zbynek is offline   Reply With Quote

Old   October 17, 2016, 10:05
Default
  #5
New Member
 
Phillip Marlow
Join Date: Oct 2016
Posts: 4
Rep Power: 10
Phil-M is on a distinguished road
Many thanks, I shall give that a go.
Phil-M is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Velocity profile UDf ejpostema Fluent UDF and Scheme Programming 0 August 15, 2016 11:17
Import Velocity Profile from CFX to Fluent Ofcozz FLUENT 1 December 18, 2015 11:47
Drawing a velocity profile as inlet boundary condition in Fluent ANSYS ???? hasanifte FLUENT 2 February 18, 2015 13:44
3D UDF Paraboilc Velocity Profile with max velocity johnGo Fluent UDF and Scheme Programming 1 January 4, 2011 22:45
Logarithmic velocity profile cfdworker Fluent UDF and Scheme Programming 0 April 23, 2009 20:09


All times are GMT -4. The time now is 08:44.