Can we get the PID or Process name for an launch: ExtAPI.DataModel.Project.Model.Solve()

Options
M
M Member, Employee Posts: 230
First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member

I have some basic script to follow the CPU and RAM useage during a solve but it would be more focused if I could get the actual usage for the given analysis. To do that I need to know what PID or Process gets started when a solve is started. Any ideas

Answers

  • Mike.Thompson
    Mike.Thompson Member, Employee Posts: 300
    First Anniversary First Comment 5 Likes Ansys Employee
    Options

    Could you take a value of the date-time right before the solve command and then look at the APDL solver processes on the machine (look up by name?) and match the one that started soon after the solve call from Mechanical? I am not sure how to directly tie to the process Id but it might be possible.

  • M
    M Member, Employee Posts: 230
    First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member
    Options

    @Mike.Thompson This would be a solution but might not be super reliable. If I want to be sure what PID is started to follow the useage of a certain analysis.