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