-
Notifications
You must be signed in to change notification settings - Fork 35
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
Guidelines for turbine simulation #51
Comments
For point 2, I found the script to perform the conversion in the |
Note that I will push in the coming weeks a simple example containing turbine. |
I am seeing a warning message during the boundary data generation step of precursor simulation:
This seems to appear from the surface writer script: SOWFA-6/src/fileFormats/sampledSurfaceWriters/boundaryData/boundaryDataSurfaceWriter.C Line 143 in ad09c15
If I understood it correctly, the error can be resolved by changing the line to:
This is because the time directories are stored in directories associated with individual boundary patches:
As a result of this warning, I don't see any planar averaging data saved during the course of the simulation. |
You're right about the warning. However, the warning does not prevent the boundary data from being saved. I've been ignoring the warning because I know it tries to delete directories that do not exist. Give it a shot without replacing that line with your suggestion and see if it works---it should. As you mentioned planar averaging, I believe you might be mixing up boundary data with planar average data. Boundary data saves SOWFA-6/exampleCases/tut.ABLflatTerrain.precursor/system/sampling/boundaryData Lines 10 to 15 in ad09c15
You obviously need the enabled flag to be true for proper saving to occur.
Planar averaging, on the other hand, is handled by SOWFA-6/exampleCases/tut.ABLflatTerrain.precursor/setUp.neutral Lines 66 to 67 in ad09c15
and the planarAveraging function object that exist inside system/sampling .
Let me know if you manage to properly save the boundary data. |
Hello @rthedin. Sorry for the late response. I am able to obtain the boundary data with the original Going back to the turbine simulation, I have not been able to execute one successfully. Firstly, the solver Line 74 in ad09c15
Then I came across this reply: #49 (comment) Henceforth, I switched to the From exploring this repository, I see that the plan is to indeed unify the ABL and ADM/ALM solvers within Here I must point put that I was unable to build OpenFAST successfully but as I was not interested in structural dynamics, I ignored this error, as also mentioned in #11 (comment). As noted in #47 (comment), this was not an issue for running the ABL solver. But since the turbine solver has been moved in
I also tried to use the standard turbine models:
but getting an error:
I hope this is not very confusing. |
UPDATE: I managed to install OpenFAST [1]. I can test that it has been installed correctly by checking the following output:
In the next step, before building SOWFA-6, I assign the
Next, running
I'm attaching the full log file for reference: Allwmake.log In the GitHub repository, I notice that [1] Just for information, OpenFAST has been installed as a package in a |
Sorry for late response. If that still doesn't work, I would suggest trying to get both OpenFAST and SOWFA compiled using cmake and skip the spack step. Get OpenFAST at least version 3.1. If that works, then you would be able to debug your spack installation. Hope that helps. |
Hello @rthedin.
... and ensured that the paths referred in But now I am seeing a different error:
... and the build exits with following message:
The full log can be viewed here: There are several warnings for unused symbols but I think they can be ignored. |
Ah- I apologize. Modifications to openfast have not been merged to the main repository. You should cherry-pick the following commits, which added the |
Hi @rthedin. I retried with mchurchf/openfast@a0d4f7e but still getting an error while building SOWFA6. I will like to point out that I'm currently following the advice in OpenFAST/openfast#60 (comment) and using the build script so that the OpenFAST routines can be accessed by SOWFA via the C++ interface. The make and install stages finish without error, as can be seen from the log files The SOWFA6 installation fails with several |
Okay, a few things worth double-checking:
|
Thanks @rthedin for the inputs.
So far, I've been performing the compilation of OpenFAST and SOWFA in the same environment. I'll make it a point to confirm it next time.
Previously
Slight correction: I built SOWFA using
I didn't notice this before but it is another strange message because I load the modules and confirm the paths for the dependencies before building SOWFA. I will confirm this too.
I've been using the suffix to pipe the standard error as well. But I will confirm. So it seems that I need to check whether the dependencies can be discovered during the build or not. I will get back once I've some update. |
Hello, I have encountered some problems with the case running "tut.ABLflatTerrain.precursor", I checked my own compilation installation, it seems to be no problem.
Case not reconstructed and first time of boundaryData not fixed. Check if endTime dir exists. Create time Finished decomposition in 0.4 s Processor 0 Processor 1 Number of processor faces = 6972 In addition, is there any link related to "a simple example containing turbine"? If you can share it, thank you very much. |
I unfortunately do not have a complete example with turbines. You will have to start from an inflow-outflow case and start adding the turbines from there. Note that the syntax has not changed, so it shouldn't be too complicated to get it working. Regarding the error above, the boundary data has not been saved. That can be a consequence of an unsuccessful execution of the solver. Your |
@Didi-X As pointed out, you should check the logs of the executions before the precursor boundary data is starting to be saved, specifically NOTE: I am referencing the script Also I have created a repository with the wind turbine case in case you want to refer (might need several modifications): https://github.com/nish-ant/SOWFA.NREL5MWRef.ALMAdvanced.flatTerrain.neutral |
@rthedin Thank you very much for your reply, my boundary data postProcessing/boundaryData / < patch > did not create success, I have done some query log files, found that is a question of Slurm. I'll try again after the change. |
@nish-ant Thank you very much for your sharing, I have seen this sharing case, and I will try to run it as soon as I solve the problem. |
@rthedin @nish-ant I want to confirm that the original sowfa2.4 pisoFoamTurbine. ALM, pisoFoamTurbine. ALMAdvancedOpenFAST whether to implant superDeliciousVanilla as well. If it is already implanted, which Settings should I change for the existing example, because it will show when I am not currently using the precursor data |
Regarding the specific error, it says the |
Yes, I am currently using SOWFA-6, and I would like to say that when I run a uniform wind simulation with SOWFA-6 (similar to |
As I mentioned, your BCs defined in the You can use Regarding the error, it is saying right there what the issue is. It seems like you are requesting a file called |
Thank you very much for your answer, next I will try to adjust the Settings to achieve the simulation. |
@rthedin Currently, for the coupling case, the |
Your grid resolution and your epsilon parameter play key roles in the accuracy of the actuator line model. I recommend you check some references by Martinez-Tossas et al for guidelines and how to properly set them. At some point, you may need to compromise in terms of grid resolution and epsilon. |
Yes, I've been looking at the references in detail and adjusting the examples. |
I'm sorry to come back to this question, but I really want to clarify this question.
I think it should be like this, I changed some boundary conditions, I wanted to do
I don't think even wind simulation requires the use of The following are some |
Hope that helps. |
Hi there,
I'm quite certain that I previously set up the relevant environment variables, following the example in
Then I recompiled using: This time, no fatal errors were reported (no red text), but I still encountered the error:
I have no idea how to proceed with debugging. I'm building within a Docker container. Here are all the commands I executed from scratch and the errors log output: Thanks in advance for any assistance! |
Sorry, I didn't notice the error before in output.log:133 :
I believe I should upload this file, It shouldn't have any suffix, but to comply with the file uploading rules on GitHub, I added ".txt": ================= I tried again from scratch and I Successfully build it. I guess I messed up with something before, maybe I forgot a backslash in the "options" file. Thank you for instructions in this issue! |
Hello,
I am migrating from SOWFA-2.4.0 to SOWFA-6 and trying to understand how the wind turbine simulation is set up using the tutorial. So far I have been able to run the precursor simulation and generate the
boundaryData
.I then looked into the directory
tut.ABLflatTerrain.run
to initiate a wind turbine simulation. I have some questions regarding this:The instructions mention that the tutorial does not include turbine files. Coming from SOWFA-2.4.0, I have a general idea of how the wind plant information is provided as input. But I believe that there are significant changes in SOWFA-6, especially in terms of the solver
superDeliciousVanilla.turbine
Can you please provide the guidlines to perform a turbine simulation ?I also cannot find the source information in
$precursorDir/constant/
which is required for the run:SOWFA-6/exampleCases/tut.ABLflatTerrain.run/1_preprocess
Line 113 in ad09c15
Apart from this, if there is another tutorial case I should refer for learning about the wind turbine simualtion in SOWFA-6, please let me know. Thanks.
The text was updated successfully, but these errors were encountered: