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

Additional Variables Defined By User FORTRAN CEL

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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: 17,700
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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


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
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 17:50.