How to define convection coefficient at different load steps via scripting?

Pernelle Marone-Hitz
Pernelle Marone-Hitz Member, Moderator, Employee Posts: 871
100 Answers 500 Comments 250 Likes First Anniversary
✭✭✭✭

I want to create a convection object, set its setting to "tabular data" and provide different values for different load steps.

Answers

  • Pernelle Marone-Hitz
    Pernelle Marone-Hitz Member, Moderator, Employee Posts: 871
    100 Answers 500 Comments 250 Likes First Anniversary
    ✭✭✭✭

    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]')]