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

Issues while running bubbling-EMMS drag udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 6, 2023, 03:04
Post Issues while running bubbling-EMMS drag udf
  #1
New Member
 
Join Date: Nov 2023
Posts: 2
Rep Power: 0
post_grad is on a distinguished road
Hi everyone,
I am currently doing some research on gas-solid fluidization and I am tasked with simulating the fluidization of Geldart B particles with the bubbling EMMS drag model.
I have written the UDF as per the paper: http://dx.doi.org/10.1155/2016/8256816

It includes 7 equations to find different parameters and finally calculate the drag coefficient. I successfully compiled the code but when I run the simulation, I am getting a floating point error. I tried to find the source of the error and I think it has something to do with the calculation of the void fraction of gas in the cells. For some reason, I am getting 1 for the voidage of gas in the cells. I think it should be below 1.

I have attached my code for reference.
Any help would be greatly appreciated.
Attached Files
File Type: c bubbling_emms.c (3.8 KB, 3 views)
post_grad is offline   Reply With Quote

Reply

Tags
emms, floating point error, udf and programming


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
Mimicking Morsi-Alexander Drag Law UDF HHOS Fluent UDF and Scheme Programming 0 November 9, 2023 11:10
UDF for drag force piaoyangdexue Fluent UDF and Scheme Programming 1 November 3, 2023 14:11
udf for compute pressure drag force fatemi Fluent UDF and Scheme Programming 1 January 26, 2018 13:27
Induced drag, pressure drag, viscous drag. aleix.de.toro FLUENT 2 August 24, 2015 18:00
UDF issues ehooi FLUENT 4 May 13, 2011 05:21


All times are GMT -4. The time now is 02:04.