fronterapp / thesis-FloatingTurbine

Repository containing the simulation setups and libraries from the thesis 'CFD Simulation of a Floating Wind Turbine with OpenFOAM'.
Other
46 stars 18 forks source link

the case can run in turbinesFoam but error in floatingTurbinesFoam #9

Open byChen47 opened 3 months ago

byChen47 commented 3 months ago

Dear @fronterapp , when I setting a case and can run in turbinesFoam .but when I use your codes :floatingTurbinesFoam to run the wind turbines case ,which error ,I don't know why .I hope you can help me.

Best Regard chen [Uploading 9.turbines_2Mesh_61d5.zip…]()

byChen47 commented 3 months ago

9.turbines_2Mesh_61d5.zip

fronterapp commented 3 months ago

Dear Chen, unfortunately I cannot run the case myself at the moment. Could you provide the log file of your run?

byChen47 commented 3 months ago

Dear @fronterapp I'm sorry for replying so late,the log file the log file is shown below.I don't understand why the program suddenly stops. pimple.log

fronterapp commented 1 month ago

Dear Chen,

It looks like there's an issue when calculating the end effects, particularly with the application of the exp() function here: https://github.com/fronterapp/thesis-FloatingTurbine/blob/a4a4e188f09d983d5776772f9781082349d7e2ae/libraries/floatingTurbinesFoam/src/fvOptions/axialFlowTurbineALSource/axialFlowTurbineALSource.C#L541-L548 It seems that the issue might be related to the phi angle being either 0 or π, which can lead to a division by zero when calculating the end effects.

Could you try disabling the end effects in fvOptions and running the case again? If the run proceeds without issues, I recommend enabling the debug flag to get more detailed information about what's happening inside the function.

Let me know how it goes!

Best regards, Pere