SifIO

Introduction

SifIO is a .NET API for read and write access of SIF data types to Sesam Interface Files. The following is supported:

  • SIN binary direct access files
  • SIF/FEM formatted sequential files
  • FEM unformatted sequencial files (e.g. as produced by hydrodynamic load preprocessors such as Wajac, Wasim, Wadam)

The API offers two main interfaces: ISifDataReader for read access and ISifDataWriter for write access. An existing file can not be modified.

The SifIO library targets .NET 6.0

The SIF data types are documented in the Sesam Input Interface Format manual and in the Sesam Results Interface Format manual.

Installation

SifIO (DNV.Sesam.SifAPI.IO) is offered as a nuget package available from nuget.org and as a Python package available from the Python Package Index.

License

SifIO is distributed under the MIT license.

Getting started

The static class DNV.Sesam.Sif.IO.SesamDataFactory is the typical starting point. This factory class allows you to create instances of ISifDataReader and ISifDataWriter.

Important:

Due to performance considerations all data types are stored with the record length (NFIELD) as the first entry. This is also the case for data types not defined with NFIELD as the first entry according to the Sesam Interface Format description

When reading and writing all data types it is essential to set the NFIELD entry as the first field, also when it is not part of the data type definition.

This is illustrated in the following examples:

  • Example for reading
  • Example for writing

Support

Contact DNV Software support

In This Article
Back to top Copyright © DNV AS. All rights reserved.