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

UDF for time based variable to calculate velocity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 18, 2013, 06:40
Default UDF for time based variable to calculate velocity
  #1
New Member
 
leo
Join Date: Feb 2012
Posts: 1
Rep Power: 0
longhuandu is on a distinguished road
Hello

I am currently doing a very simple simulation in Fluent by using UDF (CG MOTION)
I define my velocity like:
A=2;
w=2;
V=A*sin(w*time);

But what I plan to do next stage is to change the amplitude (A) from known value to time based value like A=2*time;
But if I write
w=2;
A=2*time;
V=A*sin(w*time);
the UDF can not be compiled by Fluent

can anybody help me

thanks a million
longhuandu is offline   Reply With Quote

Old   January 21, 2013, 06:38
Default
  #2
Member
 
shuai_manlou's Avatar
 
CAO Liushuai
Join Date: Apr 2012
Posts: 30
Rep Power: 14
shuai_manlou is on a distinguished road
real t = RP_Get_Real(''flow-time");
have a try ~
shuai_manlou 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
Difficulty in calculating angular velocity of Savonius turbine simulation alfaruk CFX 14 March 17, 2017 06:08
Derivative of a scalar or a variable through UDF fevi84 Fluent UDF and Scheme Programming 7 February 3, 2015 21:39
Velocity profile UDF egge24 Fluent UDF and Scheme Programming 2 May 10, 2012 13:03
UDF for Inlet velocity Mijin Kim FLUENT 0 September 28, 2009 04:50
UDF velocity and temperature Raj FLUENT 3 February 1, 2009 18:29


All times are GMT -4. The time now is 06:14.