Skip to content

Visualization tools for Clawpack simulations with the Julia language

License

Notifications You must be signed in to change notification settings

hydrocoast/VisClaw.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VisClaw.jl

NOTE: this package is unofficial and the author is not engaged in the Clawpack Development Team.

Build Status Codecov Coveralls

VisClaw.jl is a Julia package of the Clawpack visualization tools (see http://www.clawpack.org).
This allows to draw figures and animations using the Julia language.

Requirements

  • Julia v1.6.0 or later
  • GMT (Generic Mapping Tools)

Installation

  • If you want to plot using GMT.jl, install the GMT in advance. Note that GMT.jl does NOT install the GMT program.

  • You can install the latest VisClaw.jl using the built-in package manager (accessed by pressing ] in the Julia REPL) to add the package.

pkg> add VisClaw

Usage

  • In preparation, run some of the Clawpack simulations
    (e.g. chile2010 $CLAW/geoclaw/examples/tsunami/chile2010 and
    ike $CLAW/geoclaw/examples/storm-surge/ike).

  • This package uses either GMT.jl or Plots.jl to plot results of the numerical simulation. Plots.jl is more suitable for a quick check. The following codes generate a spatial distribution of the sea surface height using Plots:

julia> using VisClaw
julia> simdir = joinpath(CLAW, "geoclaw/examples/tsunami/chile2010/_output")
julia> plt = plotscheck(simdir; color=:balance, clims=(-0.5,0.5))
>> Press ENTER with a blank to finish
>> Input a file sequence number you want to plot:
checkpoint time (1 to 19) =

Topography data also can be easily plotted:

julia> topo = loadtopo(simdir)
julia> plt = plotstopo(topo)

See Examples_using_Plots.ipynb and Examples_using_GMT.ipynb for more information.

Plot gallery

The following figures are generated with the Julia scripts in example/ .

using GMT.jl

sea surface elevation

topography and bathymetry

seafloor deformation (dtopo)

wind and pressure fields

using Plots.jl

sea surface elevation

flow velocity

topography and bathymetry

wave gauge

fixed grid monitoring (fgmax)

License

BSD 3-Clause

Author

Takuya Miyashita
Disaster Prevention Research Institute, Kyoto University

About

Visualization tools for Clawpack simulations with the Julia language

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages