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

User Fortran and Particle momentum source

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2008, 23:52
Default User Fortran and Particle momentum source
  #1
alvio
Guest
 
Posts: n/a
Hi, I am trying to use user function to calculate different force acting on particles while using lagrangian simulation. However I have several doubts while running 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)) C 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 not 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
Particle momentum source alvio CFX 0 August 20, 2008 17:52
Particle momentum source alvio CFX 0 August 4, 2008 22:47
USER_GETVAR in particle user routine Felix CFX 0 August 23, 2006 10:59
Particle Injection User Fortran Routine Adam CFX 5 December 13, 2005 04:16
User FORTRAN: USER_GET_MESH_DATA Yuko CFX 0 October 28, 2004 05:08


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