Skip to content

OceanMesh2D V4.0

Compare
Choose a tag to compare
@CHLNDDEV CHLNDDEV released this 14 Mar 22:44
· 166 commits to Projection since this release
eed66e5

[4.0.0] - 2021-03-14

**Added

  • mesh2d interface improvements to filter small polygons.
  • Support for creation of fort.20 files for forcing rivers by @Jiangchao3
  • Mesh "cleaning" modes moderate and aggressive transfer nodal attributes via improvements to msh.map_mesh_properties
  • msh.remove_attribute() method to remove f13 attribute(s)
  • new msh.interp() slope_calc kwarg option to set the method of computing the topographic gradients (slopes), either rms [default] or abs
  • new extract_subdomain() keep_numbering kwarg option to keep the full mesh triangulation numbering on the subdomain [off by default].

**Changed

  • msh.plot() overhaul. All options are specified via kwargs.
  • msh.plot() option subset option is now called subdomain
  • msh.plot() arbitary f13 option now utilizes colormap kwarg termed 'colormap'
  • utilities/extract_subdomain now is called with kwargs.
  • Cleaning up msh.bound_courant_number() to use msh.get_boundary_of_mesh() for Delaunay-triangulation and enabling
    msh.clean() to do the transfer of attributes automatically.
  • msh.plus(obj1,obj2) can now carry over obj2 f13 attributes if they also are present in obj1
  • msh() now more efficiently stores boundary conditions that are read in from fort.xx files, and msh.write() can write out arbitrary vertex indices (instead of just 1 to NP) in the case a subdomain is extracted.

**Fixed

  • Boundary labeling fix
  • Prompt when labeling bcs using outer kwarg in make_bc
  • fix for boundary condition mapping in msh.map_mesh_properties() especially for weirs/barriers
  • fix for barrier mapping in msh.plus() routine
  • fix for msh.make_bc(m,auto,gdat) where gdat is empty. In this case it uses the depths on the mesh to determine the open boundaries.
  • check for poly2ccw mapping toolbox function in kml2struct
  • fix for msh.plot() on log colormap when plotting f13 attributes