|
[Sponsors] |
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: 449
Rep Power: 20 |
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: 449
Rep Power: 20 |
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. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Impinging Jet Boundary Conditions | Anindya | Main CFD Forum | 25 | February 27, 2016 12:58 |
Concentric tube heat exchanger (Air-Water) | Young | CFX | 5 | October 6, 2008 23:17 |
Pressure boundary conditions | Lionel S. | Main CFD Forum | 1 | August 24, 2007 18:03 |
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Meshing & Mesh Conversion | 2 | July 15, 2005 04:15 |
A problem about setting boundary conditions | lyang | Main CFD Forum | 0 | September 19, 1999 18:29 |