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

Using UDF to define parameter

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By kirmaks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 24, 2017, 03:00
Question Using UDF to define parameter
  #1
New Member
 
Oleg Vlasov
Join Date: Oct 2014
Posts: 15
Rep Power: 12
Oleg V. is on a distinguished road
Dear friends!
I am trying to solve transient problem. For my case I need to specify time-depended gravity, but I don't know how to do it. The only thing that I can specify for gravity is parameter. That's why my question is: how can I define the value of the parameter in UDF?
I mean that the value for gravity will be changed in each time step (using real t = CURRENT_TIME).

Oleg
Oleg V. is offline   Reply With Quote

Old   January 24, 2017, 03:23
Default
  #2
Member
 
KirMaks
Join Date: Aug 2016
Posts: 34
Rep Power: 10
kirmaks is on a distinguished road
Hallo, You can replace Your gravity with the source in NS equations and then use source UDF to change the gravity vector with time as it is described here:

UDF to modify gravity via M_gravity[ND_ND] or DEFINE_ADJUST

Best regards, Maksim
pakk and Oleg V. like this.
kirmaks is offline   Reply With Quote

Old   January 24, 2017, 03:55
Default
  #3
New Member
 
Oleg Vlasov
Join Date: Oct 2014
Posts: 15
Rep Power: 12
Oleg V. is on a distinguished road
kirmaks,
Thank you so much!
That's exactly what I need! It helped me to define all gravity components!
Oleg V. 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
WILLING TO PAY/ FREELANCER REQUIRED / small UDF coding force loads over body / 6DOF acasas CFD Freelancers 1 January 23, 2015 08:26
Please help UDF error!!!! dinhanh Fluent UDF and Scheme Programming 3 September 26, 2014 05:10
How to use UDF to define a moving wall lingo FLUENT 9 August 19, 2014 10:14
use of pointers in specific heat udf mdakbari Fluent UDF and Scheme Programming 0 April 18, 2014 12:37
UDF problem libia87 Fluent UDF and Scheme Programming 1 May 4, 2012 22:49


All times are GMT -4. The time now is 22:40.