|
[Sponsors] |
[Ansys Mechanical] Setting force using JavaScript |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 27, 2018, 15:08 |
[Ansys Mechanical] Setting force using JavaScript
|
#1 |
New Member
Maciej
Join Date: Dec 2018
Posts: 1
Rep Power: 0 |
Hello everyone,
I'm currently working on macro for Ansys Mechanical for my coupled analysis (static structural-dynamic explicit) using the JavaScript method and I have encountered problem. Excactly I can creat macro which is setting all my mesh settings, boundry conditions and results without any problem but only for single analysis (static structural). My problem is when I try to run my macro on coupled analysis I completety don't know what function should I use to set different forces for static structural and different for explicit dynamic. I will show what kind of function I'm using to set force in Z direction with value of 500. var Env = DS.Tree.FirstActiveBranch.Environment; DS.Script.SelectItems(""+Env.ID); DS.Script.doInsertEnvironmentForce("structural") ListView.ActivateItem("Scoping Method"); ListView.ItemValue = "Named Selection" ; ListView.ActivateItem("Named Selection"); ListView.ItemValue = "sciana" ; ListView.ActivateItem("Define By"); ListView.ItemValue = "Components" ; ListView.ActivateItem("X Component"); ListView.ItemValue = "0" ListView.SelectedItem.IsChecked="false" ListView.ActivateItem("Y Component"); ListView.ItemValue = "0" ListView.SelectedItem.IsChecked="false" ListView.ActivateItem("Z Component"); ListView.ItemValue = "500" ListView.SelectedItem.IsChecked="false" Like you see there is no definition on what kind of simulation this force should be set so Ansys is setting it in the first which is "static structural". And in addition for example I would like to set the froce of the value of 700 on the "explicit dynamic". Is there anybody who could help me with my problem? |
|
Tags |
ansys, javascript, macro, mechanical, script |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Residual level setting of Fluent | lhlh | ANSYS | 2 | November 17, 2012 22:35 |
Urgently Need the code of Lift force and VM force | Kai Yan | Main CFD Forum | 0 | July 16, 2008 08:07 |
DEFINE_CG_MOTION and pressure force | Teo Fumagalli | FLUENT | 0 | April 11, 2008 11:25 |
pressure force and viscous force | CFD | FLUENT | 0 | March 7, 2006 02:03 |
setting a body force as a boundary condition | blair | CFX | 1 | April 5, 2003 16:36 |