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

looping in CFD post

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 6, 2018, 15:02
Default looping in CFD post
  #1
New Member
 
Matthew
Join Date: Feb 2017
Posts: 4
Rep Power: 9
msandli is on a distinguished road
I've searched everywhere on this forum, but I can't seem to figure this out, even though I'm almost positive it's something minor/stupid.

I'm using the student version of Ansys 19.2

I'm trying to edit a session file in CFD-post so that I can create a lot of lines and planes on which to compute/plot data. However, I can't quite seem to get the syntax right because my scripts don't appear to store variables.

For instance, when I run the very basic session file:

Code:
COMMAND FILE:
  CFX Post Version = 19.2
END


!$xline = 10;

TEXT:Text 1
	Position Mode = Two Coords
	Text Height = 0.1
	TEXT ITEM:Text item 1
		Text Item Active = On
		Text String = $xline
	END
END

>show /TEXT:Text 1, view=/VIEW:View 1
nothing appears. If I remove the $ in front of the $xline in the Text String field, then "xline" will appear in my view window (without the quotes), so I know I can make this script actually display text on my screen. It's the same behavior if i replace the number 10 with "string".

What am I missing?
msandli is offline   Reply With Quote

Old   December 7, 2018, 10:50
Default
  #2
New Member
 
Matthew
Join Date: Feb 2017
Posts: 4
Rep Power: 9
msandli is on a distinguished road
Bump. I found that when I input those commands into the command window in the CFD post application, the output works as described. It appears that I can use this method instead of editing and loading session files, but it still seems strange to me that the exact same commands are recognized in the command window but not a session file.

If anyone has any other comments for other users, feel free to add to this thread.
msandli is offline   Reply With Quote

Reply

Tags
cfd post


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
Post processing in CFD Post or Fluent. Blobs OpenFOAM Post-Processing 2 June 26, 2016 07:23
CFD Design...The CFD Future John C. Chien Main CFD Forum 20 November 19, 2015 23:40
Problem regarding producing streamlines from surfaces in Ansys CFD post gauthamnarayan ANSYS 6 June 8, 2015 07:33
Problem regarding producing streamlines from surfaces in Ansys CFD post gauthamnarayan Visualization & Post-Processing 0 April 23, 2015 16:07
CFD Online Celebrates 20 Years Online jola Site News & Announcements 22 January 31, 2015 00:30


All times are GMT -4. The time now is 11:00.