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

syntax error for IF Else conditions in CFD-POST

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 3, 2016, 07:41
Default syntax error for IF Else conditions in CFD-POST
  #1
New Member
 
shubham jain
Join Date: Dec 2013
Posts: 25
Rep Power: 12
shubham jain is on a distinguished road
I am struggling with the syntax for if else conditions. I am saving this as .cse format and then running within CFD-POST.

! open (ID, '>', 'write01.txt');
! $n=10;
if ($n==1) {
! print ID "if command executed\n";
}
else {
! print ID "else command executed\n";
}
! close ID;


Although I want to create polylines using a contour, but in order to find the error, I have shorten it out to this and even this doesnot work with following error.

ERROR
CCL parser failed with message:
invalid parameter name "if (10": contains invalid character '('

This is very very annoying as I am stuck due to this minor thing. If someone could assist me, that would be of great help. Thanks a lot
shubham jain 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
Problem in CFD -post pratikvn ANSYS 4 March 21, 2018 02:56
Plotting Radial Velocity and Tangential Velocity in CFD Post ashtonJ CFX 5 July 13, 2015 02:49
View results at a contact region in CFD post AGP FLUENT 0 June 10, 2014 11:11
deviation in calculated force between CFX solver and CFD post murx CFX 2 April 9, 2014 20:03
Automated post processing using CFD Post shreyasr ANSYS 0 January 28, 2013 06:21


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