SPINS Science Files

From Fluids Wiki
Revision as of 12:34, 16 September 2020 by Ddeepwel (talk | contribs) (Early addition of Science files)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

SPINS comes with a variety of Science files which help with simulation data analysis. Below is a list of currently available functions with a brief description of their purpose and the assumptions behind their implementation. These Science files are in spins/src/Science.

bottom_slope.cpp

Returns the vector of the bottom slope at each x-grid point. This is used for calculating the stresses along the bottom boundary (cf. bottom_stress_x.cpp and bottom_stress_y.cpp).

Assumes the bottom is at the 0-index for .


bottom_stress_x.cpp

Returns the x-component of stress along the bottom boundary.

If the case is unmapped: where is the dynamic viscosity.

If the case is mapped: where and where is the bottom slope.


bottom_stress_y.cpp