Welcome to the RAS Solution Forums HEC-RAS Help easiest way to extract courant number from results? 2D model

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7387
    Anonymous
    Guest

    hey everyone,

    what is the easiest way to view courant number at all the cells in HECRAS 2D model?

    Are the cell areas/dimensions/velocities stored somewhere in hdf files?

    #12428
    TypicalEngineer
    Participant

    Doesn’t look like anyone has giving you an answer yet so I will throw in my two cents and hopefully point you in the right direction as this is something I have not tried yet.

    I think you are on the right track though looking at the HDF files. That is a lot of output to store in a plain text file. By default, I don’t think RAS prints this data to HDF however. Those file are also pretty well organized and labeled so if you don’t see what you are looking for then that computational output might need to be enabled. If you head to RAS’s run unsteady flow and find “Set Output Control Options” and go to “HDF5 Write Parameters” there is a box for writing Vel data to HDF for 2D meshes. Not exactly courant but you also have all the data there to quickly calculate it using matlab or python/pandas.

    The tab before it, “Computation Level Output Options”, there are a couple boxes you can check for Courant numbers but that might be for 1D and it would write to an ascii file. Depending on how big you 2D model is that could significantly increase compute times…. if it also applies to 2D.

    Anyway, hope that helps. Let me know if any of that works for because now I am curious! Thanks!

    #12429
    cameron
    Participant

    There is an result output for Courant Number in Mapper which would be the easiest way.

    #12430
    Scott Miller
    Participant

    The Courant number has to be calculated before you view it. The easiest way to view it for all cells is to map them. It has to be a single time step. After they’re calculated you can hover the pointer over individual cells for the digits. Otherwise the map color scheme is useful for finding problem areas.

    In Mapper, right click in the legend on “Results”. Choose “Manage Result Maps”. Beside the plan you’re interested in, click “Add New Map”. Choose “Courant” and the time step you’re interested in. Make it a stored raster. Click “Add Map”, then highlight the row of the new map in the Manage Results Maps window. Now you can click “Compute/update stored map” and hold your breath for the results.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.