SWAN

Available Versions:

version 41.45 / version 41.31

SWAN (Simulating WAves Nearshore) is a specialized simulator for generating realistic wave predictions in coastal areas, lakes, and estuaries. It provides estimates of wave parameters based on inputs like wind conditions, sea floor topography, and current conditions. SWAN is widely used in coastal engineering and environmental studies to model wave behavior and its impact on shorelines and marine structures.

The simulator is configured using a .swn file, which contains the simulation setup, and additional files. All files are stored in an input directory passed to the simulator for execution.

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

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

Looking to get started? Explore our SWAN benchmark, which replicates the ‘Ring’ example from SWAN’s official site, offering a practical case for wave simulations.

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

                            """SWAN example."""
import inductiva

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

# Initialize the Simulator
swan = inductiva.simulators.SWAN(version="41.45")

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

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

task.download_outputs()

                        

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.