SWASH

Available Versions:

version 11.01 / version 10.05 / version 10.01 / version 9.01

SWASH is a shallow water simulator designed to solve equations related to waves and currents in coastal waters and harbors. It’s highly effective for modeling long waves in coastal regions, tidal inlets, and rapidly varied flows around coastal structures. SWASH is widely used in coastal engineering to simulate both large-scale and localized water movements.

The simulator is configured with a .sws file, which defines the simulation parameters, and often requires additional files like a bathymetry file (.bot), containing information about the ocean floor.

Give it a Go: Try SWASH on the Cloud with Inductiva!

This code example shows how to run a SWASH simulation on a c3d-standard-180 Google Cloud machine using our API. To try it out, simply paste the code into your Python environment.

Explore our Three-Dimensional Currents benchmark, which replicates the S1 simulation from the 2021 paper by Christine M. Baker et al., and see how SWASH performs in real-world coastal scenarios.

For more details on the simulator’s features and configurations, visit the official SWASH site.

                            """SWASH example."""
import inductiva

# Allocate Google cloud machine
cloud_machine = inductiva.resources.MachineGroup( \
    provider="GCP",
    machine_type="c3d-standard-180")

# Initialize the Simulator
swash = inductiva.simulators.SWASH(version="10.05")

# Run simulation with config files in the input directory
task = swash.run( \
    input_dir="/path/to/my/swash/files",
    sim_config_filename="my_config_file.sws",
    on=cloud_machine)

# Wait for the simulation to finish and download the results
task.wait()
cloud_machine.terminate()

task.download_outputs()

                        

Dive Deep

Case Study: Scaling Coastal Engineering Projects at the Faculty of Engineering of Porto University (FEUP)

In our blog post, we explore Inductiva API’s ability to manage large-scale simulations, from modeling wave dynamics to optimizing harbor designs. By utilizing cloud resources, these simulations—such as those using SWASH—can be accelerated significantly. We share a case study where coastal engineering researchers from the Hydraulics, Water Resources and Environment Division Laboratory (SHRHA) at the Faculty of Engineering of Porto University (FEUP) used the Inductiva API to evaluate protective measures for a fragile section of the Portuguese coastline. 

fluidform 4- Transparent

We’ve got 20 simulators ready for you to explore.

Just one click away from running your favorite open-source simulators on the cloud and at scale!

Why not give it a try? Explore our example codes and discover everything our API can offer.

amr-wind

AMR-Wind

cans

CaNS

CP2K

CP2K

dualsphysics

DualSPHysics

Finite Volume Community Ocean Model

FVCOM

fds

FDS

gromacs

GROMACS

GX

GX

nwchem

NWChem

OpenFAST

OpenFAST

openfoam-esi

OpenFOAM (ESI)

openfoam-foundation

OpenFOAM (Foundation)

Quantum ESPRESSO

Quantum ESPRESSO

reef3d

Reef3D

schism

SCHISM

SNL-SWAN

SNL-SWAN

splishsplash

SPlisHSPlasH

swan

SWAN

swash

SWASH

xbeach

XBeach

Request a Simulator

Can't Find Your Simulator?
Get in Touch with Us!

If you can't find your simulator on our page, let us know!

Check out our blog

inductiva API v0.9: New Simulators, Dynamic Disk Resizing

Release news: Inductiva API v0.9 is here!

Discover the latest updates in Inductiva API v0.9, featuring new simulators like NWChem and FVCOM, dynamic disk resizing, dynamic code execution for OpenFOAM, and an enhanced metrics dashboard for better simulation tracking!

Manual to compile FVCOM model simulator, highlighting common issues and solutions for engineers compiling FVCOM on Linux, MacOS and Windows systems.

Compiling FVCOM: A Handy Guide to Solving Common Issues

Struggling to compile FVCOM? Our step-by-step manual tackles common errors and provides solutions for running FVCOM on a modern machine.

Aerodynamic simulation of a race car using OpenFOAM

Transform your Complex Simulations into easy-to-use Python Packages with the Inductiva API

Discover how you can tap into Inductiva API´s functionalities to package and share your complex simulation applications, allowing others to make use of them without requiring in-depth domain knowledge or having to set up their own computational resources.