Example use cases for interacting the a pyCAPS._capsValue object for setting the value.
1 from __future__
import print_function
7 print(
"Initiating capsProblem")
11 myGeometry = myProblem.loadCAPS(
"./csmData/cfdMultiBody.csm",
"basicTest")
14 myValue = myProblem.createValue(
"Altitude", [0.0, 30000.0, 60000.0], units=
"ft", limits=[0.0, 70000])
16 print(
"Name = ", myValue.name)
17 print(
"Value = ", myValue.value)
18 print(
"Units = ", myValue.units)
19 print(
"Limits = ", myValue.limits)
22 myValue.value = [0.0, 40000.0, 50000]
23 print(
"New Value = ", myValue.value)
26 myValue.setVal([0.0, 45000.0, 55000])
27 print(
"New Value = ", myValue.value)
30 print(
"Current Value = ", myValue.getVal())
33 print(
"Closing our problem")