polaris.ocean.convergence.analysis.ConvergenceAnalysis.exact_solution
- ConvergenceAnalysis.exact_solution(refinement_factor, field_name, time, zidx=None)[source]
Get the exact solution
- Parameters:
refinement_factor (float) – The factor by which step is refined in space, time or both
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