polaris.tasks.ocean.barotropic_gyre.analysis.Analysis.exact_solution
- Analysis.exact_solution(ds_mesh, config, loc='Cell', boundary_condition='free slip')[source]
Exact solution to the barotropic streamfunction for the linearized Munk layer experiments.
- Parameters:
ds_mesh (xarray.Dataset) – The mesh dataset. Must contain the fields: f’x{loc}’, f’y{loc}’.
config (polaris.config.PolarisConfigParser) – The configuration options for the test case.
loc (str, optional) – The location type (‘Cell’, ‘Vertex’, etc.) for which to compute the solution.
boundary_condition (str, optional) – The type of boundary condition to use (‘free-slip’ or ‘no-slip’).