|
[Sponsors] |
UDF for time based variable to calculate velocity |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
CAO Liushuai
Join Date: Apr 2012
Posts: 30
Rep Power: 15 ![]() |
real t = RP_Get_Real(''flow-time");
have a try ~ |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |