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

CFX User Fortran: Particle User Sources

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 8, 2012, 08:37
Default CFX User Fortran: Particle User Sources
  #1
New Member
 
Join Date: Mar 2012
Posts: 18
Rep Power: 14
hustxinxin is on a distinguished road
Hello, everyone, It's my first time to come here. I have several questions to be solved, which have bog me down for many weeks. Before I come accross these problems, I spent several weeks to install my fortran compiler, and the following softwares works well on Windows XP, with some turtorals accomplished sucessfully.
ANSYS CFX 11.0
Microsoft Visual C++ 6.0
Compaq Visual Fortran 6.6
Microsoft Platform SDK February 2003
I want to add lift force to the particles within the Lagrangian Tracking Model use Particle User Sources. There is an example which is intended for demonstration purposes to calculate a Schiller-Naumann drag force in the UserFortran directory. The routine is intended to calculate the drag force over all of the locations in space, or in RET(1:NLOC. 1), but why RET(1, 1) is the return variables in the example routine, butRET(NLOC. 1)? The subroutine returns the source(3) for the drag force in three dimension x, y, z, who not source(NLOC, 3) for each point in space using a loop?
Then, I can generate a shared librarie by input "cfx5mkext TStat_Control.F" in the command line and run CFX very well, but when I compile it in my compiler, there occurs an error said "C:\Program Files\Ansys Inc\v110\CFX\include\stack_point.h(21) : Error: Syntax error, found ',' when expecting one of: ( : % . = =>" . How does it happy?
And in my routine for the lift force, it aways says "error LNK2001: unresolved external symbol _USER_GETVAR@40".
hustxinxin is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 User Source in ANSYS CFX Jun CFX 0 September 8, 2010 09:28
Mesh deformation using user fortran matled CFX 3 February 18, 2010 16:49
CFX 12.0, user fortran error songxguan CFX 3 December 23, 2009 15:24
Double precision & User Fortran Martijn CFX 3 April 4, 2009 05:43
how to use USER FORTRAN with CFX cfd_99 Main CFD Forum 1 June 4, 1999 05:42


All times are GMT -4. The time now is 12:54.