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

DEFINE_DPM_BODY_FORCE problem with the direction

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 15, 2017, 12:05
Default DEFINE_DPM_BODY_FORCE problem with the direction
  #1
New Member
 
Join Date: Dec 2016
Posts: 11
Rep Power: 9
TimTUBAF is on a distinguished road
Hi everybody,

You may saw my previous posts about my current UDF.

I'm working on an UDF to compute the magnetic force on a magnetit-particle. In order to do that, I'm using the DPM_BODY_FOCE macro for the UDF-Manual.

My question is:

how can't I get the direction in which the force is applied? Do I have to make an if-statement like in the example UDF with:

Code:
if(i==0) ...
else if(i==1) ...
else(i==2) ...
And what should I return to Fluent? An acceleration ?


Please help me !!



Thanks


Tim
TimTUBAF 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
ERROR: Flow direction on the boundaries must not be tangential to the boundary. turbomax CFX 2 August 6, 2015 11:05
problem with initial velocity in z direction in twophase eulerfoam Hamzeh_Mirab OpenFOAM 0 January 15, 2015 07:43
Where might I obtain a copy of FOAM-2.2/2.3...? bigphil OpenFOAM 5 July 27, 2010 11:54
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13


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