|
[Sponsors] |
UDF for time based variable to calculate velocity |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 18, 2013, 07:40 |
UDF for time based variable to calculate velocity
|
#1 |
New Member
leo
Join Date: Feb 2012
Posts: 1
Rep Power: 0 |
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 |
|
January 21, 2013, 07:38 |
|
#2 |
Member
CAO Liushuai
Join Date: Apr 2012
Posts: 30
Rep Power: 14 |
real t = RP_Get_Real(''flow-time");
have a try ~ |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Difficulty in calculating angular velocity of Savonius turbine simulation | alfaruk | CFX | 14 | March 17, 2017 07:08 |
Derivative of a scalar or a variable through UDF | fevi84 | Fluent UDF and Scheme Programming | 7 | February 3, 2015 22:39 |
Velocity profile UDF | egge24 | Fluent UDF and Scheme Programming | 2 | May 10, 2012 14:03 |
UDF for Inlet velocity | Mijin Kim | FLUENT | 0 | September 28, 2009 05:50 |
UDF velocity and temperature | Raj | FLUENT | 3 | February 1, 2009 19:29 |