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

CFX5 and user FORTRAN

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 10, 2003, 16:18
Default CFX5 and user FORTRAN
  #1
Worth
Guest
 
Posts: n/a
I'm a long-time user of CFX4 and I heavily employ the user FORTRAN. It appears that CFX5 is now the top of the line product. What is the status of user Fortran in CFX5? Considering that CFX5 is an unstructured solver, will user FORTRAN in 5 ever be as functional and accessible as it was in 4?

Thanks,

Worth
  Reply With Quote

Old   December 10, 2003, 17:00
Default Re: CFX5 and user FORTRAN
  #2
Astrid
Guest
 
Posts: n/a
Long time ago I also used CFX 4 and had to use Fortran for the difficult stuff. Nowadays I use CFX 5 and have never used Fortran up till now. For some reason I can do without.

Astrid (back again)
  Reply With Quote

Old   December 10, 2003, 17:17
Default Re: CFX5 and user FORTRAN
  #3
Glenn Horrocks
Guest
 
Posts: n/a
Hi Astrid and Worth,

(Welcome back Astrid!) CFX5 has CEL code which allows you to define most expressions which CFX4 required fortran to define. CFX5 does have fortran subroutines, but their scope is limited and you cannot access everything you could in CFX4.

Just like Astrid, I used lots of fortran in CFX4, and am now setting the entire simulation up in the command file of CFX5. I don't even have a fortran compiler anymore.

Glenn
  Reply With Quote

Old   December 11, 2003, 07:09
Default Re: CFX5 and user FORTRAN
  #4
Astrid
Guest
 
Posts: n/a
Neither have I.

Astrid
  Reply With Quote

Old   December 11, 2003, 10:19
Default Re: CFX5 and user FORTRAN
  #5
Bob
Guest
 
Posts: n/a
Hey Guys, There is still some need for the old fortran - its not dead yet. For areas such as moving mesh - something we have been working on, Fortran is still necessary. We also use fortran to interrogate volumes within a model and use the fortran to export particular factors from the volumes and even stop the simulations once a certain criteria has been reached. I'd say that the fortran is not as easy to use as in CFX4, but the Guys at CFX are very helpful, and they will advise you as to the best way to tackle your particular problem. Like Glenn and Astrid said, you may even be able to get away from using the fortran all together. Bob
  Reply With Quote

Old   December 12, 2003, 09:51
Default Re: CFX5 and user FORTRAN
  #6
Jeff
Guest
 
Posts: n/a
There are two flavors of FORTRAN as well.

1. User CEL functions 2. Junction Box routines

The User CEL functions are MUCH easier to code and I've written several for calculating complex boundary conditions and extracting needed transient data. You simply write your routine as a function that can be called directly from CEL and stored in a CEL variable. Any variables accessible from CEL can be passed in for use in the routine.

The Junction Box routines are harder to use but I've not found a need for them yet. Nothing gets passed in or out. You do everything by accessing the MMS (memory management system) arrays, which is anything but straight forward or well documented.

There are examples of both in at the end of the Solver Models manual and a pretty good power point on FORTRAN on the community site.

Jeff
  Reply With Quote

Old   December 12, 2003, 11:54
Default Re: CFX5 and user FORTRAN
  #7
Jesper
Guest
 
Posts: n/a
Like the previous contributions, I also find CEL very useful for most applications. I do however think that CEL has limitations, especially if you need to access gradients of varibles for your computations. As far as I know, you are not allowed to access gradients in CEL? - Or am I missing something? What are your experiences with that?

Jesper.
  Reply With Quote

Old   December 12, 2003, 14:44
Default Re: CFX5 and user FORTRAN
  #8
Ribeiro
Guest
 
Posts: n/a
You're right, Jesper

Gradients are still inaccessible through CEL. But it is easily accessed by User Fortran.

I believe that gradients can be available in CEL in CFX-5.7.

Ribeiro.
  Reply With Quote

Old   December 15, 2003, 14:41
Default Re: CFX5 and user FORTRAN
  #9
Neale
Guest
 
Posts: n/a
Nope, no gradients in CEL for 5.7. You will still have to use USER_GETVAR for that.

Neale
  Reply With Quote

Old   December 25, 2003, 02:43
Default Re: CFX5 and user FORTRAN
  #10
Jeff
Guest
 
Posts: n/a
This is really not hard. There's a perfect example of doing this through a USER CEL function at the end of the 5.6 Solver Models manual. I do this on a regular basis. You have to be careful with additional variables, however, which are not solved as transport equations. Unless the algebraic variable is used as a source for another equation, the gradients don't appear to be available.

Jeff
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
user fortran Fred CFX 7 May 13, 2005 12:51
Best Code for User Fortran worth Main CFD Forum 4 November 14, 2003 11:21
user fortran in CFX5, examples? cujo CFX 3 November 14, 2002 03:12
user fortran dingding CFX 5 August 28, 2001 02:09
user2D in CFX5? S. H. Kim CFX 1 August 14, 2001 21:21


All times are GMT -4. The time now is 22:47.