CFD Online Discussion Forums

CFD Online Discussion Forums (
-   ANSYS (
-   -   Compile usr_pmvppd.f (

zephyrus17 October 1, 2011 09:35

Can't solve usr_pmvppd.f
I'm trying to do a pmv and ppd analysis, but the solver's been failing where it it's asking for the user library. Where do I get the right dll for the usr_pmvppd.f user routine? i.e., where is the library path? CFX/lib/winnt-amd64?

zephyrus17 October 4, 2011 03:31

[Mods: Could you please move this to the CFX forum? Thank you!]

So I've found out that I need to run

cfx5mkext usr_pmvppd.F
to generate the .dll file. However, the error from cmd is

The compiler command "ifort" could not be found.  Please ensure that the compiler is on your PATH and try again.
So after installing MS Visual Studio and Intel Fortran Compiler, which contains the ifort.exe file, what do I do? Make a shortcut of the intel fortran compiler in the cfx directory containing usr_pmvppd.F?

zephyrus17 March 23, 2012 21:38

I've compiled it successfully (at least I think it did). And it worked for a previous project. I recall when I selected to insert the "user routine", all the variables and equations automatically jumped out. And there was an entry under "User Functions" as well.

However, trying again in another project, it doesn't seem to have worked. CFX-Pre only shows the user routine defined, but nothing, uh, 'special' happens in the Default Domain, no extra variables, no extra expressions, and nothing under the User Routines.

Does anyone know what's going on?

EDIT: I got it! I had to append the comfort-factors.ccl into my Setup!

All times are GMT -4. The time now is 07:52.