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

Perl script for intialisation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 5, 2008, 05:43
Default Perl script for intialisation
  #1
pratik mehta
Guest
 
Posts: n/a
I am in need of a perl script for my CFX run , i need a script which does the first solver run with steady state for 200 iteration and later transient for specifed number of total timesteps and Max coefficent loop of 3 per timesteps. here in my script I have made two .def files one steady and another one unsteady , all I need this script to run the steady file and later run unsteady with initialization with the result file of steady state

I have my script as shown but it doesnt work at all , could anyone please tell me where are the mistakes ?

************************************************** ** %run1= (NAME => "run1", INIT => "");

%run2= (NAME => "run2", INIT => "run_001.res");

# Define a list of definition files to run @runList = ("\%run1", "\%run2");

foreach $run (@runList) {

if (!defined($run->{NAME})) {

print "Found run without a name.\n";

$errors = 1; }

if (!defined($run->{INIT})) {

print "No initial file found for " . $run->{NAME} . ".\n";

$errors = 1; } }

#loop over the list foreach $run (@runList) { $name = $run->{NAME}; $initFile = $run->{INIT};

#Open the solver to accept some CCL from STDIN open(SOLVER,"|cfx5solve -def steady.def -name $name $initCmd -part 2 -start-method \"MPICH2 Local Parallel for Windows\" ");

} # end of loop

**********************************************

Thank you in advance for your kind response

  Reply With Quote

Old   September 9, 2008, 12:24
Default Re: Perl script for intialisation
  #2
underGroundMan
Guest
 
Posts: n/a
Let me make life easier for you. Run a steady state flow and then initialise your unsteady flow with steady state results. Easy peasy

  Reply With Quote

Old   September 10, 2008, 04:09
Default Re: Perl script for intialisation
  #3
pratik mehta
Guest
 
Posts: n/a
hello,

Thats what I want to do using the script since I have many such cases to run for different geometries, In all I have 8 definition file and each one needs this process of steady state run and later transient run.

My entire goal is to do this by perl script , So I need some help in making the script which will do the things as mentioned

thanks for your kind reply
  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
[ICEM] Script: problems with face names Maweil ANSYS Meshing & Geometry 3 April 16, 2019 10:10
Using Perl script and power Syntax in CFX-Pre omidiut CFX 3 October 18, 2011 07:10
perl script error (looping) amazdeh Main CFD Forum 0 September 11, 2009 13:47
Solver Control via .pre file with Perl script ahlo CFX 1 March 7, 2008 13:33
Time-steps via Perl in CCL Rui CFX 5 March 29, 2004 01:47


All times are GMT -4. The time now is 18:34.