ansys / pymapdl

Pythonic interface to MAPDL
https://mapdl.docs.pyansys.com
MIT License
421 stars 119 forks source link

pool.run_batch(paths) should create result directories based on the input file name #2272

Closed mcMunich closed 11 months ago

mcMunich commented 1 year ago

Description of the feature

If you run the pool.run_batch(paths) command each pool/worker creates a uniquely named directory of a bunch of letters. This hides which analysis and result is in the directory. To determine where the results are for your input file X you have to look through each randomly named directory and open files until you determine which is which.

Since the input files have to be unique why not use that name (my_apdl_input_1.dat, my_apdl_input_2.dat) as the result directory name? This would allow the user easier/quicker access to results.

Steps for implementing the feature

Make the default name of the result directories the file input name.

Useful links and references

No response

germa89 commented 1 year ago

This is an interesting request. I don't think we can set the name equal to the input file, because the pool is created before, and not always there will be an input file.

But we could change the name of the directories created to match the worker id or even include an optional argument which will set the workers path names.

I will look into this.