Skip to content

Releases: DHI/DHI.Mesh

DfsUtil 2.1.1

15 Dec 10:32
Compare
Choose a tag to compare

The DfsUtil contains a number of small tools for working with .dfsu files. Currently it can:

  • Interpolate one 2D dfsu file to another mesh.
  • Create a difference between two 2D dfsu files, even when they do not have the same mesh.

Release Notes

Changes in v. 2.1.1

  • Improved performance for big meshes
  • Improved handling of delete values
  • Fix in -dfsudiff tool
    • Interpolation of element values to boundary nodes

This version is based on MIKE by DHI Release 2021 versions of the MIKE Core libraries.

Installation

This version can run without any MIKE Zero installation, though you may need to install the Visual C++ redistributable (https://support.microsoft.com/en-gb/help/2977003/the-latest-supported-visual-c-downloads).

Usage

Usage
    DHI.Mesh.DfsUtil -[tool] [arguments]

Tools:

    -dfsuinterp: Interpolate dfsu file to another mesh:

        DHI.Mesh.DfsUtil -dfsuinterp [sourceFilename] [targetMeshFilename] [targetFilename]

        Interpolate values from 'sourceFilename' to mesh defined by
        'targetMeshFilename', and store it in 'targetFilename'.
        The 'targetMeshFilename' can be a mesh or dfsu file.

    -dfsudiff: Create difference file between two dfsu files:

        DHI.Mesh.DfsUtil -dfsudiff [referenceFilename] [compareFilename] [diffFilename] <options>

        Compares the compare-file to the reference-file and writes differences
        to the diff-file. In case the compare-file and reference-file is not
        identical, the compare-data is interpolated to the reference-file mesh
        and then compared.

        Options:
            -deletevaluenodiff
                In case of either reference or compare file having delete value
                the result is a delete value. Default (not specified) is to treat
                such a delete value as zero.

DfsUtil 2.0.0

03 Jan 12:45
Compare
Choose a tag to compare

The DfsUtil contains a number of small tools for working with .dfsu files. Currently it can:

  • Interpolate one 2D dfsu file to another mesh.
  • Create a difference between two 2D dfsu files that does not have the same mesh.

This version can run without any MIKE Zero installation, though you may need to install the Visual C++ redistributable (https://support.microsoft.com/en-gb/help/2977003/the-latest-supported-visual-c-downloads)

Usage
    DHI.Mesh.DfsUtil -[tool] [arguments]

Tools:

    -dfsuinterp: Interpolate dfsu file to another mesh:

        DHI.Mesh.DfsUtil -dfsuinterp [sourceFilename] [targetMeshFilename] [targetFilename]

        Interpolate values from 'sourceFilename' to mesh defined by
        'targetMeshFilename', and store it in 'targetFilename'.
        The 'targetMeshFilename' can be a mesh or dfsu file.

    -dfsudiff: Create difference file between two dfsu files:

        DHI.Mesh.DfsUtil -dfsudiff [referenceFilename] [compareFilename] [diffFilename]

        Compares the compare-file to the reference-file and writes differences
        to the diff-file. In case the compare-file and reference-file is not
        identical, the compare-data is interpolated to the reference-file mesh
        and then compared.

DfsUtil first version

10 Jul 11:19
Compare
Choose a tag to compare

This is the first GitHub release of the DfsUtil.

The DfsUtil contains a number of small tools for working with .dfs files. Currently it can>

  • Interpolate one 2D dfsu file to another mesh.
  • Create a difference between two 2D dfsu files that does not have the same mesh.
  • Create a difference between any dfs file having the same structure.

Works with MIKE Release 2019, so you need to install MIKE Zero, MIKE URBAN or MIKE SDK for this to work.

Usage
    DHI.DfsUtil -[tool] [arguments]

Tools:

    -dfsuinterp: Interpolate dfsu file to another mesh:

        DHI.DfsUtil -dfsuinterp [sourceFilename] [targetMeshFilename] [targetFilename]

        Interpolate values from 'sourceFilename' to mesh defined by
        'targetMeshFilename', and store it in 'targetFilename'.
        The 'targetMeshFilename' can be a mesh or dfsu file.

    -dfsudiff: Create difference file between two dfsu files:

        DHI.DfsUtil -dfsudiff [referenceFilename] [compareFilename] [diffFilename]

        Compares the compare-file to the reference-file and writes differences
        to the diff-file. In case the compare-file and reference-file is not
        identical, the compare-data is interpolated to the reference-file mesh
        and then compared.

    -diff: Find the difference between two, in structure, identical files,
        and create new file with difference values.

        DHI.DfsUtil -diff [file1] [file2]
        DHI.DfsUtil -diff [file1] [file2] [diffFile]

        The two input files must be equal in structure, e.g. coming
        from the same simulation but giving different results.
        Header and static data must be identical, only difference
        must be in values of the dynamic data.

        If not providing a diffFile, the file is not created, but
        difference statistics is written to console.

        In case of one file having delete value, and the other not
        having delete value, the difference may turn out big, even
        if in reality the results differ only little, i.e. for
        water level results from a flooding simulation.