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

Controlling cfx5solver from a command line with -ccl command

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 27, 2016, 08:30
Default Controlling cfx5solver from a command line with -ccl command
  #1
New Member
 
Anton
Join Date: Oct 2015
Posts: 13
Rep Power: 11
AntonZ is on a distinguished road
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?
AntonZ is offline   Reply With Quote

Old   June 27, 2016, 08:54
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,852
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   June 27, 2016, 08:58
Default
  #3
New Member
 
Anton
Join Date: Oct 2015
Posts: 13
Rep Power: 11
AntonZ is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
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.

Many thanks.
AntonZ is offline   Reply With Quote

Old   June 27, 2016, 09:02
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,852
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   June 27, 2016, 09:06
Default
  #5
New Member
 
Anton
Join Date: Oct 2015
Posts: 13
Rep Power: 11
AntonZ is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
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.
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.
AntonZ is offline   Reply With Quote

Old   June 27, 2016, 20:54
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,852
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
The help file is the reference for CFX-Pre. There is no other.
ghorrocks is offline   Reply With Quote

Reply

Tags
ccl, cfx, cfx5solve


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
8x icoFoam speed up with Cufflink CUDA solver library kmooney OpenFOAM Running, Solving & CFD 42 November 6, 2012 12:37
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 09:48
OpenFOAM15 installables are incomplete problem with paraFoam tryingof OpenFOAM Bugs 17 December 7, 2008 05:41
Problem of compilation OF 14Allwmake command not found erik_d OpenFOAM Bugs 13 September 13, 2008 22:45
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 05:26


All times are GMT -4. The time now is 02:37.