# Table of boundary conditions

 Register Blogs Members List Search Today's Posts Mark Forums Read

 April 26, 2010, 06:19 Table of boundary conditions #1 New Member   Romek Join Date: Apr 2010 Posts: 2 Rep Power: 0 hello I'm new in CFX In my project it is needed to change velocity on inlet from 1 m/s to 10 m/s in 1 m/s step. All other boundary conditions and settings stay unchanged. So my question is if it possible to create table of boundary conditions that after finished calculations on 1 m/s program will automatically import new B.C from table and start calculations?

 April 26, 2010, 08:03 #2 Senior Member   Matthias Voß Join Date: Mar 2009 Location: Berlin, Germany Posts: 446 Rep Power: 12 which version are you using? it´s quite easy but depending on the version. create a batch run with a loop over the desired velocities via editing the def.file before each run OR create a def.-file for each velocity an loop them. OR create a setup with starting conditions in WB2.0. and change the velocity in every setup. neewbie

 April 26, 2010, 08:25 #3 New Member   Romek Join Date: Apr 2010 Posts: 2 Rep Power: 0 hey neewbie I'm using CFX 12 Your second solution will be very good for me Can You write me how can I loop ? thx

 April 26, 2010, 09:16 batchscript #4 Senior Member   Matthias Voß Join Date: Mar 2009 Location: Berlin, Germany Posts: 446 Rep Power: 12 Let´s suppose you have a directory with the desired def.-files. def1ms def2ms,.. it would be smth. like @defname=<*.def> foreach \$defname(@defname){ cfx5solve -def \$defname print "calculating \$defname \n" } ending up in solving every def-file WITHOUT using the last result. or you do it by executing cfx5solve -def def1ms.def cfx5solve -def def2ms.def -ini def1ms_001.res cfx5solve -def def3ms.def -ini def2ms_001.res ... Save the code in a file with the ending *.pl, copy it to the directory containing the def.-files, open the command line (from within CFX-Launcher) after changing the current working directory and then do a cfx5perl *.pl hope that helps, neewbie P.S.: if you have to check for some errors, let me know. Last edited by mvoss; April 29, 2010 at 09:23.

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Anindya Main CFD Forum 25 February 27, 2016 13:58 Young CFX 5 October 6, 2008 23:17 Lionel S. Main CFD Forum 1 August 24, 2007 18:03 michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15 lyang Main CFD Forum 0 September 19, 1999 18:29

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