Change boundary condition option through Script - Scripting and Customization https://www.padtinc.com/simulation/flownex-user-forum/flownex-uf-scripting-customization/change-boundary-condition-option-through-script/ A Place for Flownex Users to Chat and Help Each Other, Provided by PADT en-US Tue, 21 Jan 2025 10:55:01 +0000 wpForo 60 RE: Change boundary condition option through Script https://www.padtinc.com/simulation/flownex-user-forum/flownex-uf-scripting-customization/change-boundary-condition-option-through-script/#post-51 Fri, 13 Oct 2023 08:37:23 +0000 @chris-settanniĀ 

Thanks for the reply!

]]>
Scripting and Customization VikramGovindarajan https://www.padtinc.com/simulation/flownex-user-forum/flownex-uf-scripting-customization/change-boundary-condition-option-through-script/#post-51
RE: Change boundary condition option through Script https://www.padtinc.com/simulation/flownex-user-forum/flownex-uf-scripting-customization/change-boundary-condition-option-through-script/#post-50 Thu, 12 Oct 2023 23:16:27 +0000 @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";

]]>
Scripting and Customization Chris Settanni https://www.padtinc.com/simulation/flownex-user-forum/flownex-uf-scripting-customization/change-boundary-condition-option-through-script/#post-50
Change boundary condition option through Script https://www.padtinc.com/simulation/flownex-user-forum/flownex-uf-scripting-customization/change-boundary-condition-option-through-script/#post-48 Thu, 12 Oct 2023 03:30:49 +0000 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?

]]>
Scripting and Customization VikramGovindarajan https://www.padtinc.com/simulation/flownex-user-forum/flownex-uf-scripting-customization/change-boundary-condition-option-through-script/#post-48