Available Versions:
version 2.0
Supercharge your simulations with the best cloud CPUs while keeping your costs in check.
In this example, we show you how to run a SNL-SWAN simulation on a c3d-standard-180 Google Cloud machine using the Inductiva API.
All you need to do is copy the code into your Python script and make these simple adjustments: replace the input directory with the path to your own SNL-SWAN files and specify your simulation configuration file.
""" SNL SWAN example."""
import inductiva
# Allocate Google cloud machine
cloud_machine = inductiva.resources.MachineGroup( \
provider="GCP",
machine_type="c3d-standard-180")
# Initialize the Simulator
snl_swan = inductiva.simulators.SNLSWAN()
# Run simulation with config files in the input directory
task = snl_swan.run( \
input_dir="/Path/to/My/Snl-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