|
[Sponsors] |
March 6, 2012, 22:28 |
CFX 13.0 and fortran
|
#1 |
Member
zakir
Join Date: Nov 2011
Posts: 44
Rep Power: 15 |
hello everyone
The version of my ANSYS is 13.0.Now I need to use fortran routines.So after I install: visual studio 2008; intel fortran 11.0; Microsoft windows SDK; And I have set my computer's environment variables as: Include: D:\Program Files\Intel\Compiler\11.0\061\fortran\mkl\include; D:\Program Files\Microsoft Visual Studio\VC98\atl\include; D:\Program Files\Microsoft Visual Studio\VC98\mfc\include; D:\Program Files\Microsoft Visual Studio\VC98\include; D:\Program Files\ANSYS Inc\v130\CFX\include; D:\Program Files\Microsoft SDKs\Windows\v7.1\Include Lib: D:\Program Files\Intel\Compiler\11.0\061\fortran\mkl\ia32\lib ; D:\Program Files\Microsoft Visual Studio\VC98\mfc\lib; D:\Program Files\Microsoft Visual Studio\VC98\lib; D:\Program Files\ANSYS Inc\v130\CFX\lib\winnt; :\Program Files\Microsoft SDKs\Windows\v7.1\Lib Patch: D:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT; D:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin; D:\Program Files\Microsoft Visual Studio\Common\Tools; D:\Program Files\Microsoft Visual Studio\VC98\bin; D:\Program Files\ANSYS Inc\v130\CFX\bin; D:\Program Files\Microsoft SDKs\Windows\v7.1\Bin Then I copy the file cfx5mkext.ccl to my workdictionary.But when I input:cfx5mkext in the command line of CFX,the result is: An error has occurred in cfx5mkext: No source file has been specified. What should I do next if I want to use fortran routines? Thank you very much! best regards! zakir Last edited by zakir hussain; March 6, 2012 at 23:52. |
|
March 6, 2012, 23:46 |
|
#2 | |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
Quote:
|
||
March 7, 2012, 00:27 |
|
#3 |
Member
zakir
Join Date: Nov 2011
Posts: 44
Rep Power: 15 |
||
March 7, 2012, 03:43 |
Fortran problem
|
#4 |
New Member
Zoltan Turzo
Join Date: Mar 2009
Posts: 7
Rep Power: 17 |
Dear Zakir!
ANSYS 13 works with Intel Fortran v10.1 and Microsoft Visual Studio 2005 Professional SP1 HELP manual misswrites. ANSYS 14 support Intel Fortran 11.0.0. after proper installation of fortran and visual studio run ifortvarsbat command befor cfx5mkext. Regards Zoltan Turzo |
|
March 7, 2012, 03:51 |
|
#5 |
Member
zakir
Join Date: Nov 2011
Posts: 44
Rep Power: 15 |
Thank you very much! Where should I run: ifortvarsbat, in Launcher > Tools > Command Line? And then run cfx5mkext there too?
Best Regards zakir |
|
March 7, 2012, 04:18 |
|
#6 |
New Member
Zoltan Turzo
Join Date: Mar 2009
Posts: 7
Rep Power: 17 |
As i remember, from cfx-pre /tools/command editor (check it in cfx example 19.)
But i think it should work from the launcher as well. Regards Zoltan |
|
March 7, 2012, 16:31 |
|
#7 |
New Member
Join Date: Jan 2012
Posts: 7
Rep Power: 14 |
Hi, as Zoltan said, in the tutorial 19 of cfx's manual(air conditioning simulation) there is the correct way to compile a Fortran routine from cfx.
This work from cfx-pre and from the launcher too. But, I want to know if you have any documentation or information about the Fortran's routines of cfx beyond that there are in manual. Anyway, Good Luck using Fortran routines! |
|
March 7, 2012, 20:35 |
|
#8 |
Member
zakir
Join Date: Nov 2011
Posts: 44
Rep Power: 15 |
Thanks to Zoltan and mescalito.I just copy the original file from the examples folder.Now I can run the command from the launcher,and a subdictionary containing the .dll file had been created in my workdictionary. But I failed with inputing command from cfx-pre.It alwas occurred a window said :
ERROR CCL parser failed with message: Perl Syntax errors detected: Died at (eval 199) line 1. Have you meet this problem before? best regards zakir |
|
March 8, 2012, 02:51 |
|
#9 |
New Member
Zoltan Turzo
Join Date: Mar 2009
Posts: 7
Rep Power: 17 |
I have not met this problem.
Zoltan |
|
March 8, 2012, 02:53 |
|
#10 |
New Member
Zoltan Turzo
Join Date: Mar 2009
Posts: 7
Rep Power: 17 |
sorry, i have not.
Zoltan |
|
March 8, 2012, 09:05 |
|
#11 |
New Member
Join Date: Jan 2012
Posts: 7
Rep Power: 14 |
Zakir,
when you run the file from the cfx-pre you should use the command exactly as below ! system ("cfx5mkext TStat_Control.F") == 0 or die "cfx5mkext failed"; But you have to change the name of your file in bold. have you done this procedure? |
|
March 10, 2012, 09:30 |
|
#12 |
Member
zakir
Join Date: Nov 2011
Posts: 44
Rep Power: 15 |
||
March 10, 2012, 10:16 |
|
#13 |
New Member
Join Date: Jan 2012
Posts: 7
Rep Power: 14 |
Zakir
change the name "TStat_Control.F" to the name of the file that you are compiling, if you havenīt done this. Regards! |
|
March 11, 2012, 00:09 |
|
#14 |
Member
zakir
Join Date: Nov 2011
Posts: 44
Rep Power: 15 |
Hi
yes,I have changed the file name,but the result was the same.anyway,I can run the launch command line fluently. but now I meet another problem.I have two files in my work dictionary, jet.ccl and jet.def.After I clicked the buttun Cfx-pre and opencase,I choose the jet.def, and an error occurred: WARNING RULES data is not importable. RULES data was stripped out of imported CCL. Do you know what is the problem? Thank you very much! best regards zakir |
|
January 30, 2014, 11:17 |
|
#15 |
New Member
Emily Imdieke
Join Date: Apr 2013
Posts: 20
Rep Power: 13 |
Hello,
I keeping getting the same error as zakir and have not found a way to fix it, has anyone else? |
|
February 1, 2014, 06:39 |
Try, this method.
|
#16 |
New Member
Join Date: Feb 2012
Posts: 6
Rep Power: 14 |
After the install, visual studio and Intel fortran.
Add the Path Just only : ~Intel\ComposerXE-2011\bin (path include ifortvars.bat ) and then restart the CFX tools->command line type the : ifortvars.bat and then, selet the your computer archtecure, and linker in my case ifortvars.bat intel64 vs2010 and then, maybe you can use the cfx5mkext, Do not use the CFX-Pre Command line, use the command line window(DOS window) |
|
March 20, 2019, 17:22 |
|
#17 |
Member
phd
Join Date: Oct 2013
Posts: 76
Rep Power: 13 |
please be careful to set up your working directory. It is crutial to compile your fortran code. Good luck
|
|
Tags |
cfx 13.0 and fortran |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Importing external DLL to Ansys CFX using user Fortran | snpradeep | CFX | 2 | May 16, 2014 04:52 |
How to set environmental variables of Intel Fortran +CFX? | Christine MO | CFX | 0 | September 23, 2011 12:11 |
CFX 12.0, user fortran error | songxguan | CFX | 3 | December 23, 2009 16:24 |
Intel Fortran and CFX 11.0 | Rogerio Fernandes Brito | CFX | 4 | November 11, 2008 01:27 |
a fortran problem in CFX | Roy | CFX | 3 | November 14, 2002 09:17 |