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

UDF for time based variable to calculate velocity

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 18, 2013, 07: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, 07:38
Default
  #2
New Member
 
CAO Liushuai
Join Date: Apr 2012
Posts: 26
Rep Power: 5
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

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Derivative of a scalar or a variable through UDF fevi84 Fluent UDF and Scheme Programming 7 February 3, 2015 22:39
Difficulty in calculating angular velocity of Savonius turbine simulation alfaruk CFX 8 December 3, 2013 17:51
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 19:29


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