|March 8, 2012, 08:31||
CFX User Fortran: Particle User Sources
Join Date: Mar 2012
Posts: 7Rep Power: 3
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, why 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".
|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|
|user routine, user funcion, or fortran compile effect on the memroy?||princeps11||CFX||1||May 13, 2009 18:37|
|how to use USER FORTRAN with CFX||cfd_99||Main CFD Forum||1||June 4, 1999 05:42|