Hi,<div><br></div><div>Just to clarify the implementation in WRF versus the theoretical mentioned in Anders reply:</div><div><br></div><div>The CFL errors that people see coming out of WRF and mentioned in Elena&#39;s email, seem to only apply to vertical winds.</div>

<div><br></div><div>And as stated in the error messages themselves (e.g. &quot;5  points exceeded cfl=2 in domain ...&quot;), they are only shown if the CFL is greater than 2, rather than 1.</div><div><br></div><div><br>
</div>
<div>From the source code:</div><div><br></div><div>vert_cfl = abs(ww(i,k,j)/mut(i,j)*rdnw(k)*dt)</div><div>&#39;</div><div>&#39;</div><div>&#39;</div><div></div><div>if ( vert_cfl &gt; 2. ) some = some + 1</div><div>&#39;</div>

<div>&#39;</div><div>&#39;</div><div><div>IF ( some .GT. 0 ) THEN</div><div>     CALL get_current_time_string( time_str )</div><div>     CALL get_current_grid_name( grid_str )</div><div>     WRITE(temp,*)some,                                            &amp;</div>

<div>            &#39; points exceeded cfl=2 in domain &#39;//TRIM(grid_str)//&#39; at time &#39;//TRIM(time_str)//&#39; hours&#39;</div><div>     CALL wrf_debug ( 0 , TRIM(temp) )</div><div>     WRITE(temp,*)&#39;MAX AT i,j,k: &#39;,maxi,maxj,maxk,&#39; vert_cfl,w,d(eta)=&#39;,max_vert_cfl, &amp;</div>

<div>                             maxdub,maxdeta</div><div>     CALL wrf_debug ( 0 , TRIM(temp) )</div><div>   ENDIF</div><div><br></div><div>Hope that helps,</div><div>Kevin</div><div><br></div><br><div class="gmail_quote">

On Thu, Nov 1, 2012 at 2:48 PM, Anders Nottrott <span dir="ltr">&lt;<a href="mailto:anottrot@ucsd.edu" target="_blank">anottrot@ucsd.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>Hi All,<br>
      <br>
      The maximum value of the CFL number is set by the
      Courant-Friedrichs-Lewy condition (see WRF Description, Section
      3.3 Stability Constraints). It is a necessary condition for the
      convergence of the finite difference integration schemes.<br>
      <br>
      Generally CFL = u_i*dt/dx_i, where u_i is the maximum velocity in
      the ith direction, dt is the timestep and  dx_i is the grid
      spacing in the ith direction. For a simple 1D advection equation
      with an explicit solver the requirement is CFL &lt; 1 everywhere
      in the domain. The limiting value is different for other equations
      and higher order finite difference schemes.<br>
      <br>
      If you get an error message saying that the CFL was violated you
      should consider the solution associated with that simulation to be
      spurious. To resolve this problem you can either reduce dt (which
      increases the computation time) or you can increase dx (which
      reduces resolution) and rerun the simulation. Keep in mind that
      u_i is the maximum velocity in the ith direction so a large
      velocity event at even one grid point can cause you simulation to
      &quot;blow up&quot; in just a couple of time steps. Thus it is important to
      consider the CFL in three dimensions and then allow some small
      factor of safety in the design of dt or dx.<br>
      <br>
      Regards,<br>
      <br>
      Anders<span class="HOEnZb"><font color="#888888"><br>
      <br>
      <br>
      <div>-- <br>
        Anders Nottrott<br>
        <i>PhD Student, Mechanical and Environmental Engineering</i><br>
        University of California, San Diego<br>
        Department of Mechanical and Aerospace Engineering<br>
        Website: <a href="http://solar.ucsd.edu/nottrott" target="_blank">solar.ucsd.edu/nottrott</a></div></font></span><div><div class="h5">
      <br>
      On 11/1/2012 11:37 AM, Kevin Matthew Nuss wrote:<br>
    </div></div></div><div><div class="h5">
    <blockquote type="cite">Hi Elena,
      <div><br>
      </div>
      <div>I have had the same thing happen. I don&#39;t know exactly how
        that affects the results, so when it has happened to me, I did
        not trust the results.</div>
      <div><br>
      </div>
      <div>Yes, reducing the time step is the standard way to avoid CFL
        errors. There are some alternatives like using restart files:
        when CFLs appear, stop, go back a little way in time, use small
        time steps for a while, stop and continue forward using the
        larger timesteps. That is mostly done for very long runs like
        climate downscaling when it is not practical to use small
        timesteps for an entire run.</div>
      <div><br>
      </div>
      <div>If CFLs always appear at the same coordinates such as a
        mountain peak, EPSSM can be adjusted or the grid changed.</div>
      <div><br>
      </div>
      <div>If you need more information and detail about what I do to
        avoid CFL errors, I have some on my website: <a href="http://www.nusculus.com/wrf-errors" target="_blank">http://www.nusculus.com/wrf-errors</a></div>
      <div><br>
      </div>
      <div>I don&#39;t claim to be an expert; I have simply suffered through
        a lot of bad WRF runs.</div>
      <div><br>
      </div>
      <div>But most people just keep reducing the time step until the
        CFL errors go away.</div>
      <div>
        <br>
      </div>
      <div>Kevin<br>
        <br>
        <div class="gmail_quote">On Wed, Oct 31, 2012 at 11:51 PM, Elena
          Maria Pison San Pedro <span dir="ltr">&lt;<a href="mailto:emp@dhi.com.sg" target="_blank">emp@dhi.com.sg</a>&gt;</span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div link="blue" vlink="purple" lang="EN-SG">
              <div>
                <p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> </span></p>
                <p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Hello,</span></p>
                <p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> </span></p>
                <p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">I’ve
                    remarked that sometimes when I run a simulation
                    (WRF3.4) I got messages saying “ x points exceeded
                    cfl=2 at time…” <u>but the simulation run to
                      completion</u>.</span></p>
                <p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> </span></p>
                <p class="MsoNormal"><span><img src="cid:part4.05020502.04030104@ucsd.edu" width="1037" height="576"></span><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"></span></p>
                <p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> </span></p>
                <p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">How
                    can this affect the results? What can I do to solve
                    this instabilities, run a higher time step?</span></p>
                <p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> </span></p>
                <p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Thanks
                    a lot in advance!</span></p>
                <p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> </span></p>
                <p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Best
                    regards,</span></p>
                <p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Elena</span></p>
                <p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> </span></p>
                <p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> </span></p>
                <table style="width:270.0pt" width="360" border="0" cellpadding="0" cellspacing="0">
                  <tbody>
                    <tr>
                      <td colspan="3" style="padding:0cm 0cm 0cm 0cm" valign="top">
                        <p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">Elena
                            Pison San Pedro</span></p>
                        <p class="MsoNormal">
                          <span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">M.Sc.
                            in Atmospheric Sciences</span><span style="font-size:9.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"></span></p>
                      </td>
                    </tr>
                    <tr>
                      <td colspan="3" style="padding:0cm 0cm 0cm 0cm" valign="top"><br>
                      </td>
                    </tr>
                    <tr style="min-height:15.0pt">
                      <td colspan="3" style="padding:0cm 0cm 0cm 0cm;min-height:15.0pt" valign="top">
                        <p class="MsoNormal" style="line-height:15.0pt">
                          <span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"> </span><span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"></span></p>
                      </td>
                    </tr>
                    <tr>
                      <td colspan="3" style="padding:0cm 0cm 0cm 0cm" valign="top">
                        <p class="MsoNormal"><span><img src="cid:part5.06000503.01030307@ucsd.edu" alt="Description:
                              C:\Users\mmc\AppData\Roaming\Microsoft\Signatures\dhi_logo.gif" width="150" height="38"></span><span></span></p>
                      </td>
                    </tr>
                    <tr style="min-height:7.5pt">
                      <td colspan="3" style="padding:0cm 0cm 0cm 0cm;min-height:7.5pt" valign="top">
                        <p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"> </span><span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"></span></p>


                      </td>
                    </tr>
                    <tr>
                      <td colspan="3" style="padding:0cm 0cm 0cm 0cm" valign="top">
                        <p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">DHI-NTU
                            Research Centre and Education Hub,</span></p>
                        <table style="width:270.0pt" width="360" border="0" cellpadding="0" cellspacing="0">
                          <tbody>
                            <tr>
                              <td style="padding:0cm 0cm 0cm 0cm" valign="top">
                                <p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">DHI
                                    Water &amp; Environment (S) Pte Ltd</span><span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"></span></p>
                              </td>
                            </tr>
                            <tr>
                              <td style="padding:0cm 0cm 0cm 0cm" valign="top">
                                <p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">1
                                    Clean Tech Loop</span><span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"></span></p>
                              </td>
                            </tr>
                            <tr>
                              <td style="padding:0cm 0cm 0cm 0cm" valign="top">
                                <p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">#03-05
                                    CleanTech One</span><span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"></span></p>
                              </td>
                            </tr>
                            <tr>
                              <td style="padding:0cm 0cm 0cm 0cm" valign="top">
                                <p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">Singapore
                                    637141</span><span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"></span></p>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </td>
                    </tr>
                    <tr>
                      <td colspan="3" style="padding:0cm 0cm 0cm 0cm" valign="top">
                        <table style="width:270.0pt" width="360" border="0" cellpadding="0" cellspacing="0">
                          <tbody>
                            <tr>
                              <td style="padding:0cm 0cm 0cm 0cm" valign="top">
                                <br>
                              </td>
                            </tr>
                            <tr>
                              <td style="padding:0cm 0cm 0cm 0cm" valign="top"><br>
                              </td>
                            </tr>
                            <tr>
                              <td style="padding:0cm 0cm 0cm 0cm" valign="top"><br>
                              </td>
                            </tr>
                            <tr>
                              <td style="padding:0cm 0cm 0cm 0cm" valign="top"><br>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </td>
                    </tr>
                    <tr>
                      <td colspan="3" style="padding:0cm 0cm 0cm 0cm" valign="top"><br>
                      </td>
                    </tr>
                    <tr>
                      <td colspan="3" style="padding:0cm 0cm 0cm 0cm" valign="top">
                        <table style="width:270.0pt" width="360" border="0" cellpadding="0" cellspacing="0">
                          <tbody>
                            <tr>
                              <td style="padding:0cm 0cm 0cm 0cm" valign="top"><br>
                              </td>
                            </tr>
                            <tr>
                              <td style="padding:0cm 0cm 0cm 0cm" valign="top"><br>
                              </td>
                            </tr>
                            <tr>
                              <td style="padding:0cm 0cm 0cm 0cm" valign="top"><br>
                              </td>
                            </tr>
                            <tr>
                              <td style="padding:0cm 0cm 0cm 0cm" valign="top">
                                <br>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </td>
                    </tr>
                    <tr style="min-height:7.5pt">
                      <td colspan="3" style="padding:0cm 0cm 0cm 0cm;min-height:7.5pt" valign="top">
                        <p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"> </span><span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"></span></p>


                      </td>
                    </tr>
                    <tr style="min-height:6.0pt">
                      <td style="width:37.5pt;padding:0cm 0cm 0cm 0cm;min-height:6.0pt" valign="top" width="50">
                        <p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">Tel:  </span><span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"></span></p>


                      </td>
                      <td style="width:3.75pt;padding:0cm 0cm 0cm 0cm;min-height:6.0pt" valign="top" width="5">
                        <p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"> </span><span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"></span></p>


                      </td>
                      <td style="width:228.75pt;padding:0cm 0cm 0cm 0cm;min-height:6.0pt" valign="top" width="305">
                        <p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><a href="tel:%2B65-6777-6330" value="+6567776330" target="_blank">+65-6777-6330</a></span><span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"></span></p>


                      </td>
                    </tr>
                    <tr style="min-height:7.5pt">
                      <td colspan="3" style="padding:0cm 0cm 0cm 0cm;min-height:7.5pt" valign="top">
                        <p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"> </span><span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"></span></p>


                      </td>
                    </tr>
                    <tr>
                      <td colspan="3" style="padding:0cm 0cm 0cm 0cm" valign="top">
                        <p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><a href="mailto:emp@dhi.com.sg" target="_blank"><span style="color:blue">emp@dhi.com.sg</span></a></span><span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"></span></p>


                      </td>
                    </tr>
                    <tr>
                      <td colspan="3" style="padding:0cm 0cm 0cm 0cm" valign="top">
                        <p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><a href="http://www.dhigroup.com/" target="_blank"><span style="color:blue">www.dhigroup.com</span></a></span><span style="font-size:8.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"></span></p>


                      </td>
                    </tr>
                  </tbody>
                </table>
                <p class="MsoNormal"><span> </span></p>
                <p class="MsoNormal"><span> </span></p>
                <p class="MsoNormal"> </p>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            Wrf-users mailing list<br>
            <a href="mailto:Wrf-users@ucar.edu" target="_blank">Wrf-users@ucar.edu</a><br>
            <a href="http://mailman.ucar.edu/mailman/listinfo/wrf-users" target="_blank">http://mailman.ucar.edu/mailman/listinfo/wrf-users</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Wrf-users mailing list
<a href="mailto:Wrf-users@ucar.edu" target="_blank">Wrf-users@ucar.edu</a>
<a href="http://mailman.ucar.edu/mailman/listinfo/wrf-users" target="_blank">http://mailman.ucar.edu/mailman/listinfo/wrf-users</a>
</pre>
    </blockquote>
  </div></div></div>

<br>_______________________________________________<br>
Wrf-users mailing list<br>
<a href="mailto:Wrf-users@ucar.edu">Wrf-users@ucar.edu</a><br>
<a href="http://mailman.ucar.edu/mailman/listinfo/wrf-users" target="_blank">http://mailman.ucar.edu/mailman/listinfo/wrf-users</a><br>
<br></blockquote></div><br></div>