-
Notifications
You must be signed in to change notification settings - Fork 52
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
(very complicated) ROMS_SWAN_nesting blow up issue #320
Comments
-sounds like it might be the interpolation weights file. -how did you create the scrip weights file? -can u run Tools/mfiles/mtools/plot_scrip_weights.m |
I encoutered a similar issue when coupling ROMS with WW3. I am not sure whether this will work for you, but you could try remove all masking for SWAN model . it is not a solution, but can test whether it is caused by wrong interpolation of data between ROMS and SWAN due to land masking. |
In the lower left of the big grid, what do the waves look like? something has to be driving that flow. |
I am very sorry for my late reply. Thank you for all your help and advice. These are my files: (coupled ROMS_SWAN + 4nest) Thank you once again for your help. |
-i cant see the log.txt, can you post that again? -for the BC's you have, for example: -what is this: # define TWO_WAY -can you try with this off: # define PRESS_COMPENSATE
-do not use this: # define NEARSHORE_MELLOR08
define CHARNOKdefine CRAIG_BANNERor define TKE_WAVEDISS#define ZOS_HSIG |
Thank you for your help. I have tried to make the modifications in the sandy.h file and then recompile, following your advice. But the blow-up still persists, again in the lower left corner of the largest domain (reaching over 100m in zeta, large value in u and v which leads to blowup) and also the region near Rkuyu island in the second domain (u and v keep increasing, which will be the potential subsequent blowup points). Like the previous run, the model still blows up after running roughly 1.5 hours. |
These are the input files for SWAN: Thank you very much for your help. |
for grid 1 (the largest), what do the waves look like near the time of blowup, especially near lower left corner. |
Some new updates: I have made another attempt which significant increases the forecast time before the blowup (it can run for almost 44 hours before blowing up). The changes that i have made are:
#define TWO way means the child grids will also exchange info with the parent grid as well After i made these changes, the model can run forecast of nearly 44 hours before it blew up (this time it blew up at a different point in the largest grid, this time it is the u speed becomes suddenly very large, but the v speed and zeta values are normal). The blow-up point (tiny red dot in the diagram below) is located near Hainan log.txt Please find the following input files and log.txt: If that's the case, may i know what should i do in order to prevent the blow-up, should i mask the point near Hainan? Thank you for your help. |
Also, i have noticed some strange features: There are two "curves" originating from the coawstlines (east of the Philippines and also near Ryukyu Islands ) moving in the direction of the arrows in the image below (u surface speed) May I know is it something related to SWAN (as i also notice similar pattern in SWAN, is it because SWAN is designed and best-suited for nearshore simulation and now it is applied in big ocean in my largest grid) , are there any ways to remedy this issue. |
I am new to COAWST. I am now working on a project: ROMS_SWAN coupled with nesting (4 nested layers in total).
ROMS and SWAN are sharing the same grid and there are 4 nested layers in total. The largest domain covers -5 to 50 degree in latitude and 100 to 150 degree in longitude.
The complicated point is that when i run ROMS and SWAN separately, they run smoothly (144 forecast hours in total) without any blowup. I have also took a look at the output files from these two models very carefully (like the qck file for ROMS and swan netCDF files converted from the mat files) and everything is quite normal for ALL the 4 nested layers. (there isn't any distinct points with extreme values).
However, when i run the coupled one: ROMS_SWAN, it blew up after 1 forecast hour. When i take a look at the output QCK file for ROMS, i can notice that in the bottom left corner of the largest domain, the zeta values are horribly large, reaching almost 100 metres after 1 forecast hour, and the u & v are also large (increasing rapidly to 20 metres per second before blowing up. Another thing that i noticed is that, beside the horrible point above, there is also a small region near my SECOND largest domain's boundary (boundary again). When i take a look at the largest domain's qck file, actually in the corresponding region, the values are
quite large already compared with other points (like the region points are having 2-3 metre per second while other "normal" points are having -1 to 1 in general). As this region is located near the boundary of the second largest domain, so i think that's the reason why they are somehow exaggerated 3-4 times, having up to 8-10 metre per second in the second largest domain.
I have done quite a lot searching regarding this matter via the internet, and i tried using the following methods:
masking (masking those grid points with large zeta, u and v)
--> Result: when i mask the "blew up point", yes it can run longer for few minutes, then this time this is other point blew up (i think actually those points' u and v speed values are increasing continuously from the beginning, it does not blow up in the previous run because other points blew up BEFORE them). But one finding is that those points are mainly located near the boundary of the nested layer.
adding sponge layer near the boundary: increasing the viscosity and diffusity near the boundaries
--> Result: No big difference at all, still blew up
Smoothing the bathymetry
I did this all because i noticed that in those blew up points, all they have in common apart from near the boundary is that they are having very steep bathymetry, like near the coast of the Philippines and Ryukyu islands. I tried to smoothen the bathymetry using matlab scripts.
--> Result: Yes it can prevent some points from blowing up, but still, there are other points blowing up (especially near the Ryukyu islands, as i think they are still having quite steep bathymetry). But the point is that i already smoothened them to a large extent (using rx0 = 0.04).
What i dont understand is that:
A. May I know why when i separately run them, they are all ok without any abnormal values, but when i coupled them, it suddenly blew up?
B. As i suspect it might be related to the coupling, so i tried to increase the coupling interval between the two models by changing the coupling*.in (from 1800(s) to 18000(s) in both OCE2WAV AND WAV2OCE). I thought it could reduce the exchange of info between the two models (please correct me if i am wrong, as i am new to COAWST). However, still, it runs till the 1st forecast hour and then blew up. I dont understand, suppose if the coupling interval is 18000 seconds (they cannot exchange stuffs at all, but still the same result)
I will be very grateful if anyone could share their experiences if they encountered similar issues or give me some hints. Thank you very much
The text was updated successfully, but these errors were encountered: