CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

DesignModeler Scripting: IC Engine - IC Manager

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 7, 2018, 04:54
Default DesignModeler Scripting: IC Engine - IC Manager
  #1
New Member
 
minmin's Avatar
 
minh
Join Date: Jun 2018
Location: Ho Chi Minh City
Posts: 3
Rep Power: 7
minmin is on a distinguished road
I'm trying to create a script file for IC Engine but in Input Manager (Design Modeler) I don't know how the function works. please help. I searched in the agEventHandler.js file but did not help. I use google translate for my post so it can be confusing.
Ex: How do I choose IVO in Decomposition Position?
my script file:
Quote:
# encoding: utf-8
# Release 19.1
SetScriptVersion(Version="19.1.103")
template1 = GetTemplate(TemplateName="ICEComponentSystemTempla te")
system1 = template1.CreateSystem()
iCEData1 = GetDataEntity("/ICE/ICEData:TestICE")
iCEData1.CRLength = "158 [mm]"
iCEData1.CrankRadius = "48.5 [mm]"
iCEData1.MinLift = "0.6 [mm]"
iCEData1.LiftCurvePath = "C:/Users/...AM.prof"

geometry1 = system1.GetContainer(ComponentName="Geometry")
geometry1.SetFile(FilePath="C:/Users/....m2.STEP")
geometryComponent1 = system1.GetComponent(Name="Geometry")
geometryComponent1.Update(AllDependencies=True)
geometry1.Edit()
geometry1.SendCommand (Command="""
ag.gui.CreateICManager();

""")
geometry1.Exit()
minmin is offline   Reply With Quote

Reply


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
[DesignModeler] DesignModeler Scripting: How to get Full Command Access ANT ANSYS Meshing & Geometry 53 February 16, 2020 15:13
[DesignModeler] Designmodeler java scripting Herbert2014 ANSYS Meshing & Geometry 13 October 16, 2019 16:19
[DesignModeler] DesignModeler Scripting: Direction vector in extrude command Tobias_H ANSYS Meshing & Geometry 3 July 27, 2015 18:36
Scripting in Solver Manager kar.coep CFX 9 May 28, 2015 04:49
Scripting Designmodeler - create skin out of line bodies - named selection USER1234 ANSYS 0 May 20, 2015 02:40


All times are GMT -4. The time now is 06:35.