|
[Sponsors] |
March 5, 2019, 20:59 |
CFX Post .cse scripting with Perl
|
#1 |
New Member
Neal
Join Date: Sep 2013
Posts: 4
Rep Power: 13 |
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; Last edited by nealrm; March 5, 2019 at 22:31. Reason: Adding other issues with the script |
|
March 5, 2019, 23:50 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144 |
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. |
|
Tags |
cfx post 19.1, cse, perl, scripting; command line; |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Accessing cell values (CFX Pre and CFX Post) | brahmarishiraj | CFX | 14 | June 24, 2014 20:12 |
CFX Post Expressions number decimals | njiang | CFX | 3 | December 13, 2013 05:39 |
Transient animation performance in CFX 5.5 POST | Sjoerd Romkes | CFX | 8 | February 5, 2013 15:53 |
CFX Post export problem | jeff_F | CFX | 0 | August 17, 2009 22:25 |
chart for transiente simulation - CFX Post | rogbrito | CFX | 0 | June 22, 2009 13:12 |