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, 02:00
Question Using UDF to define parameter
  #1
New Member
 
Oleg Vlasov
Join Date: Oct 2014
Posts: 15
Rep Power: 11
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, 02:23
Default
  #2
Member
 
KirMaks
Join Date: Aug 2016
Posts: 34
Rep Power: 9
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, 02:55
Default
  #3
New Member
 
Oleg Vlasov
Join Date: Oct 2014
Posts: 15
Rep Power: 11
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 07:26
Please help UDF error!!!! dinhanh Fluent UDF and Scheme Programming 3 September 26, 2014 04:10
How to use UDF to define a moving wall lingo FLUENT 9 August 19, 2014 09:14
use of pointers in specific heat udf mdakbari Fluent UDF and Scheme Programming 0 April 18, 2014 11:37
UDF problem libia87 Fluent UDF and Scheme Programming 1 May 4, 2012 21:49


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