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

Table of boundary conditions

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 26, 2010, 06:19
Default Table of boundary conditions
  #1
New Member
 
Romek
Join Date: Apr 2010
Posts: 2
Rep Power: 0
Kraksa is on a distinguished road
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?
Kraksa is offline   Reply With Quote

Old   April 26, 2010, 08:03
Default
  #2
Senior Member
 
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 446
Rep Power: 11
mvoss is on a distinguished road
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
mvoss is offline   Reply With Quote

Old   April 26, 2010, 08:25
Default
  #3
New Member
 
Romek
Join Date: Apr 2010
Posts: 2
Rep Power: 0
Kraksa is on a distinguished road
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
Kraksa is offline   Reply With Quote

Old   April 26, 2010, 09:16
Default batchscript
  #4
Senior Member
 
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 446
Rep Power: 11
mvoss is on a distinguished road
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.
mvoss is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Impinging Jet Boundary Conditions Anindya Main CFD Forum 24 January 11, 2012 14:40
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
Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15
A problem about setting boundary conditions lyang Main CFD Forum 0 September 19, 1999 18:29


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