Download results after remote (hpc) job finished - FetchRemoteResults / Status

total_obliteration
total_obliteration Member Posts: 12
Name Dropper First Comment
**

Hello.
The aim here is to initialize downlaoding of results after remote job has finished (ideally given that no error has occured).

While remote solving, Model.Analyses.Solution.Status returns Ansys.Mechanical.DataModel.Enums.SolutionStatusType.SolveRequired

Unfortunately the same status is returned when the job has finished (green arrow in Mechanical). Any other way to know that the hpc job has finished from inside the Mechanical?

Tagged:

Answers

  • Erik Kostson
    Erik Kostson Member, Moderator, Employee Posts: 276
    50 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭
    edited November 6

    Hi

    Strange the status property used below returns Done when it run and is green (tick mark), and Solverquired when it is yellow, so seems fine (did not use a remote solve / hpc when trying this should be said).

    Here are some posts that might be of help:

    https://discuss.ansys.com/discussion/3457/check-if-the-resolution-went-well

    https://discuss.ansys.com/discussion/2078/how-to-get-wb-project-system-status

    All the best

    Erik

  • total_obliteration
    total_obliteration Member Posts: 12
    Name Dropper First Comment
    **

    Thank you so much, Erik. Unfortunately, the discussion provided are about local solving. There is no access to solve.out since it is solving remotely. Or is it?

  • Erik Kostson
    Erik Kostson Member, Moderator, Employee Posts: 276
    50 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭
    edited November 6

    Hi

    If one submits the update from workbench it will automatically download files once completed, so then the status should be fine and up to date as files are downloaded.

    With HPS there will be a button for automatically downloading when submitting from mechanical

    Once that is done the status should be updated I would imagine.

    All the best

    Erik

  • Erik Kostson
    Erik Kostson Member, Moderator, Employee Posts: 276
    50 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭
    edited November 6

    @total_obliteration

    As we said With HPC/remote solve we need as we do manually, the downloading of results.

    So based on the above observation, this works for remote solve (tried it in 2024 R2)

    Model.Analyses[0].Solution.Solve() # start remote solve

    Model.Analyses[0].Solution.GetResults() # as we said we need to download results from remote solve

    Model.Analyses[0].Solution.Status # status is ok now done

    All the best

    Erik