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

howto -> perl script for switch steady to transient

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 20, 2011, 17:39
Default howto -> perl script for switch steady to transient
  #1
Member
 
Join Date: Apr 2011
Posts: 32
Rep Power: 15
MainzerKaiser is on a distinguished road
__________________
#! perl -w

print "Running steady thermal FSI simulation with one time step\n";
open(SOLVER,| system
"amd/software/ansys13/ansys_inc/v130/CFX/bin/cfx5solve -def VERSUCH.def \\
-ini ../../CFX-3/CFX/INPUT_TFSI_1stDT.res \\
-double \\
-name 'VERSUCH' \\
-mfx-run-mode 'Start ANSYS and CFX' \\
-ansys-input 'ds.dat' \\
-ansys-license aa_r \\
-ansys-arguments '-np 4' \\
-part 4 \\
-start-method 'MPICH Local Parallel'";
);
close(SOLVER); #waits until done to continue
print "Running transient thermal FSI simulation\n";
system "/amd/software/ansys13/ansys_inc/v130/CFX/bin/cfx5solve -def
VERSUCH_001.res \\
-double \\
-mfx-run-mode 'Start ANSYS and CFX' \\
-ansys-input ANSYS.mf \\
-ansys-restart VERSUCH_001.ansys/ANSYS.db \\
-ansys-license aa_r \\
-ansys-arguments '-np 4' \\
-part 4 \\
-start-method 'MPICH Local Parallel'\\
& ";
__________________

The first system is command is for one timestep steady FSI. The 2nd is for the complete transient operation including an ANSYS.mf with timint=on etc...
The problems are:
1. without the open(Solver| thing, both system commands start at the same time, the second one does not wait for the first one to finalize. But the combination of system commands + open command does not work, either!
What do You guys do, if you want to start several processes after each other?

2. second system command = restart does not work, althouth same setup in GUI works. I get errors like:


+--------------------------------------------------------------------+
| ERROR #002100056 has occurred in subroutine CPLG_CheckBc. |
| Message: |
| An ANSYS CFX boundary condition that requires data from an external|
| coupled solver (e.g. ANSYS Multi-field) has been used on |
| ANSYS CFX boundary : WALL_F_S |
| |
| The required data is not available because either: |
| - a coupling to the external solver has not been established, or |
| - the external solver is not aware that it must provide the data |
| (e.g. missing MFLC command in the ANSYS Multi-field setup). |
+--------------------------------------------------------------------+

+--------------------------------------------------------------------+
| ERROR #002100056 has occurred in subroutine CPLG_CheckBc. |
| Message: |
| An ANSYS CFX boundary condition that requires data from an external|
| coupled solver (e.g. ANSYS Multi-field) has been used on |
| ANSYS CFX boundary : WALL_F_R |
| |
| The required data is not available because either: |
| - a coupling to the external solver has not been established, or |
| - the external solver is not aware that it must provide the data |
| (e.g. missing MFLC command in the ANSYS Multi-field setup). |
+--------------------------------------------------------------------+

+--------------------------------------------------------------------+
| ERROR #001100279 has occurred in subroutine ErrAction. |
| Message: |
| Failed in solver setup synchronization point. |
| |
| |
| |
| |
| |
+--------------------------------------------------------------------+




THX for your help in advance!!

Last edited by MainzerKaiser; December 20, 2011 at 18:01.
MainzerKaiser is offline   Reply With Quote

Old   February 8, 2012, 09:49
Default
  #2
Member
 
Darren Leong
Join Date: Dec 2010
Posts: 64
Rep Power: 15
Darren Leong is on a distinguished road
Hi Kaiser,

Not sure if this helps. You can use multi-configurations within the same def file. Refer to:
http://blog.ansys.com/2011/11/16/mul...te-simulation/
Darren Leong is offline   Reply With Quote

Old   February 13, 2012, 11:49
Default
  #3
Member
 
Join Date: Apr 2011
Posts: 32
Rep Power: 15
MainzerKaiser is on a distinguished road
Thx for that link. That blog seems to be helpful, although I cannot estimate whether that strategie is applicable to 2-way FSI.
MainzerKaiser 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
Laminar gas flow under slight suction - transient works but not steady audrey CFX 1 September 8, 2011 20:43
Mass Diffusion: Transient and Steady State BC rval CFX 3 November 19, 2008 01:52
Perl script for intialisation pratik mehta CFX 2 September 10, 2008 04:09
Transient vs Steady State Adam CFX 1 April 12, 2007 12:34
Difference between steady and transient problems Jianping Zhang Main CFD Forum 9 April 14, 2003 07:17


All times are GMT -4. The time now is 04:53.