CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

C++ or FORTRAN

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 30, 2004, 11:15
Default C++ or FORTRAN
  #1
Tim
Guest
 
Posts: n/a
Hi,

I need an advice about the language to use in UDF for modelling a PEM fuel cell: C++ or FORTRAN ???

Thank you very much for your responses!!!
  Reply With Quote

Old   June 30, 2004, 11:38
Default Re: C++ or FORTRAN
  #2
Andrew
Guest
 
Posts: n/a
This question comes up alot - check the previous posts. I am modeling PEMFC's. If you want to create UDF's in fluent you need to learn C. If you are using CFX I believe you need to use Fortran. C is the more powerful language from a programmers point of view, but fortran is still very widely used in engineering circles. But you don't really need to learn much of either to write subroutines for the CFD codes.
  Reply With Quote

Old   June 30, 2004, 12:10
Default Re: C++ or FORTRAN
  #3
Tim
Guest
 
Posts: n/a
Thanks for your quick response!!!

I think that I'll use C language since I'm a new FLUENT's user and I've learned C++ in a computer course. I wouldn't be indiscreet, but which are you using for modelling PEMFC??

  Reply With Quote

Old   July 1, 2004, 12:44
Default Re: C++ or FORTRAN
  #4
Andrew Garrard
Guest
 
Posts: n/a
I am using Fluent and C to model fuel cells, but they aren't hydrogen fuel cells. If you are interested Fluent will sell you a Fuel cell bolt on that will save you alot of the work writing your own code.

If you have already learned C you will not really need to spend much time learning it again. Start working through the UDF manual with fluent 6 and you will start to pick it up pretty quickly.
  Reply With Quote

Old   July 1, 2004, 13:52
Default Re: C++ or FORTRAN
  #5
Tim
Guest
 
Posts: n/a
Hi Andrew!

About bolt(is it a specific compiler for fluent???): I'm working on MANDRAKE 9.0 LINUX SYSTEM with VIM and it seems OK.

Thank you for all your interesting messages!!!

  Reply With Quote

Old   July 2, 2004, 04:52
Default Re: C++ or FORTRAN
  #6
Andrew Garrard
Guest
 
Posts: n/a
I have no idea what bolt is, sorry. I have gcc installed under red hat and that works fine for me.
  Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fortran Compiler-CFX12.1 Araz CFX 12 November 2, 2014 13:46
Intrinsic Procedure 'ISNAN' in GNU FORTRAN 77 hawk Main CFD Forum 1 April 12, 2005 22:13
visual fortran Monica Main CFD Forum 1 August 28, 2004 20:45
Fortran77 or Fortran 90 Swapnil CFX 2 November 26, 2002 16:16
Why Favoring Fortran over C/C++? Zi-Wei Chiou Main CFD Forum 35 September 26, 2001 09:34


All times are GMT -4. The time now is 19:42.