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

CFX Post .cse scripting with Perl

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By nealrm

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 5, 2019, 19:59
Default CFX Post .cse scripting with Perl
  #1
New Member
 
Neal
Join Date: Sep 2013
Posts: 4
Rep Power: 12
nealrm is on a distinguished road
I am trying to create a .cse script for CFX that will measure particular locations determined on a case by case basis from lines read from a .csv file.

Everything I can find suggests that I should use an additional perl library Text::CSV to more easily and accurately process my inputs from the .csv file. However, I can not figure out how to import this since "use Text::CSV" throws an error.

Are additional library imports beyond the core functionality allowed? How do I go about incorporating them into the ANSYS version of Perl?

I have also attempted to call "use local::lib" and import it from a different installation of perl on the same machine. This does not work (at least the way (I am attempting it).


Additionally, I am trying to figure out why the script will not properly append the output information to the splitline array. When i run the perl without any ANSYS CLL code it works fine.

The .cse script is also not properly closing my output .csv file.

Script at https://pastebin.com/NFgcxvtN;
Attached Files
File Type: txt UpstreamStudyResReader.txt (27.5 KB, 44 views)
mokadem likes this.

Last edited by nealrm; March 5, 2019 at 21:31. Reason: Adding other issues with the script
nealrm is offline   Reply With Quote

Old   March 5, 2019, 22:50
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,819
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
If it all gets too hard in perl you could instead write a stand alone script in python, perl or whatever you favourite is which reads in the csv file and generates a pure cse file. The cse file would have no perl in it as that is taken care of in your stand alone script. I must admit this is the way I do it most of the time as I am not a perl person.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Reply

Tags
cfx post 19.1, cse, perl, scripting; command line;


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
Accessing cell values (CFX Pre and CFX Post) brahmarishiraj CFX 14 June 24, 2014 19:12
CFX Post Expressions number decimals njiang CFX 3 December 13, 2013 04:39
Transient animation performance in CFX 5.5 POST Sjoerd Romkes CFX 8 February 5, 2013 14:53
CFX Post export problem jeff_F CFX 0 August 17, 2009 21:25
chart for transiente simulation - CFX Post rogbrito CFX 0 June 22, 2009 12:12


All times are GMT -4. The time now is 15:13.