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.
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
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.
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
CaNS
CP2K
DualSPHysics
FVCOM
FDS
GROMACS
GX
NWChem
OpenFAST
OpenFOAM (ESI)
OpenFOAM (Foundation)
Quantum ESPRESSO
Reef3D
SCHISM
SNL-SWAN
SPlisHSPlasH
SWAN
SWASH
XBeach