ValentinChb / FASTFarm2Simulink

Apache License 2.0
7 stars 0 forks source link

Unable to use the "SCClient_DTUWEC_64.dll" file as the controller file. #4

Open dxsaigao opened 5 months ago

dxsaigao commented 5 months ago

Dear ValentinChb, I want to use the file "SCClient_DTUWEC_64.dll" as the controller file, but I encountered some problems. When running, it always gets stuck at the interface shown in the figure below. 1ad61938810f2b4886f2c52fd569a3a Is there something wrong with the configuration of some OpenFast files?Is there anything else that needs to be modified besides the place below? image

Best regards, dxsaigao

ValentinChb commented 5 months ago

Dear Dxsaigao,

Based on your description, FAST.Farm is running properly but it is waiting for the MPI server (i.e. Matlab/Simulink) to proceed. I suggest you carefully read debugging info and go through my answers to other issues to find out where the communication is locked.

Kind Regards

ValentinChb

dxsaigao commented 5 months ago

Dear ValentinChb,

Thanks for your leply!It is working fine when I use 'SCClient_64.dll' as my controller file, which I think probably indicates that my MPI connection is fine. However, when I replace the file with 'SCClient_DTUWEC_64.dll' the runtime results are wrong! image After I changed the controller file of all three turbines to 'SCClient_64.dll', the runtime will exit directly without any error report or message!I don't have a clue about this.

Best regards

Dxsaigao

ValentinChb commented 5 months ago

Dear Dxsaigao,

Your message is a bit confusing, is it running with SCClient_64.dll or does it abort without notice? How does the OpenFAST .out file look like, has any timestep been run? The only reason I see for the simulation freezing is a problem with the MPI communication, so I would still look at the debug files for both client and server.

BR,

ValentinChb

dxsaigao commented 5 months ago

Dear ValentinChb,

You are absolutely correct!I checked my "stdout_MPIServerSubs.txt" file and found his error as follows. image I can probably pinpoint where the problem occurs in "MPIServerSubs.f90" as follows. image But I have absolutely no idea how to solve this problem, so I'd be grateful for any advice you can give me! By the way, "MPI_shared.dat" and "stdout_SCClientSubs.txt" are as follows. image image

Best regards

Dxsaigao

ValentinChb commented 5 months ago

Dear Dxsaigao,

I have never seen this error before, and this is strange because the connection seems to have been established on the client side. Can you check if stdout_SCClientSubs.txt is not an old file that has not been updated? The other thing I am thinking of is a firewall issue, can you check if both client and server are authorized?

Kind Regards,

Valentin

VenusJinxin commented 1 month ago

Dear dxsaigao, Recently, I have encountered the same problem as you. Have you successfully solved it? Best Regards, Venus