CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Particle momentum source

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 4, 2008, 21:47
Default Particle momentum source
  #1
alvio
Guest
 
Posts: n/a
Hi, I am trying to use user function to calculate different forces acting on particles while using lagrangian simulation. As a first step I started by making the example of fortran code routine used to calculate a Schiller-Naumann drag force.

When it calls the subroutine, the following is written:

CALL USER_MOMENTUM_SOURCE (RET(1,1),RET(1,4),RET(1,5), & ARG(1,1),ARG(1,2),ARG(1,5),ARG(1,6), & ARG(1,7),ARG(1,8)) END

SUBROUTINE USER_MOMENTUM_SOURCE (SOURCE,COEF_PT,COEF_FL, & DIAM_PT,VEL_PT,RE_PT,SLPVEL_PT, & DENSITY_FL,VEL_FL)

My first doubt is, does the order of the variables have to match in the statement CALL and the statement SOUBROUTINE? For example, of the 3 return variables in the CALL statement, the source which has 3 components seems to be the second entry while in the SUBROUTINE it seems to be the first entry.

Now on the CFX PRE when it comes to definig the User Defined Function, when I am prompted to introduce the units of the arguments and results, I am not sure if for example the 3 velocity components are to be used I have to write 3 times [m/s].

Finally, according to the example the user created function should be available on the Fluid Pairs form in the Mass and Momentum frame, from the drop-down list. However it wasn´t when I try. Is any step missing?

Thanks,

Alvio

  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
Simulation of Axial Fan Flow using A Momentum Source Subdomain Liam CFX 28 July 16, 2013 08:24
The effect of momentum source on AV flow and concentration october CFX 5 June 28, 2011 02:59
Particle User Source in ANSYS CFX Jun CFX 0 September 8, 2010 09:28
Pressure jump and momentum source Tanya FLUENT 1 June 4, 2009 15:22
no enthalpy change across the momentum source Atit Koonsrisuk CFX 2 December 19, 2005 02:33


All times are GMT -4. The time now is 17:24.