|
[Sponsors] |
Controlling cfx5solver from a command line with -ccl command |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 27, 2016, 07:30 |
Controlling cfx5solver from a command line with -ccl command
|
#1 |
New Member
Anton
Join Date: Oct 2015
Posts: 13
Rep Power: 10 |
Hi everyone,
I am automatically starting a cfx5solver with a .def file from a command line. In order to change parameters I use -ccl <ccl_path> command. The .ccl files are automatically produced by an external program. In the original def file boundary conditions (BC) on exit are specified as static pressure. Here is an example of the .ccl file: BOUNDARY: Exit Boundary Type = OUTLET BOUNDARY CONDITIONS: MASS AND MOMENTUM: Option = Average Static Pressure Pressure Profile Blend = 0.05 Relative Pressure = 1 [bar] END PRESSURE AVERAGING: Option = Average Over Whole Outlet END END END And it works. But at some point I want to switch to mass flow. So I rewrite .ccl file for mass flow BC. BOUNDARY: Exit Boundary Type = OUTLET BOUNDARY CONDITIONS: MASS AND MOMENTUM: Mass Flow Rate = 1 [kg s^-1] Option = Mass Flow Rate END END END But when this ccl is feeded to cfx5solver, it mixes the original pressure-BC and mass-flow-BC and obviously gives an error. Here is the copy from the .out file: BOUNDARY: Exit Boundary Type = OUTLET Location = ******* BOUNDARY CONDITIONS: FLOW REGIME: Option = Subsonic END MASS AND MOMENTUM: Option = Mass Flow Rate Pressure Profile Blend = 0.05 Relative Pressure = Pressure_expression Mass Flow Rate = 1 [kg s^-1] END PRESSURE AVERAGING: Option = Average Over Whole Outlet END END END Did anybody had this problem? Ways to get round it? One way is to make 2 .def-s : one with pressure BC and one with mass flow. But maybe there are some more elegant ways? |
|
June 27, 2016, 07:54 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,826
Rep Power: 144 |
You can't change boundary condition types with just a new CCL. You have to load up CFX-Pre and do the CCL change there to make that sort of a change. Likewise you cannot add or remove boundary conditions, domains or sub-domains by CCL only, they need to go through CFX-Pre as well.
|
|
June 27, 2016, 07:58 |
|
#3 | |
New Member
Anton
Join Date: Oct 2015
Posts: 13
Rep Power: 10 |
Quote:
Many thanks. |
||
June 27, 2016, 08:02 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,826
Rep Power: 144 |
You can script CFX-Pre. So this can be done all in a batch file/script file - but it is just a little more involved than a simple CCL change.
|
|
June 27, 2016, 08:06 |
|
#5 |
New Member
Anton
Join Date: Oct 2015
Posts: 13
Rep Power: 10 |
Where can I read about scripting cfxpre? I mean, I know there is a big chapter on that in Help, but I haven't seen any proper implementation instructions.
|
|
June 27, 2016, 19:54 |
|
#6 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,826
Rep Power: 144 |
The help file is the reference for CFX-Pre. There is no other.
|
|
Tags |
ccl, cfx, cfx5solve |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
8x icoFoam speed up with Cufflink CUDA solver library | kmooney | OpenFOAM Running, Solving & CFD | 42 | November 6, 2012 11:37 |
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 | flakid | OpenFOAM Installation | 16 | December 28, 2010 08:48 |
OpenFOAM15 installables are incomplete problem with paraFoam | tryingof | OpenFOAM Bugs | 17 | December 7, 2008 04:41 |
Problem of compilation OF 14Allwmake command not found | erik_d | OpenFOAM Bugs | 13 | September 13, 2008 21:45 |
Regarding FoamX running Kindly help out | hariya03 | OpenFOAM Pre-Processing | 0 | April 18, 2008 04:26 |