Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
byChen47 opened this issue Aug 20, 2024 · 4 comments
Open

Comments

@byChen47
Copy link

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
Copy link
Author

@fronterapp
Copy link
Owner

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

@byChen47
Copy link
Author

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
Copy link
Owner

Dear Chen,

It looks like there's an issue when calculating the end effects, particularly with the application of the exp() function here:

if (endEffectsCoeffs.lookupOrDefault("tipEffects", true))
{
scalar acosArg = Foam::exp
(
-nBlades_/2.0*(1.0/rootDist - 1)/sin(phi)
);
f = 2.0/pi*acos(min(1.0, acosArg));
}

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants