How to define convection coefficient at different load steps via scripting?
Pernelle Marone-Hitz
Member, Moderator, Employee Posts: 871
✭✭✭✭
in Structures
I want to create a convection object, set its setting to "tabular data" and provide different values for different load steps.
0
Answers
-
The following code can be adapted:
thermal_analysis = ExtAPI.DataModel.Project.Model.Analyses[0] convection = thermal_analysis.AddConvection() convection.Location = ExtAPI.DataModel.GetObjectsByName('my_NS')[0] convection.FilmCoefficient.Inputs[0].DiscreteValues = [Quantity('0[s]'),Quantity('1[s]'),Quantity('2[s]'),Quantity('3[s]')] convection.FilmCoefficient.Output.DiscreteValues = [Quantity('0[W m^-1 m^-1 C^-1]'),Quantity('100[W m^-1 m^-1 C^-1]'),Quantity('200[W m^-1 m^-1 C^-1]'),Quantity('300[W m^-1 m^-1 C^-1]')]
0