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

UDF For DPM Storing Variable

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 1, 2018, 11:12
Default UDF For DPM Storing Variable
  #1
Member
 
sunil kumar
Join Date: May 2016
Posts: 80
Rep Power: 10
skumar112 is on a distinguished road
I am trying to store the mass of droplets before evaopration as I need it for a calculation within fluent I have tried to compile it as below but it does not seem to be working.

real old_m;

DEFINE_DPM_LAW(old_mass, tp, ci)
{
/* store old mass */
old_m = P_MASS(tp);
}

I would really appreciate the help
skumar112 is offline   Reply With Quote

Old   March 1, 2018, 11:30
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
Quote:
it does not seem to be working
Be more specific.
Does it compile?
Does it give warnings?
Does it crash Fluent?
Does it cause divergence?
Does it give no results?
Does it give unexpected results?

Don't let us guess your problem...
pakk is offline   Reply With Quote

Old   March 1, 2018, 11:31
Default
  #3
Member
 
sunil kumar
Join Date: May 2016
Posts: 80
Rep Power: 10
skumar112 is on a distinguished road
Sorry about that It is not compiling
skumar112 is offline   Reply With Quote

Old   March 1, 2018, 11:35
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
If I go to the manual entry for DEFINE_DPM_LAW, I see that they use TP_MASS(tp) to get the mass instead of P_MASS(tp). So my first guess would be to do what the manual says...
pakk 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
Using a calculated variable in another UDF hwet Fluent UDF and Scheme Programming 12 November 26, 2015 04:36
UDF error for variable Cp B.Hamada Fluent UDF and Scheme Programming 4 May 18, 2015 07:27
udf for variable cp B.Hamada Fluent UDF and Scheme Programming 2 April 22, 2015 15:20
modify a intern variable of Fluent with scheme and UDF fanch33 Fluent UDF and Scheme Programming 3 March 2, 2015 12:01
Do I need to use UDF to get time-averaged variable? ivanbuz Fluent UDF and Scheme Programming 0 August 11, 2009 15:26


All times are GMT -4. The time now is 20:26.