-
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
tool WRFextraction in SOWFA #83
Comments
Here's an example bc.dat file, with lat/lon/elevation columns:
|
Hi ewquon, When I tried to run the WRFextraction with opening : flnm(i) 1 wrfout_d01_2015-08-05_05_40_00.nc My question is that I cannot find the output file (such as west_bc.dat) in the folder. Does it run correctly or the result is included in other files? Thank you very much! |
The files These are the steps you need to do:
|
Hi,
Thank you |
Hi, I have the same problem with you with the second question. Please let me know if you have a solution. Thank you very much!! |
Hello, I extracted the boundary but the operation always returns an error as follows: opening : flnm(i) 1 wrfout_d01_2000-01-24_16:00:00 Dimensions: 1 50 1 50 1 50 Reading latitude/longitude from latlong.nc The WRF grid is blessings approx. -0.00000 deg. From true Lat /lon. Getting variables from solution file Have heat flux: T Processing body 1 : west_bc.dat Precomputing points for body 1 Program received signal SIGSEGV: Segmentation fault - invalid memory reference. Backtrace for this error: #0 0x7efd5e8952ed in ??? #1 0x7efd5e894503 in ??? #2 0x7efd5e129f0f in ??? #3 0x55754b1f1ab7 in ??? #4 0x55754b1e76be in ??? #5 0x7efd5e10cc86 in ??? #6 0x55754b1e76f9 in ??? #7 0xffffffffffffffff in ??? Segmentation fault (core dumped) I feel like it might be because there's a problem with the _bC.dat I extracted. So I would like to ask how to extract the coordinates x,y,z of each boundary point and convert them into longitude/latitude/altitude. Is there a program that can be provided? |
I have scripted a workaround that you can adapt for your work:
Hopefully the script makes sense. |
@gaoxiangand You can see the bc file format here: SOWFA/tools/WRFextraction/module_openfoam_bc.F Lines 51 to 52 in 103832e
The number of lines in the file correspond to the number of boundary points to extract. Each line provides a latitude, longitude, and altitude. Since it's a fortran reader, the delimiter doesn't matter. TOOF doesn't use WRF's HGT terrain map, so a "gotcha" might be that you're specifying a height above ground level rather than above sea level. |
Hello, thank you very much for your answer. I am interested in the WRF extraction tool in SOWFA. But when I use *_bc.dat input, and (./wrftoof wrfout_d03_2000-01-25_12:00:00 -startdate 2000-01-25_12_00_00-offset 2000) command to extract the speed of each boundary, the reason is all negative, as shown in the following(north/2000/U).
( |
If you're sure you're inputing the correct latitude, longitude, and altitude above sea level, then I would check your WRF input data. A few of the points you're showing are repeated, I wonder if you're sampling out of the WRF bounds and it's just giving you the closest point. |
Hello, thank you very much for your answer! I checked my WRF input data and modified it to ensure sampling within the WRF limits. At present, there are no duplicate points on the output boundary. However, it still appears that the speed is all negative. So I would like to ask if it is because the latitude, longitude and altitude I entered are incorrect? The result I entered is a region I selected myself, as shown below: |
I'm not sure if I've made it clear or not, but the altitudes are absolute values, not relative to the ground. So if you're sampling at altitudes that are above the ground in WRF, and the bottom of your SOWFA mesh corresponds to the same topography as the WRF region, then TOOF should successfully map the solution from WRF to your SOWFA boundaries. The size of the region to extract from is irrelevant, it can be as big or small as you want. |
hello Thank you very much for your answer! I have a preliminary understanding of it. But I still have a few questions. For example, the wind speed I extracted is all negative. Is it correct? When I extract (lower and upper, east, west, north and south) boundary data, how do I with OpenFOAM coupling? Is there a similar example? |
Hello.sorrry to bother you.
|
|
Thank you very much for your help. I'm sorry for not replying to you in time.I really appreciate for your help. |
|
Thank you very much for your help. The good news for me is that I have now successfully compiled the wrtoof tool, so I intend to use wrftoof for coupling rather than the tendency offline mmc. In the meantime, I have some questions that I would like to ask for your help. |
|
|
|
Hello,
I am interested in the tool WRFextraction in SOWFA. It allows to create the boundary condition files for OpenFOAM from WRF.
I am confused about “WRFTOOF expects OpenFOAM boundary definitions in files named “_bc.dat” and “interior.dat”. Where could I find an example of these files? How I could provide these OpenFOAM boundary definitions files? Is there the examples of these boundary definition files? They aren’t In the exampleCases” example.mesoscaleInfluence.SWiFTsiteLubbock.11Nov2013Diurnal”.
Thank you,
The text was updated successfully, but these errors were encountered: