A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

Recent Releases of OceanMesh2D

OceanMesh2D - OceanMesh2D V6.0

We invite you to support our efforts by becoming a sponsor. Your contribution will help us continue our work and make further improvements. To learn more and to sponsor us, please visit: https://github.com/sponsors/krober10nd. Thank you for considering supporting our project!

Added

Added ability to generate constrainsts for shorelines automatically using the new high-fidelity method. https://github.com/CHLNDDEV/OceanMesh2D/pull/264
auxiliary file reader function that can be used standalone e.g., m = m.read({'fort.13','fort.15'})), as well as called from within msh() function. https://github.com/CHLNDDEV/OceanMesh2D/pull/287
swanoutput namelist for SWAN model outputs. https://github.com/CHLNDDEV/OceanMesh2D/pull/287
Added new function in msh called remesh_patch to remesh within specified polygonal domains and insert back into parent mesh. https://github.com/CHLNDDEV/OceanMesh2D/pull/301
Read and write to 2dm format. https://github.com/CHLNDDEV/OceanMesh2D/pull/300
namelist and RSTIMNC input arguments for Make_f15.m fort.15 generator. updated the help message for all input argumebts to Make_f15. https://github.com/CHLNDDEV/OceanMesh2D/pull/283
New stability namelist options to Make_f15.m fort.15 generator. https://github.com/CHLNDDEV/OceanMesh2D/pull/283
Optionality for mesh2dgen to choose the method of mesh generation kind, and the maximum iteration count iter. https://github.com/CHLNDDEV/OceanMesh2D/pull/272
Option improve_with_reduced_quality to meshgen for allowing for mesh improvements even when quality is decreasing or large number of nodes eliminated, which sometimes is necessary to force the advancement in mesh quality.
Option delaunay_elim_on_exit to meshgen to skip the last call to delaunay_elim to potentially avoid deleting boundary elements.
Geoid offset nodal attribute in Calc_f13 subroutine. https://github.com/CHLNDDEV/OceanMesh2D/pull/251
Support for writing Self Attraction and Loading (SAL) files in NetCDF for the ADCIRC model. https://github.com/CHLNDDEV/OceanMesh2D/pull/231
Added 'high-fidelity' option for automatically forming and constraining edges into the mesh. https://github.com/CHLNDDEV/OceanMesh2D/pull/264

Changed

treating logicals in namelists as a logicals type within MATLAB but ouput as a string. https://github.com/CHLNDDEV/OceanMesh2D/pull/287
Calc_Sponge.m to allow for sponge in polygon region and coefficents based on spatially varying depth. https://github.com/CHLNDDEV/OceanMesh2D/pull/287
removed namelists from default setup in Make_f15.m fort.15 generator to be invoked by user as an input argument instead. https://github.com/CHLNDDEV/OceanMesh2D/pull/283
Use implicit smoother (ds=1) in msh.clean when fix points are present. https://github.com/CHLNDDEV/OceanMesh2D/pull/283
Default filename for the dynamicWaterLevelCorrection is now null so that it is not evoked by default. https://github.com/CHLNDDEV/OceanMesh2D/pull/272
Default mesh improvement strategy is ds 2.
Retrieve boundary indices in msh.get_boundary_of_mesh method. https://github.com/CHLNDDEV/OceanMesh2D/pull/259
msh.offset63 struct and associated write/make routines for dynamicwaterlevel offset functionality. https://github.com/CHLNDDEV/OceanMesh2D/pull/259
dynamicWaterLevelCorrection to fort.15 namelist, and PRBCKGRND option to met fort.15 namelist. https://github.com/CHLNDDEV/OceanMesh2D/pull/261
Improved code readability by auto-indenting core functions and reworking 'setup' and 'Examples' functions, including adding necessary files for separation from core functions. https://github.com/CHLNDDEV/OceanMesh2D/pull/308
Renamed functions for clarity and fixed multiple small bugs; changes are compatible with OpenEarthTools but distinct. https://github.com/CHLNDDEV/OceanMesh2D/pull/308

Fixed

catch for offset_nodes of int type in writeoffset63.m. https://github.com/CHLNDDEV/OceanMesh2D/pull/287
writing out the wave coupling timestep RSTIMNC on the WTIMNC line of fort.15 when NWS > 300. https://github.com/CHLNDDEV/OceanMesh2D/pull/283
make_bc call with empty varargin, e.g., when calling inner. https://github.com/CHLNDDEV/OceanMesh2D/pull/283
Make_offset63 call with constant offset (length 1 time_vector). https://github.com/CHLNDDEV/OceanMesh2D/pull/283
ourKNNsearch call in nanfill option of Griddata (msh.interp). https://github.com/CHLNDDEV/OceanMesh2D/pull/283
m_map link in setup.sh Issue #277. https://github.com/CHLNDDEV/OceanMesh2D/pull/283
Updated Calc_f13.m to avoid an "Unrecognized variable" error by ensuring "broken" is always defined. https://github.com/CHLNDDEV/OceanMesh2D/pull/282
Fixed test for likely geographic coordinates in Make_f15.m. https://github.com/CHLNDDEV/OceanMesh2D/pull/282
updated Gridded_to_Mesh_SeaBed_DepthAveraged.m to fix the infinite loop in using Cal_IT_Fric.m by filling in the NaNs at greater depths with values from above. https://github.com/CHLNDDEV/OceanMesh2D/pull/280
Recursive cleaning issues: infinite loop and preservation of fixed points.
msh.interp method for K argument of length 1, and for the test to determine whether the bathymetry grid is irregular. https://github.com/CHLNDDEV/OceanMesh2D/pull/259
Printing of namelist character strings or numbers. https://github.com/CHLNDDEV/OceanMesh2D/pull/261
Make_offset63.m time interval computation. https://github.com/CHLNDDEV/OceanMesh2D/pull/261 and https://github.com/CHLNDDEV/OceanMesh2D/pull/272
Removed dependency on statistics toolbox when using the 'nanfill' option in msh.interp. https://github.com/CHLNDDEV/OceanMesh2D/pull/269
Missing routines for reading in elvstaname and velstaname in readfort15.m by adding readlinevecname() method. https://github.com/CHLNDDEV/OceanMesh2D/pull/281
Incorrect reference to ibtype was changed to ibtypee in map_mesh_properties function. https://github.com/CHLNDDEV/OceanMesh2D/pull/298

What's Changed

New Contributors

Full Changelog: https://github.com/CHLNDDEV/OceanMesh2D/compare/V5.0...V6.0

Hydrosphere - Coastal and Reefs - MATLAB
Published by krober10nd about 1 year ago

OceanMesh2D - OceanMesh2D V5.0

[5.0.0] - 2021-08-01

Added

Fixed

Changed

Hydrosphere - Coastal and Reefs - MATLAB
Published by CHLNDDEV over 3 years ago

OceanMesh2D - OceanMesh2D V4.0

[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

Hydrosphere - Coastal and Reefs - MATLAB
Published by CHLNDDEV about 4 years ago

OceanMesh2D - OceanMesh2D V3.3

See the changelog on the README for details.
Zenodo repository link: https://doi.org/10.5281/zenodo.4386220

Hydrosphere - Coastal and Reefs - MATLAB
Published by krober10nd over 4 years ago

OceanMesh2D - OceanMesh2D V3.2

  • Minor bug fixes to auto timestep selection method
  • Bug fix to deactivate 3d shapefile reading logic in geodata by default.
  • Enabling the user to enforce the minimum of all edgefx's when performing multiscale meshing.
  • Improved mesh resolution smoothness (and element quality) when meshing with the multiscale meshing technique via initial point distributions that conform more accurately to smoothed mesh sized functions.
  • New example to highlight mesh size smoothing capabilities with the multiscale technique.

Hydrosphere - Coastal and Reefs - MATLAB
Published by CHLNDDEV over 4 years ago

OceanMesh2D - OceanMesh2D V3.1

-Improvements to automatic boundary detection/classification msh.make_bc
-Better control of plotting with hold on option.
-Improvements to writing and reading files from other formats besides ADCIRC's fort.14
-Better control over point constraints when using the msh.plus operator (for instance new option lock_dis that ensures a vertices further than lock_dis around the edges of the to-be-merged-in-patch will not move.
-Reduction in RAM usage when reading very fine resolution DEMs (this is only active if the memory usage is excessive).
-A number of small improvements to mesh reading from msh(). See #93. Also, no more coordinate system assumptions when plotting.
-A small but useful testing suite to run through some of the major features.
-Improvements to extracting subdomain with extract_subdomain

  • Zach's new Subgrid barrier f13 attribute to Calc_f13
  • Elemental slope limiter to Calc_f13

Hydrosphere - Coastal and Reefs - MATLAB
Published by krober10nd almost 5 years ago

OceanMesh2D - OceanMesh2D V3.0.0

This version contains a variety of modifications and improvements from V2.0. Here we list the major enhancements since V2.0.0.

Improvements in:

  • Bounding mesh size fields to respect both minimum and maximum Courant numbers. This is particularly useful for SCHISM and models that use Eulerian-Lagrangian Method . See #56
  • Using back-up DEMs to replace gaps or holes in other datasets. See Back up DEM #61
  • New mesh improvement strategy to optimize mesh quality based on collapsing thin or degenerate triangles together.
  • Global meshing is more robust. Note that it has been working very stably with rotated meshes (to eliminate singularity) in simulations using ADCIRC V55.
  • Several new mesh attributes (e.g., initial_river_elevation) for ADCIRC's fort.13 file creation.
  • Better topographic-lengthscale filtering based on barotropic Rossby radius (see commit 9305c).
  • Several CI tests for local Jenkins server.
  • Better documentation using MATLAB's "help" method.
  • Clearer data structure used to build weirs into the mesh and many bug fixes to meshing insets with weirs.
  • Higher geometric quality meshes with point and edge constraints.
  • Mesh merging using the msh.plus() to support insets that respect point and/or edge constraints. It also does not require the polybool function (which was a toolbox dependency).
  • msh.clean() now features categorical options and experienced a variety of bug fixes.
  • Bug fixes to msh.makens() for automatically applying boundary conditions.

Happy meshing,

Hydrosphere - Coastal and Reefs - MATLAB
Published by krober10nd about 5 years ago

OceanMesh2D - OceanMesh2D V2.5.0

Stable release for future updates to be based off of.

Hydrosphere - Coastal and Reefs - MATLAB
Published by krober10nd over 5 years ago

OceanMesh2D - OceanMesh2D V2.0

This release has a number of additional capabilities:

  1. The primary change is using the m_map library to mesh in an arbitrary projected space ensuring the user-defined mesh size constraints are obeyed on the sphere. The ability to build meshes in a projected space (e.g.., stereographic) supports global meshing where the boundaries are wrapped/periodic in space by construction.

  2. The capability to use nests and meshing extents with arbitrary polygonal extents is now supported. Previously, this was required to be rectangular bounding boxes.

  3. New stricter termination criteria are introduced based on a geometric quality saturation. This termination criterion produces higher-geometric quality meshes than before.

  4. Updates to plotting, plus operator (to merge two overlapping meshes in projected space), and various msh methods (e.g., interp method).

  5. The ability to specify weir crestlines (as polylines) to constrain internal boundaries in the mesh generation process.

  6. A number of bug fixes have been dealt with making the release much more stable and reliable.

Hydrosphere - Coastal and Reefs - MATLAB
Published by krober10nd about 6 years ago

OceanMesh2D - OceanMesh2D V1.0

A self-contained MATLAB mesh generation toolkit for the development of coastal oceans meshes composed of two-dimensional, unstructured triangles. The software embeds the mesh generation into an object-orientated framework that integrates the necessary pre- and post-processing tools to inevitably perform numerical simulations with the mesh.

The main features are:

-The ability to automatically handle and convert arbitrarily complex vector data that represent complex coastal boundaries into practical mesh boundaries used in the mesh generation process.
-A variety of commonly used mesh size functions that can easily be controlled via name-value pairs to a class constructor.
-A data storage class that contains many necessary post-processing and visualization methods to ensure the mesh is ready for simulation.
-A modified version of the DistMesh mesh generator that can support the types of data used to mesh large geophysical datasets in MATLAB with no paid toolbox dependencies.

Hydrosphere - Coastal and Reefs - MATLAB
Published by CHLNDDEV over 6 years ago