🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

I am getting two errors when I run definition in the 'Test models' section, as "Failed to read hstp file" and "The PDD file does not exist".

User: "ramin_21612"
Altair Community Member
Updated by ramin_21612

Hi all,
I generated hyperStudy file from Altair flux 2021 and imported it as a resource in Altair HyperStudy. Then I define input variables. When I run definition in the 'Test models' section, I get two errors as "Failed to read hstp file" and "The PDD file does not exist". The 'write' and 'execute' icons have green tick, but 'Extract' icon has red tick. Could you please tell me what does it mean? And how to clear these errors?

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Diana_38240"
    Altair Employee
    Accepted Answer
    Updated by Diana_38240

    Hello

    I did it step by step and minimize the goal function(torque ripple).

    image

    ,but the post-processing results showed that the torque ripple function didn't change. In addition, I did this procedure even by considering the torque-mean as constraint, but the output functions didn't change, which are shown as below:

    image

    Hi Ramin,

    I think I see what's happen. On the image you shared I see that torque values recovered from Flux are always the same whatever the variables values are. That's why torque_ripple doesn't change neither. Indeed your simulations are done correctly and the model has been solved with updated parameters values, but the results (values stored under I/O parameters in Flux) are not updated. This part is handled by your post-processing python file.

    To fix this, you would need to execute the macro within the python. This macro Analyze2Dcurve allows several things: extract values from the curve, create I/O parameters and also update the I/O parameters if they exist.

    In other words when you run the python for the first time (I always suggest to test the post-processing python file in Flux before connecting to HyperStudy), the torque curve is displayed and the macro extracts the values and create torque I/O parameters. After this, at each new evaluation the same post-processing is automated through the python where the same macro is used to update the results.

    Does that make sense?

    Below is an example of similar post-processing python. If the macro is already loaded in your model, you can skip the section "Load macro", but you definitely need to run the macro (highlighted line below).

    Note: the command CurveVariation2D[ALL].delete() avoids issue with same curve name. I think you have it added.

     

    image

     

    Hope it helps.

     

    Regards,

    Diana