How to add several heat flow BC when you a named selection with its corresponding values in a csv ?

Mohan Urs
Mohan Urs Member, Employee Posts: 6
First Comment
✭✭✭

I have several named selections to which I want to add heat flow boundary condition. The magnitude for the BC is contained in .csv file.

Best Answer

  • Mohan Urs
    Mohan Urs Member, Employee Posts: 6
    First Comment
    ✭✭✭
    edited January 24 Answer ✓

    You can do this using this generic code attached.

    The code assumes that the magnitude values in the csv file are structured in the same order of the named selection (named_selection1 = 1st value in csv).