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

[Workbench] SpaceClaim Script Integration into WB Journal

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 31, 2019, 02:02
Default SpaceClaim Script Integration into WB Journal
  #1
New Member
 
Mert
Join Date: Sep 2016
Posts: 10
Rep Power: 7
mertal1905 is on a distinguished road
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.
mertal1905 is offline   Reply With Quote

Old   September 13, 2019, 11:17
Default
  #2
New Member
 
Join Date: Sep 2019
Posts: 3
Rep Power: 4
Mareeah is on a distinguished road
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..
Mareeah is offline   Reply With Quote

Old   February 28, 2020, 09:13
Default
  #3
New Member
 
L.Cappugi
Join Date: Jan 2020
Posts: 2
Rep Power: 0
l.cappugi is on a distinguished road
Hi Mareeah,
I have the same problem too!

Have you found a solution?
l.cappugi is offline   Reply With Quote

Old   March 26, 2020, 11:00
Default
  #4
New Member
 
ON
Join Date: May 2019
Posts: 1
Rep Power: 0
l463li is on a distinguished road
Hi guys,

Have you found the solution?
l463li is offline   Reply With Quote

Old   May 11, 2020, 17:18
Default
  #5
New Member
 
Mert
Join Date: Sep 2016
Posts: 10
Rep Power: 7
mertal1905 is on a distinguished road
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()
mertal1905 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Help using FLUENT in batch mode: script in the Journal file danobis FLUENT 23 November 26, 2019 23:23
Split connectors at their intersection FOUAD12 Pointwise & Gridgen 3 October 8, 2018 10:42
Fluent 14 journal script to set fluid parameters jhome ANSYS 0 April 30, 2012 04:26
Problems With Journal When Writing Forces To File Andrew FLUENT 2 September 23, 2005 02:12
help needed about phase change Yanhu Guo Main CFD Forum 4 January 23, 2001 23:16


All times are GMT -4. The time now is 08:00.