GithubHelp home page GithubHelp logo

jinjiahuangsha / modiabase.jl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from modiasim/modiabase.jl

0.0 0.0 0.0 1.27 MB

Core algorithms for equation-based modeling

License: MIT License

Julia 100.00%

modiabase.jl's Introduction

ModiaBase

Stable The MIT License

ModiaBase is part of ModiaSim. It is usually used via Modia. The ModiaBase documentation provides details of the algorithms and how to use them.

ModiaBase provides basic algorithms and functionality that is needed for equation-based modeling to transform a (potentially high-index) Differential-Algebraic Equation system (DAE), to an Ordinary Differential Equation system in state space form (ODE). It is used by Modia, but can also be utilized in another context. Especially the following functionality is provided:

  • Simplify linear Integer equations (many equations of object-oriented models are linear Integer equations and can be pre-processed exactly)

    • to remove alias variables and equations,
    • to remove redundant equations,
    • to provide definite values for variables that can have arbitrary values if this makes sense,
    • to make state constraints structurally visible.
  • Find a variable assignment of an equation system, in order to transform the equation system in a directed graph that can be further processed.

  • Find the strong components in a directed graph (with the algorithm of Tarjan) to determine algebraic equation systems that must be solved together.

  • Sort an equation system (= transform to Block Lower Triangular form), to determine the order in which the equations have to be evaluated.

  • Reduce the dimension of algebraic equation systems by tearing.

  • Find equations that need to be differentiated one or more times (with the algorithm of Pantelides) in order that the DAE can be transformed to an ODE.

  • Analytically differentiate the found equations.

  • Statically select ODE states and transform to ODE form (hereby identifying linear equation systems that must be solved during simulation).

Installation

Typically, a user installs Modia and does not need to install ModiaBase separately. If needed, ModiaBase is installed with (Julia 1.7 is required):

julia> ]add ModiaBase

Main Developers

License: MIT (expat)

modiabase.jl's People

Contributors

hilding-elmqvist avatar martinotter avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.