Skip to content
/ net2mat Public

Simple CLI program to to convert `.net` files from GasLib into `.mat` files for MATLAB.

Notifications You must be signed in to change notification settings

Kipre/net2mat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Call syntax

net2mat can be called with 3 different syntaxes:

  • > net2mat /path/to/file.net in this case the .mat file is created in the same directory and has the same filename and only the extension changes: /path/to/file.mat.
  • > net2mat /path/to/file.net /path/to/output/ in this case the .mat file is created in the output directory with the same filename: /path/to/output/file.mat.
  • > net2mat /path/to/file.net /path/to/output/output_file.mat in this case the .mat file is created in the output path as expected.

Examples

...\net2mat>net2mat test_data/GasLib-11.net example1.mat
Opened test_data/GasLib-11.net with success
Fetched data for nodes, found 11 nodes
Fetched data for connections, found 11 connections
Made incidence matrix and transformed connections data
Transformed nodes data
Created the example1.mat file
Wrote everithing
Done

...\net2mat>net2mat C:\Users\kipr\Documents\GitHub\net2mat\test_data\GasLib-11.net C:\Users\kipr\Downloads
Opened C:\Users\kipr\Documents\GitHub\net2mat\test_data\GasLib-11.net with success
Fetched data for nodes, found 11 nodes
Fetched data for connections, found 11 connections
Made incidence matrix and transformed connections data
Transformed nodes data
Created the C:\Users\kipr\Downloads\GasLib-11.mat file
Wrote everithing
Done

Output

The network.mat file contains all the information about the network:

  • incidence_matrix
  • roughness
  • length
  • diameter
  • temperature
  • pressure_min
  • pressure_max
  • height
  • nodes_order
  • connections_order.

About

Simple CLI program to to convert `.net` files from GasLib into `.mat` files for MATLAB.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages