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

Feedback between FLUENT and an UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 27, 2017, 10:21
Smile Feedback between FLUENT and an UDF
  #1
New Member
 
Join Date: Dec 2016
Posts: 11
Rep Power: 9
TimTUBAF is on a distinguished road
Hi everyone,

I'm currently working on an UDF to calculate the boby drag force on a particle due to the magnetic force applied on it.

The UDF computes the magnetic force applied on the particle and the displacement.
My question is: how do I transfer the values of the displacement back to FLUENT to display the calculated displacement with the particle track linies?

Is there anyone with the same problem, or if an simuliar UDF.


Thanks,


Tim
TimTUBAF is offline   Reply With Quote

Old   February 28, 2017, 08:31
Default
  #2
Member
 
KirMaks
Join Date: Aug 2016
Posts: 34
Rep Power: 10
kirmaks is on a distinguished road
Hallo Tim,

I would like to propose to make it with the particle injection. You can then use DEFINE_DPM_BODY_FORCE macro to introduce Your EM force. The particle trajectory will be computed including drag and Your provided body force (you may also check about gravity). I think this trajectory can be written to a text file or displayed by FLUENT.

Best regards, Maks
kirmaks is offline   Reply With Quote

Old   February 28, 2017, 09:16
Default
  #3
New Member
 
Join Date: Dec 2016
Posts: 11
Rep Power: 9
TimTUBAF is on a distinguished road
Hi Maks,

Thanks for your answer.

Quote:
You can then use DEFINE_DPM_BODY_FORCE macro to introduce Your EM force.
I already used the DEFINE_DPM_BODY_FORCE in the UDF. I didnt know that the macro computes the drag itself... I thought you had to calculte yourself.

But thanks for the info

Tim
TimTUBAF is offline   Reply With Quote

Old   March 9, 2017, 10:58
Default
  #4
New Member
 
Join Date: Dec 2016
Posts: 11
Rep Power: 9
TimTUBAF is on a distinguished road
Hi everyone,

I got an extra question regarding the feed above.

The UDF should compute the magnetic force, but what about the direction of it?
The UDF-Manual has an example UDF in it but I can't figure out where the direction of the force is involved?

Can anybody help?

Tim
TimTUBAF is offline   Reply With Quote

Reply

Tags
body drag, feedback, magnetic, udf


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



All times are GMT -4. The time now is 19:46.