environmentaltools.processes.nesting
- environmentaltools.processes.nesting(k, l, params, data)[source]
Execute nested SWAN and COPLA model runs for a specific time step.
This function performs a coupled wave-morphodynamic simulation by first running SWAN for wave propagation, then COPLA for profile evolution, and finally computing sediment transport using the Kobayashi method.
- Parameters:
k (int) – Time step index
l (pd.DatetimeIndex or similar) – Current timestamp for the computation
params (dict) –
Dictionary with model parameters including:
- cwdstr
Current working directory
- directorystr
Project directory name
Other model-specific parameters
data (pd.DataFrame) – DataFrame with boundary condition time series
- Returns:
Grid dictionary containing computed fields including wave parameters, velocities, and sediment transport rates
- Return type:
dict