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

Increase time-step #832

Closed
saksiwi opened this issue Sep 20, 2021 · 6 comments
Closed

Increase time-step #832

saksiwi opened this issue Sep 20, 2021 · 6 comments

Comments

@saksiwi
Copy link

saksiwi commented Sep 20, 2021

Hi all,

I have question-related to Tmax and DT while I am trying to execute the input file. I run 5MW_Land DLL_WTurb.fst. Initially from the glue code, the TMax is 60s. I tried to increase it, for 65s it is a success, but for 70s it makes an error that said that FF wind array was exhausted at 65.31s.

I tried to look at previous issues and I have several question:

  1. There is solution that asked me to take a look at variable speed control. I take a look at the settings and it is "user-defined from Bladed-style DLL". I have no idea how can I edit the Discon.dll? Or what should I do with that one?

  2. Another solution that I read is that I have to increase the wind file (src: Error: FF wind array was exhausted at 43.225 seconds (trying to access data at 47.005 seconds) #563). The wind filed that is used as far as I understand is NRELOffshrBsline5MW_InflowWind_12mps.dat. The settings mentioned that the wind file type is from binary turbsim. May I know how can I edit the 90m_12mps_twr.bts file? Does the content of the bts file is same with 90m_12mps_twr.inp file? If it is the same, is it the usable time that I have to change to increase the wind file so I can increase the time step?

Thank you!

@jjonkman
Copy link
Collaborator

Dear @saksiwi,

Approach (2) is the solution. To reduce the size of the r-test, the example OpenFAST simulations are short in length. Most turbulent wind turbine simulations are run for a 10-minute duration (or longer). For the the r-test example you are running, the wind data was generated from TurbSim v1.50 using the following input file: https://github.com/OpenFAST/r-test/blob/main/glue-codes/openfast/5MW_Baseline/Wind/90m_12mps_twr.inp. The UsableTime in this file is set to only 60 s. To generate 10+ minutes of turbulent wind data, set UsableTime = 630.0 s and rerun TurbSim, which will generate the corresponding TurbSim binary (*.bts) file used by the InflowWind module of OpenFAST.

The version of TurbSim in the OpenFAST github repository is newer than v1.50. You can either upgrade this input file to the newer version of TurbSim, or, you can access the old TurbSim v1.50 archive here: https://www.nrel.gov/wind/nwtc/assets/downloads/TurbSim/TurbSim_v150.exe.

Best regards,

@saksiwi
Copy link
Author

saksiwi commented Sep 27, 2021

Hi @jjonkman,

Sorry for just replying now. Thank you so much for your help, now it's working for me.

I have an additional question but sorry if it is unnecessary to ask. What I did is that I copy the 90m_12mps_twr.inp file in turbsim folder to regenerate the .bts file then copy the file again in openfast folder (the wind baseline folder). It's a bit redundant to do that back and forth. Should I put turbsim folder inside openfast folder or the other way around?

Thank you before.

@jjonkman
Copy link
Collaborator

@saksiwi,

I'm not really understanding your question, but you shouldn't need to copy files back and forth between directories. You can specify the path to the actual TurbSim output file you want to use within the OpenFAST's InflowWind input file.

Best regards,

@saksiwi
Copy link
Author

saksiwi commented Sep 27, 2021

Dear @jjonkman

Ok, noted. That's working well. Thank you so much for your fast response.

@saksiwi
Copy link
Author

saksiwi commented Oct 13, 2021

Hi @jjonkman

I have another question regarding the time step. I've increased the increased the usable time to 630s so it's worked properly like I talked before. Now I want to increase the module time-step (DT) to 0.04s but it got the error (I attached the error below). Is there any maximum DT that I can use? Or is there any way that I can increase DT? Because I want to run around 10 minutes for the simulation, but I want to have time step bigger than 0.04s.

Hope you can help, thank you.

Should I open another issue or can I continue this issue here?

image

@jjonkman
Copy link
Collaborator

Dear @saksiwi,

The required time step is intrinsically related to the rotor speed and structural natural frequencies that you are modeling. The use of too high a time step can result in a numerically unstable solution, as you are witnessing. This topic has been discussed many times on our forum, e.g.: https://wind.nrel.gov/forum/wind/viewtopic.php?f=4&t=351&p=1025.

Best regards,

@jjonkman jjonkman mentioned this issue Aug 29, 2022
11 tasks
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