| User Forum
Other Brands
Change boundary condition option through Script
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?
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";
- 7 Categories
- 48 Topics
- 56 Posts
- 1 Online
- 46 Members
Latest posts on Flownex from PADT’s Blog
- An Independence Day Brisket Analysis July 5, 2024
- Flownex Version Control with GIT Client May 31, 2024
- What’s New in Flownex SE (2023 – Update1)? December 22, 2023
- Flownex Student Rocketry Highlights December 15, 2023
- Borrowing a Flownex License December 8, 2023
- Using Gauge Pressure in Flownex December 1, 2023
- Embedding a Designer in a Parametric Study November 22, 2023
- Setting Steady State Boundary Conditions October 19, 2023
- Adjusting Timesteps in Flownex September 29, 2023
- What’s New in Flownex SE 2023 September 15, 2023