compass.landice.tests.mismipplus.setup_mesh.calculate_mesh_params¶
- compass.landice.tests.mismipplus.setup_mesh.calculate_mesh_params(nominal_resolution, Lx=640000.0, Ly=80000.0, gutter_length=0.0)[source]¶
Calculate the appropriate parameters for use by make_planar_hex_mesh from the desired nominal resolution (e.g. 8e3, 4e3, 2e3, 1e3…).
- Parameters:
nominal_resolution (int) – Desired mesh resolution in [m] without consideration of the hex meshes
Lx (float) – Domain length in x direction [m]
Ly (float) – Domain length in y direction [m]
gutter_length (float) – Desired gutter length [m] on the eastern domain. Default value of 0.0 will ensure there are two extra cell for the gutter.