polaris.ocean.tasks.manufactured_solution.analysis.Analysis.exact_solution
- Analysis.exact_solution(mesh_name, field_name, time, zidx=None)[source]
Get the exact solution
- Parameters
mesh_name (str) – The mesh name which is the prefix for the initial condition file
field_name (str) – The name of the variable of which we evaluate convergence For the default method, we use the same convergence rate for all fields
time (float) – The time at which to evaluate the exact solution in seconds. For the default method, we always use the initial state.
zidx (int, optional) – The z-index for the vertical level at which to evaluate the exact solution
- Returns
solution (xarray.DataArray) – The exact solution as derived from the initial condition