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

Give Variable from Workbench Scripting to CCL

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 19, 2013, 07:29
Default Give Variable from Workbench Scripting to CCL
  #1
New Member
 
Robert
Join Date: Apr 2013
Posts: 24
Rep Power: 13
Axlex is on a distinguished road
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.
__________________
Regards
Robert
Axlex is offline   Reply With Quote

Old   November 25, 2013, 03:47
Default
  #2
New Member
 
Robert
Join Date: Apr 2013
Posts: 24
Rep Power: 13
Axlex is on a distinguished road
Ok,

I thought so, that there isn't a solution. My Workaround is to use a Text file, where i store the necessary values.
__________________
Regards
Robert
Axlex is offline   Reply With Quote

Reply

Tags
ccl, perl, python, workbench scripting


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
How to give enough info to get help linnemann OpenFOAM 8 September 20, 2017 09:19
Embed explicitSetValue in chtMultiRegionFoam samiam1000 OpenFOAM 2 April 18, 2012 05:14
In CFX workbench, which surface, i have to select senCFX CFX 19 December 19, 2011 01:31
How to use / How to find IPMT? camoesas CFX 2 November 23, 2010 06:36
How to limit a variable ash OpenFOAM Running, Solving & CFD 1 June 26, 2008 20:32


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