|
[Sponsors] |
[Workbench] SpaceClaim Script Integration into WB Journal |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 31, 2019, 03:02 |
SpaceClaim Script Integration into WB Journal
|
#1 |
New Member
Mert
Join Date: Sep 2016
Posts: 10
Rep Power: 10 |
Dear all;
I want to automize my parametric simulation process recording and using WB journal. I have created my SpaceClaim script using recording option in SpaceClaim. When i record a journal file in WB, geometry section of the code looks like this: geometry1 = system1.GetContainer(ComponentName="Geometry") geometry1.Edit(IsSpaceClaimGeometry=True) ??? geometry1.Exit() I know I should put my SpaceClaim code between geometry1.Edit(IsSpaceClaimGeometry=True) and geometry1.Exit() (where i put question marks). Can anyone help about the function which gets geometry code into the WB journal? Thanks in advance. |
|
September 13, 2019, 12:17 |
|
#2 |
New Member
Join Date: Sep 2019
Posts: 3
Rep Power: 7 |
Hey Mert,
Have you maybe found a solution for this? I am having troubles with the same. I was trying to execute the Spaceclaim script from workbench file, but it didn't work.. |
|
February 28, 2020, 10:13 |
|
#3 |
New Member
L.Cappugi
Join Date: Jan 2020
Posts: 2
Rep Power: 0 |
Hi Mareeah,
I have the same problem too! Have you found a solution? |
|
March 26, 2020, 12:00 |
|
#4 |
New Member
ON
Join Date: May 2019
Posts: 1
Rep Power: 0 |
Hi guys,
Have you found the solution? |
|
May 11, 2020, 18:18 |
|
#5 |
New Member
Mert
Join Date: Sep 2016
Posts: 10
Rep Power: 10 |
Hi guys;
You should .py geometry file for spaceclaim and then you can read this file in WB journal file like this: geometry1 = system1.GetContainer(ComponentName="Geometry") geometry1.Edit(IsSpaceClaimGeometry=True) DSscript = open("C:/.../.../.../geometry.py", "r") DSscriptcommand=DSscript.read() DSscript.close geometry1.SendCommand(Command=DSscriptcommand,Lang uage="Python") geometry1.Exit() |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help using FLUENT in batch mode: script in the Journal file | danobis | FLUENT | 23 | November 27, 2019 00:23 |
Split connectors at their intersection | FOUAD12 | Pointwise & Gridgen | 3 | October 8, 2018 11:42 |
Fluent 14 journal script to set fluid parameters | jhome | ANSYS | 0 | April 30, 2012 05:26 |
Problems With Journal When Writing Forces To File | Andrew | FLUENT | 2 | September 23, 2005 03:12 |
help needed about phase change | Yanhu Guo | Main CFD Forum | 4 | January 24, 2001 00:16 |