Notifications
Clear all

Change boundary condition option through Script

3 Posts
2 Users
1 Likes
171 Views
Posts: 3
Topic starter
(@vikramgovindarajan)
Member
Joined: 2 years ago

How to change the value of component variables using Script has already been well described in the following link:

https://www.padtinc.com/2021/10/08/avoid-spiderwebs-with-direct-references-in-scripts/

This works for an integer or double-type variable. Is it possible to change the list variables using Script? For example, is it possible to change the "Pressure boundary condition" variable in a Boundary Condition component from "Fixed on user total value" to "Not specified" using Script?

Topic Tags
2 Replies
Posts: 19
Moderator
(@chris-settanni)
Member
Joined: 2 years ago

@vikramgovindarajan,

For modifying boundary conditions, I would recommend using the "Steady state only" option in the new release (8.15).

It is possible to set option values through scripts, as shown below, but this is a less reliable option:

var BC1 = Project.GetComponent("Boundary Condition - 1") as Flownex.Components.BoundaryCondition;
BC1.cSpecifyPressure.Value = "Not specified";

Reply
1 Reply
(@vikramgovindarajan)
Joined: 2 years ago

Member
Posts: 3

@chris-settanni 

Thanks for the reply!

Reply
Share:

Search in PADT site

Contact Us

Please fill out the form with as much information as possible, and someone will get back to your shortly.

Or reach out directly: 

No Fields Found.