src.spyice.preprocess.modify_initial_boundary#

class src.spyice.preprocess.modify_initial_boundary.ModifyInitialBoundary[source]#

Bases: object

Defines functions for managing initial boundary conditions in a sea ice model.

__init__()[source]#
Return type:

None

bc_neumann(phi_k, nz, bc_condition=None)[source]#

Applies Neumann boundary condition to the given field.

Parameters:
  • phi_k (numpy.ndarray) – The field to which the boundary condition is applied.

  • nz (int) – The number of grid points in the vertical direction.

  • bc_condition (str, optional) – The type of boundary condition. Defaults to None.

Returns:

None

set_boundary_condition_type(critical_depth, bc_type='Neumann')[source]#

Sets the boundary condition type for the given critical depth.

Parameters:
  • critical_depth (float) – The critical depth value.

  • bc_type (str, optional) – The type of boundary condition. Defaults to “Neumann”.

Raises:

None

Returns:

None