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

command editor

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 12, 2004, 16:32
Default command editor
  #1
Atit Koonsrisuk
Guest
 
Posts: n/a
I am using CFX-5.6. In CFX-5.5.1, I have used the command

------------------------------------- !open (OUTFILE_r, ">ModelWater_EntroRef25_roof.dat"); !for ($i=0; $i<=15; $i++) { #calculate a new value of Z !$Z = 0.955 - $i * 0.06; # change the plane location PLANE: Plane 1 Z = $Z [m] END

# print the output to file, note that the output has now been changed to a # simple comma delimetered format !($Press, $units) = evaluate('massFlowAve(Pressure)@Plane 1'); !($Temp, $units) = evaluate('massFlowAve(Temperature)@Plane 1'); !($Vel, $units) = evaluate('massFlowAve(Velocity)@Plane 1'); !($Den, $units) = evaluate('massFlowAve(Density)@Plane 1'); !($MassF, $units) = evaluate('massFlow@Plane 1'); !print OUTFILE_r "$Z $Press $Temp $Vel $Den $MassF \n"; !} !close OUTFILE_r; ----------------------------------------

and it works properly. However, in CFX-5.6, I got the message:

--------------------------------------- ERROR Evaluation of 'massFlowAve(Pressure)@Plane 1' is undefined. ERROR Evaluation of 'massFlowAve(Temperature)@Plane 1' is undefined. ERROR Evaluation of 'massFlowAve(Velocity)@Plane 1' is undefined. ERROR Evaluation of 'massFlowAve(Density)@Plane 1' is undefined. ------------------------------------------

What is the problem? Please suggest me. Thank you very much.

Atit Koonsrisuk
  Reply With Quote

Old   January 12, 2004, 17:24
Default Re: command editor
  #2
Atit Koonsrisuk
Guest
 
Posts: n/a
I also try this one:

! $Temp = massFlowAve("Temperature", "Plane 1");

Then I got the message

ERROR Evaluation of 'massFlowAve' is undefined.

Even I have created 'Plane1' in CFX-Post already, but if I use

! $Temp = massFlowAve("Temperature", "in");

when 'in' is the 2D region that I defined in CFX-Build, and use it as one of the boundary conditions in CFX-Pre. It works! However I want to calculate the properties on several planes that I create after Solver. Could someone suggest me please? Thank you very much.

Atit Koonsrisuk
  Reply With Quote

Old   January 13, 2004, 03:44
Default Re: command editor
  #3
Atit Koonsrisuk
Guest
 
Posts: n/a
I copied the following instructions from the manual and pasted in the 'command editor':

ISOSURFACE: Iso1 Variable = Pressure Value = 15000 [Pa] Colour = 1,0,0 Transparency = 0.5 END

After pressing 'Process' button, I got the following output:

ERROR CCL validation failed with message: Error: Essential parameter 'Location' not present in CALCULATOR: Error: Essential parameter 'Function' not present in CALCULATOR:

How can I fix this? Thank you very much.

Atit Koonsrisuk
  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



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