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

CFX 13.0 and fortran

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By flyply

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 6, 2012, 21:28
Default CFX 13.0 and fortran
  #1
Member
 
zakir
Join Date: Nov 2011
Posts: 44
Rep Power: 14
zakir hussain is on a distinguished road
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 22:52.
zakir hussain is offline   Reply With Quote

Old   March 6, 2012, 22:46
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,729
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Quote:
What should I do next if I want to use fortran routines
Maybe reading the documentation on setting up fortran would be a good start.
ghorrocks is offline   Reply With Quote

Old   March 6, 2012, 23:27
Default
  #3
Member
 
zakir
Join Date: Nov 2011
Posts: 44
Rep Power: 14
zakir hussain is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Maybe reading the documentation on setting up fortran would be a good start.
I am sorry for my lack of knowledge about that.Can you give me instruction in detail?

thank you very much!

zakir
zakir hussain is offline   Reply With Quote

Old   March 7, 2012, 02:43
Default Fortran problem
  #4
New Member
 
Zoltan Turzo
Join Date: Mar 2009
Posts: 7
Rep Power: 17
turzoz is on a distinguished road
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
turzoz is offline   Reply With Quote

Old   March 7, 2012, 02:51
Default
  #5
Member
 
zakir
Join Date: Nov 2011
Posts: 44
Rep Power: 14
zakir hussain is on a distinguished road
Thank you very much! Where should I run: ifortvarsbat, in Launcher > Tools > Command Line? And then run cfx5mkext there too?

Best Regards

zakir
zakir hussain is offline   Reply With Quote

Old   March 7, 2012, 03:18
Default
  #6
New Member
 
Zoltan Turzo
Join Date: Mar 2009
Posts: 7
Rep Power: 17
turzoz is on a distinguished road
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
turzoz is offline   Reply With Quote

Old   March 7, 2012, 15:31
Default
  #7
New Member
 
Join Date: Jan 2012
Posts: 7
Rep Power: 14
mescalito is on a distinguished road
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!
mescalito is offline   Reply With Quote

Old   March 7, 2012, 19:35
Default
  #8
Member
 
zakir
Join Date: Nov 2011
Posts: 44
Rep Power: 14
zakir hussain is on a distinguished road
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
zakir hussain is offline   Reply With Quote

Old   March 8, 2012, 01:51
Default
  #9
New Member
 
Zoltan Turzo
Join Date: Mar 2009
Posts: 7
Rep Power: 17
turzoz is on a distinguished road
I have not met this problem.

Zoltan
turzoz is offline   Reply With Quote

Old   March 8, 2012, 01:53
Default
  #10
New Member
 
Zoltan Turzo
Join Date: Mar 2009
Posts: 7
Rep Power: 17
turzoz is on a distinguished road
sorry, i have not.

Zoltan
turzoz is offline   Reply With Quote

Old   March 8, 2012, 08:05
Default
  #11
New Member
 
Join Date: Jan 2012
Posts: 7
Rep Power: 14
mescalito is on a distinguished road
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?
mescalito is offline   Reply With Quote

Old   March 10, 2012, 08:30
Default
  #12
Member
 
zakir
Join Date: Nov 2011
Posts: 44
Rep Power: 14
zakir hussain is on a distinguished road
Quote:
Originally Posted by mescalito View Post

! system ("cfx5mkext TStat_Control.F") == 0 or die "cfx5mkext failed";
yes ,I input the command correctly.

Quote:
Originally Posted by mescalito View Post
change the name of your file in bold.
what do you mean? Change whose name?


zakir
zakir hussain is offline   Reply With Quote

Old   March 10, 2012, 09:16
Default
  #13
New Member
 
Join Date: Jan 2012
Posts: 7
Rep Power: 14
mescalito is on a distinguished road
Zakir

change the name "TStat_Control.F" to the name of the file that you are compiling, if you havenīt done this.

Regards!
mescalito is offline   Reply With Quote

Old   March 10, 2012, 23:09
Default
  #14
Member
 
zakir
Join Date: Nov 2011
Posts: 44
Rep Power: 14
zakir hussain is on a distinguished road
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
zakir hussain is offline   Reply With Quote

Old   January 30, 2014, 10:17
Default
  #15
New Member
 
Emily Imdieke
Join Date: Apr 2013
Posts: 20
Rep Power: 13
emily.imdieke is on a distinguished road
Hello,

I keeping getting the same error as zakir and have not found a way to fix it, has anyone else?
emily.imdieke is offline   Reply With Quote

Old   February 1, 2014, 05:39
Default Try, this method.
  #16
New Member
 
Join Date: Feb 2012
Posts: 6
Rep Power: 14
flyply is on a distinguished road
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)
Yanlu likes this.
flyply is offline   Reply With Quote

Old   March 20, 2019, 16:22
Default
  #17
Member
 
phd
Join Date: Oct 2013
Posts: 76
Rep Power: 12
lostking18 is on a distinguished road
please be careful to set up your working directory. It is crutial to compile your fortran code. Good luck
lostking18 is offline   Reply With Quote

Reply

Tags
cfx 13.0 and fortran


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
Importing external DLL to Ansys CFX using user Fortran snpradeep CFX 2 May 16, 2014 03:52
How to set environmental variables of Intel Fortran +CFX? Christine MO CFX 0 September 23, 2011 11:11
CFX 12.0, user fortran error songxguan CFX 3 December 23, 2009 15:24
Intel Fortran and CFX 11.0 Rogerio Fernandes Brito CFX 4 November 11, 2008 00:27
a fortran problem in CFX Roy CFX 3 November 14, 2002 08:17


All times are GMT -4. The time now is 00:06.