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

Additional Variables Defined By User FORTRAN CEL

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 6, 2013, 09:26
Question Additional Variables Defined By User FORTRAN CEL
  #1
New Member
 
gaozengxun
Join Date: Aug 2013
Posts: 2
Rep Power: 0
Wheeler is on a distinguished road
Hi, all

Can additional variables be defined by using user fortran CEL, or only defined by CFX own CELs?
The problem is, I defined an additional variable by using a fortran subroutine expression, but I can't plot this variable in CFD-Post and its value equals zero all over the field. On the other hand, when I use CFX own CELs to define an additional variable for a trial, it can be ploted in CFD-Post.
That puzzles me!
Wheeler is offline   Reply With Quote

Old   August 6, 2013, 19:16
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 9,551
Rep Power: 76
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
AVs need to be defined in CCL, but a user fortran routine can be used to put the value into a CEL expression which can be then used to set the AV.
ghorrocks is offline   Reply With Quote

Old   August 6, 2013, 21:33
Default
  #3
New Member
 
gaozengxun
Join Date: Aug 2013
Posts: 2
Rep Power: 0
Wheeler is on a distinguished road
The problem has been solved!
The return value expression in my Fortran source file has been changed from
RET(1,1) = ...
into a DO-ENDDO loop
INTEGER ILOC
DO ILOC = 1, NLOC
RET(ILOC,1) = ...
ENDDO
Wheeler is offline   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
Comparison between C/C++ and Fortran? rick Main CFD Forum 45 September 6, 2011 00:52
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
User Fortran and interior node information John CFX 0 August 26, 2008 22:24
User Fortran (CEL,,,).... Bloshchitsyn Vladimir CFX 1 October 11, 2007 07:45
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 20:09


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