cfl error and unusual streaks in output wind speed (RESOLVED)

Topics specifically related to the wrf.exe program
Post Reply
mgolbazi
Posts: 19
Joined: Tue Apr 21, 2020 9:29 pm
Location: United States

cfl error and unusual streaks in output wind speed (RESOLVED)

Post by mgolbazi » Wed Apr 28, 2021 1:51 pm

namelist.input
(6.33 KiB) Downloaded 14 times
streaks_June1st_2018.PNG
wind speed plot with streaks mostly on the western side of the domain.
Hi everyone!

I am trying to run WRF4.2 for 3 months of summer in 2018. My domain is 400*400 with a 4km resolution. Overall I have defined 56 vertical levels and I need 4 levels below 30 meters and one level at around 120 meters. I have used "dzstretch" options introduced in: viewtopic.php?f=40&t=10233

For input data, I am using the 12km NAM data from: https://www.ncdc.noaa.gov/data-access/m ... system-nam

Problem: My runs keep crashing due to CFL error at random times and random gridcells. I understand that the CFL errors happen because the model becomes numerically unstable and a few solutions have been given in the forum like:

1. reducing the time step.
2. using the adaptive time step.
3. using "epssm" in the namelist.
4. using "smooth_cg_topo = .true." in the namelist.

Considering all this, I still get CFL errors randomly!

Another problem is, even though sometimes the runs do not crash for some simulation periods by using some of the solutions above, there are still streaks in my wind speed plots from the outputs. The streaks are so persistent. I have tried so many things and 3 kinds of input data (fnl, gfs, NAM) but they are still there. The streaks normally show up around times (14:00-23:00) in the first day of simulation and then (18:00 to 23:00) for the rest of the runs. I attached a plot to this post for your reference.

I doubted that the streaks are because of thin vertical layers close to the surface, so I ran a default simulation with the same number of vertical layers without thin layers close to the surface and streaks are still showing up in the output. Now, I am doubting that there is something wrong in my namelist that I cannot notice.

I also attached my namelist.input file for a successful run (no cfl errors) WITH streaks in the output.

I am stuck here and any suggestion would be very helpful!

Thank you!

mgolbazi
Posts: 19
Joined: Tue Apr 21, 2020 9:29 pm
Location: United States

Re: cfl error and unusual streaks in output wind speed

Post by mgolbazi » Mon May 03, 2021 3:29 pm

Hi,

I would really appreciate any help on this post!

Thanks!

kwerner
Posts: 2287
Joined: Wed Feb 14, 2018 9:21 pm

Re: cfl error and unusual streaks in output wind speed

Post by kwerner » Mon May 03, 2021 9:52 pm

Hi,
I apologize for the delay. It can sometimes take us a few business days to get to every post, as we receive numerous and sometimes an individual problem can take more than a day to resolve. We also do not work nights/weekends. Thank you for your patience.

I've been trying to recreate your issue but haven't been able to thus far. For the namelist that you sent,

1) will you send the files I would need to run wrf (i.e., wrfbdy, wrfinput, wrflowinp). I'd like to try to use your exact input.. If the files are too large to attach, please see the forum home page for information on sending large files.
2) Please let me know the time you start seeing the problem for this particular case.
3) I know your plot shows 'wind.' Is it the U field? V field? Please let me know exactly what you're plotting. If you're using an external post-processing tool, let me know if you see the problem in the raw output data - like in the U field on the wrfout* files. You can use ncview to check this.

Thanks
NCAR/MMM

mgolbazi
Posts: 19
Joined: Tue Apr 21, 2020 9:29 pm
Location: United States

Re: cfl error and unusual streaks in output wind speed

Post by mgolbazi » Wed May 05, 2021 7:28 pm

Sorry if I got impatient and for my own delay! It took some time to upload the files.
kwerner wrote:
Mon May 03, 2021 9:52 pm
will you send the files I would need to run wrf (i.e., wrfbdy, wrfinput, wrflowinp). I'd like to try to use your exact input.. If the files are too large to attach, please see the forum home page for information on sending large files.
I uploaded my input files to Nextcloud. Please find them here: https://nextcloud.mmm.ucar.edu/nextclou ... N3nHMQr1Ov
The file name is : mgolbazi_4km_streaks.tar.gz
kwerner wrote:
Mon May 03, 2021 9:52 pm
2) Please let me know the time you start seeing the problem for this particular case.
In a 2 day run (June 1st to June 3rd), the streaks happen around times ~17:00-24:00, and ~44:00-48:00 (or ~18:00-23:00 the second day). So, I would say the last 6-7 hours of every simulation day.
kwerner wrote:
Mon May 03, 2021 9:52 pm
3) I know your plot shows 'wind.' Is it the U field? V field? Please let me know exactly what you're plotting. If you're using an external post-processing tool, let me know if you see the problem in the raw output data - like in the U field on the wrfout* files. You can use ncview to check this.
I am plotting the total wind speed (sqrt(u^2+v^2)) at the 9th model level (~121m). I use NCL to do so. I also included my NCL code for plotting the wind speed in the attached .tar folder. In the "U" field, there are also similar streaks in the bottom left side of the plot and there are white areas (I assume they are NANs) on the top left where streaks happen.

I also would like to share some things that I have found since my 1st post here in case if it helps at all:

1. I switched the "moist_adv_opt" from option 1 (positive-definite) to option 0 (simple). I learned from chapter 5 user's guide that "model filter "diff_opt = 1 and km_opt = 4 (a commonly-used real-data case mixing option) is not guaranteed to be positive-definite nor monotonic due to the variable eddy diffusivity, K.". So I think a positive definite moisture advection option was part of what was causing the CFL errors.

2. when I increase the thickness of the 1st model level from 5m to 10m the streaks are SLIGHTLY better but still there.

3. I ran 2 separate runs with a simple namelist for two different horizontal resolutions: 12km and 4km for the same area. These two runs used the same namelist, except for variables that are resolution-dependent e.g. the time step. The result was, there were no streaks for the 12 km run while the 4km run was all streaky! So I think it is a resolution-dependent problem.

Please let me know if I can help with anything.

Thank you!

kwerner
Posts: 2287
Joined: Wed Feb 14, 2018 9:21 pm

Re: cfl error and unusual streaks in output wind speed

Post by kwerner » Fri May 07, 2021 9:30 pm

Thank you for sending everything! I'll work on trying to recreate this. In the meantime, however, based on your test #3, can you try to add an outer more-coarse resolution around the 4km domain to see if that makes any difference? With 12km NAM input, I wouldn't think this would be necessary, but since your coarse simulation was streak-free, it seems like it could potentially help. Thanks!
NCAR/MMM

kwerner
Posts: 2287
Joined: Wed Feb 14, 2018 9:21 pm

Re: cfl error and unusual streaks in output wind speed

Post by kwerner » Thu May 13, 2021 8:58 pm

Hi,
I ran your case and I am able to see what you are. Can you try to set diff_6th_opt = 2 in your namelist and see if that makes any difference?
NCAR/MMM

mgolbazi
Posts: 19
Joined: Tue Apr 21, 2020 9:29 pm
Location: United States

Re: cfl error and unusual streaks in output wind speed

Post by mgolbazi » Fri May 14, 2021 3:48 pm

Thank you!! After a month of trying and failing, I finally do not see the streaks anymore! This is great news for my PhD dissertation! : )

The plot below is how it looks now!

I also intend to try this with the recently released WRF-4.3 with the newly added Implicit-Explicit Vertical Advection (IEVA) scheme. I can update the post when I have the results.

Thanks again for the support,
Maryam
Attachments
plotwind_000025.png

kwerner
Posts: 2287
Joined: Wed Feb 14, 2018 9:21 pm

Re: cfl error and unusual streaks in output wind speed

Post by kwerner » Wed May 19, 2021 10:38 pm

Maryam,
That is great news! I'm so happy to hear that. Was it the "diff_6th_opt = 2" change that fixed the problem, or something else?
NCAR/MMM

mgolbazi
Posts: 19
Joined: Tue Apr 21, 2020 9:29 pm
Location: United States

Re: cfl error and unusual streaks in output wind speed (RESOLVED)

Post by mgolbazi » Fri May 21, 2021 2:48 am

Thank you!

Yes, I changed the "diff_6th_opt = 2" and I used it with "diff_6th_factor = 0.12" and it worked!

Post Reply

Return to “wrf.exe”