Erik Kostson
Ansys Employee

No worries – all the best – it should be doable with less than 30 lines so not too bad.

 

 

Below is a start for the for loop on the named selections and the fopen to save the maxheat from every probe created:

 

model = ExtAPI.DataModel.Project.Model
analysis=model.Analyses[0]
ns=model.NamedSelections.Children
fpath = “D:/”
fname = “Maxheat.txt”
f = open(fpath+fname,”w”)
maxh =[]
ids =[]
for n in ns:

Once all the probes are done (1st step explained above), the model is solved (2nd), and then we do another loop (over nr. of probes) to extract the maxheat value on all the probes. We can use their object id number from the first loop when creating them via ExtAPI.DataModel.GetObjectById(idnr)