Skip to content

Algopaul/PortHamiltonianBenchmarkSystemsCLI.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

PortHamiltonianBenchmarkSystems CLI

Command line interface for PortHamiltonianBenchmarkSystems

Installation

First, download and install julia from here for your operating system. Then install the required packages within a julia session:

julia> using Pkg
julia> Pkg.add(["ArgParse", "MAT", "LinearAlgebra", "SparseArrays"])
julia> Pkg.add(url="https://github.com/Algopaul/PortHamiltonianBenchmarkSystems.jl/")

Then, clone this repository.

Usage

Navigate to the directory of this repository and call (in your shell and not from the julia REPL)

$ julia phbs_cli.jl --help

Example

To obtain the .mat-file of the pH mass-spring-damper chain with 50 cells and a stiffness coefficient k of 4.5, call

$ julia phbs_cli.jl pH_msd --n_cells 50 --k 4.5

Then PHSystem.mat file contains the desired system matrices E, J, R, Q, G, P, S, N.

A custom filename can be passed via --filename myCustomName.mat.

About

Command Line Interface for PortHamiltonianBenchmarkSystems

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages