CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   ANSYS (http://www.cfd-online.com/Forums/ansys/)
-   -   Give Variable from Workbench Scripting to CCL (http://www.cfd-online.com/Forums/ansys/126495-give-variable-workbench-scripting-ccl.html)

Axlex November 19, 2013 08:29

Give Variable from Workbench Scripting to CCL
 
Hello,

i want to run some CFX-Simulations with different parameters. Therefor i want to use Workbench Scripting. A short example:
Code:

SetScriptVersion(Version="14.5")
system1 = GetSystem(Name="CFX")
setup1 = system1.GetContainer(ComponentName="Setup")
TurbulenceModel = "SST", "BSL Reynolds Stress"      #Array of Strings
for i in TurbulenceModel
    setup1.SendCommand(Command="""
          TURBULENCE MODEL:
                Option = Turb[i]                  #Insert Current Array String
          END # TURBULENCE MODEL:
    """)

What i want to achieve, is to give the values of the array to the system components of CFX. The problem is, that they use different programming languages, workbench-python and CFX-perl.

Does anyone know how to do this? I did not find any information about this in the help or the internet.

Axlex November 25, 2013 04:47

Ok,

I thought so, that there isn't a solution. My Workaround is to use a Text file, where i store the necessary values.


All times are GMT -4. The time now is 05:13.