-
Notifications
You must be signed in to change notification settings - Fork 114
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
Problems running example.ALM: linked files, core dumped at refineHexMesh and decomposePar #26
Comments
Here are the basic instructions for running and coupling a precursor to SOWFA windPlantSolver simulations. Generating the precursor data
Preparing the precursor data reconstructPar -time 20000 -fields '(k kappat nuSgs p_rgh qwall Rwall T U)' Coupling to a wind farm simulation |
Mr. Doekemeijer, thanks for your detailed explanations. These are extremely helpful for new users like me.
but in boundaryData/west/$timeStep directory, k, T and U files all show the average as 0, i.e;
and I couldn't manage to output that first 500 time directory. After the 2nd run of precursor case, the boundaryDataPre directory does not include 500 folder in the first place. My runscript.solve.2 and controlDict.2 files are set to startTime=500. Should I set it slightly before 500? Again, thanks for your most valuable input. |
Hi Huseyin,
1. The average value is unused so you it doesn’t matter whether it’s 0 or not. It’s for the timeVaryingMappedFixedValue “setAverage” option, which should be turned off.
2. Make sure you have a directory with the time name (in your case, 500) inside of constant/boundaryData/west. In many cases, you can just create a symlink to your first actual directory inside this folder (in your case, 503.105590062). This can be done with a `ln -s 503.105590062 500` command.
Good luck!
Eliot
…--
Eliot Quon
Researcher| National Wind Technology Center
National Renewable Energy Laboratory (NREL)
15013 Denver West Parkway | Golden, CO 80401
303-384-7172 | M: 720-418-9746
[email protected]<mailto:[email protected]> | #NREL40: View our accomplishments<https://www.nrel.gov/about/accomplishments.html>.
From: hcOnel <[email protected]>
Reply-To: NREL/SOWFA <[email protected]>
Date: Friday, September 21, 2018 at 6:51 AM
To: NREL/SOWFA <[email protected]>
Cc: Subscribed <[email protected]>
Subject: Re: [NREL/SOWFA] Problems running example.ALM: linked files, core dumped at refineHexMesh and decomposePar (#26)
Mr. Doekemeijer, thanks for your detailed explanations. These are extremely helpful for new users like me.
I have followed these steps and although I'm having a hard time understanding the definition and transformation of flow direction and boundaries at different stages of the simulation, I can't ask for your time to explain these right now and I will keep trying to figure it out myself (watching the 2h video in NREL website).
Right now, I am trying to run a 500s + 500s precursor case (instead of 20000s + 2000s) not for simulation's sake but just to see if I am getting errors or not.
As prescribed in the example case, flow direction is +x (eastwards) so I will be sampling the west patch.
1. After step 6, the log is:
Number of vertices = 2821
Number of faces (original) = 2610
x_min = -0.1
x_max = 0.1
y_min = 0.0
y_max = 10000.0
z_min = 0.0
z_max = 1000.1
but in boundaryData/west/$timeStep directory, k, T and U files all show the average as 0, i.e;
// Average
(0 0 0)
2610
(
(4.08173838431 0.127017697574 0.00932212747655)
(4.06631740709 0.121126538405 0.0112868540655)
(4.13315167556 0.111598777211 0.00616209385615)
...
1. Stranger thing is, at pimpleFoam run of wind farm simulation, I get the following error:
Starting time loop
<U_1> = (6.02094373982 0.0466931066434 -0.00018940097415) <U_s> = (3.43129072862 0.103011340048 0) <dU/dn> = (0.0761662650351 -0.00165641862954 -4.44682329569e-05)
[0]
[0]
[0] --> FOAM FATAL ERROR:
[0] Cannot find starting sampling values for current time 500
Have sampling values for times
162
(
503.105590062
506.211180124
509.316770186
512.422360248
...
and I couldn't manage to output that first 500 time directory, although it is set to 500 everywhere. Should I set it slightly before 500? If so, where?
Again, thanks for your most valuable input.
Huseyin
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FNREL%2FSOWFA%2Fissues%2F26%23issuecomment-423520086&data=02%7C01%7Celiot.quon%40nrel.gov%7C838a3c96c2dc44099f7608d61fc0e115%7Ca0f29d7e28cd4f5484427885aee7c080%7C0%7C0%7C636731310611116346&sdata=EC8SqLQWlgxS%2FPtHEht6AqMgjPYntjdhLkEehagL8Lw%3D&reserved=0>, or mute the thread<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FARa7swLBTfRx-EhiIJo_G6YbcgBa0sJ8ks5udOCxgaJpZM4Wx4Z5&data=02%7C01%7Celiot.quon%40nrel.gov%7C838a3c96c2dc44099f7608d61fc0e115%7Ca0f29d7e28cd4f5484427885aee7c080%7C0%7C0%7C636731310611126370&sdata=dafrfgL0%2Fg%2F9Kr4rSPjiJ8KWBnwvRNbTzTNJaNgb5zE%3D&reserved=0>.
|
Hi everyone, Thanks a lot in advance and kind regards Merle |
@MerleSieb Perhaps it is possible, but I have never seen it. The way it is set up now, is that SOWFA copies the base mesh from the precursor directory, and then performs refinements. I'm guessing "cropping" the mesh would be more of an OpenFOAM question rather than a SOWFA question. Also, I believe the inlet is linearly mapped onto the mesh (both spatially and in time). |
Thanks a lot for the reply and all help provided. Is there any possibility of "re-using" precursor data for another wind velocity for the exact same mesh? |
I have got yet another question: |
Regarding my last question I found the scripts in the following links: Nevertheless, I am not sure how to use them and what to use them on. I saw there is a function foamToEnsight (as well as foamToVTK) available but what data do I have to do that with? The drivingData? Or do I have to use another sampling function during the simulation specifying the format, etc. What directory do I have to excecute the above scripts from? Thanks a lot in advance |
@MerleSieb sorry for the delayed response. These depend on planes of data, i.e., surface sampling output from OpenFOAM either in the Ensight format or the structured VTK format. The writer for the latter is provided by |
I have also encountered this problem and solved it. It seems that you have reconstructed all the variables while in the changeDictionarydict only k kappat nuSgs p_rgh qwall Rwall T U are there. So after performing changeDictionary, the other variables are still having cyclic conditions, which will confuse refineHexMesh and decomposePar. Just keep the 7 variable when doing reconstructPar or rewrite the changeDictionarydict for other variables. |
I have the
example.ABL.flatTerrain.stable
case solved as precursor and trying to runexample.ALM
upon it. I am at the preprocess stage at the moment.First thing I couldn't get is the drivingData files: boundaryData and sources. These are supposed to be linked but I do not have them in the precursor directory.
Also I get the following errors while running
runscript.preprocess
:refineHexMesh
anddecomposePar
logs show the error:The type patch is as it is in the example case. Should it be changed?
The text was updated successfully, but these errors were encountered: