水の沸騰・凝縮を含む熱サイクル「Rankine cycle」のモデルを作成しようと考えている。なので、第1歩としてboilerのモデルを作成する。
Mediaに2相扱える水を設定して、volumeで熱量を与える、単純極まりないもの。
boiler001
だが、failする。
最初は計算が動き、途中で止まる。心当たりがある。圧力を、高い所から計算を開始して徐々に下げており、恐らく、相が水から水蒸気に変化するところで止まっているのだと考えられる。実際、圧力を下げなければ計算は水の相のまま無事回る。
boiler001_error
エラー表示はお馴染みの”matrix singular”

documentationやMSLのコードなど色々調べてみる必要が有りそうだ。
もしくは、勉強会でアドバイス得たように、"coolprop"をModelicaに呼び出す手を試みるのも一興。

以下、エラーメッセージ全文。判る方いれば情報提供願いたい。
------------------------------------------------------------------------------------------------------------------------
C:/Users/grabacr/OMEditLocalDir/SystemModels.Practice.boiler001/SystemModels.Practice.boiler001.exe -port=57226 -logFormat=xmltcp -override=startTime=0,stopTime=20,stepSize=0.04,tolerance=1e-06,solver=dassl,outputFormat=mat,variableFilter=.* -r=C:/Users/grabacr/OMEditLocalDir/SystemModels.Practice.boiler001/SystemModels.Practice.boiler001_res.mat -w -lv=LOG_STATS -inputPath=C:/Users/grabacr/OMEditLocalDir/SystemModels.Practice.boiler001 -outputPath=C:/Users/grabacr/OMEditLocalDir/SystemModels.Practice.boiler001
Matrix singular!
under-determined linear system not solvable!
Matrix singular!
under-determined linear system not solvable!
Matrix singular!
under-determined linear system not solvable!
The initialization finished successfully without homotopy method.
Warning: maximal number of iteration reached but no root found
Warning: maximal number of iteration reached but no root found
Warning: maximal number of iteration reached but no root found
Warning: maximal number of iteration reached but no root found
Warning: maximal number of iteration reached but no root found
Warning: maximal number of iteration reached but no root found
Warning: maximal number of iteration reached but no root found
Warning: maximal number of iteration reached but no root found
Warning: maximal number of iteration reached but no root found
Warning: maximal number of iteration reached but no root found
Warning: maximal number of iteration reached but no root found
Warning: maximal number of iteration reached but no root found
Warning: maximal number of iteration reached but no root found
Warning: maximal number of iteration reached but no root found
Warning: maximal number of iteration reached but no root found
Warning: maximal number of iteration reached but no root found
Warning: maximal number of iteration reached but no root found
Warning: maximal number of iteration reached but no root found
Warning: maximal number of iteration reached but no root found
Warning: maximal number of iteration reached but no root found
Warning: maximal number of iteration reached but no root found
Warning: maximal number of iteration reached but no root found
Warning: maximal number of iteration reached but no root found
Warning: maximal number of iteration reached but no root found
Warning: maximal number of iteration reached but no root found
Warning: maximal number of iteration reached but no root found
Warning: maximal number of iteration reached but no root found
Warning: maximal number of iteration reached but no root found
Chattering detected around time 8.65321390332..8.6532146322 (100 state events in a row with a total time delta less than the step size 0.04). This can be a performance bottleneck. Use -lv LOG_EVENTS for more information. The zero-crossing was: volume.medium.h < $cse1.h or volume.medium.h > $cse2.h or volume.medium.p > 22064000.0
------------------------------------------------------------------------------------------------------------------------

以上。




ブログ移転の案内

この記事 でお知らせしたとおり、本ブログはブログサービス下での運営を止め、個人サーバー上のwebページに引越しします。livedoorブログが存続している限り本ブログは閉鎖せず残り続けますが、 この記事 以降の記事は総て こちらの新ブログ にて公開してゆきますので、これからもよろしくお願いします。

文献紹介

Modelica, Model-based degign

Modelicaによるシステムシミュレーション入門

入門者に最適の書。Modelicaって何?という導入から、簡単なコードベースやGUIベースの例モデルまで解説。筆者も入門時に手に取った。訳に少し癖が有る印象だが、英語書物がハードルになる方には確かな助けになる筈。


[amazon、紙面・電子]
[楽天、紙面書籍版] [AU payマーケット、紙面書籍版]
[honto、電子版] [楽天、電子書籍版] [AU payマーケット、電子書籍版] [7ネットショッピング、電子書籍版]

Introduction to Modeling and Simulation of Technical and Physical Systems with Modelica

「Modelicaによるシステムシミュレーション入門」の英語版原書。英語に抵抗がなければこちらを入手したら良いと思う。


[amazon、電子版・紙面版]
[Yahoo、紙面書籍版]

Principles of Object-Oriented Modeling and Simulation with Modelica 3.3 A Cyber-Physical Approach (Wiley-IEEE Press)

本格的にModelicaを使い込むなら必携の書。辞書的に適宜調べものをするような形で手元に有ると頼もしい武器。量が多いので電子版もお勧め。筆者もKindle版を所有し、かなりの頻度で参照している。


[amazon、電子版・紙面版]
[楽天、電子書籍版]

はじめてのModelicaプログラミング -1日で読める わかる Modelica入門-


[amazon、紙面版]

Modelicaによるモデルベースシステム開発入門-ModelicaとFMIの活用による実践的モデルベース開発-


[amazon、電子版・紙面版]

Introduction to Physical Modeling With Modelica


[amazon、紙面版] [楽天、紙面書籍版]

Development of Modelica Library for Dynamics Simulation of CHP Plant: Modelica library structure design and modeling for transient simulation of Combined Heat and Power (CHP) plant


[amazon、紙面版]

Python

入門 Python 3


[amazon、紙面版]

かんたん Python


[honto、電子版]

スッキリわかるPython入門 (スッキリシリーズ)


[amazon、電子版・紙面版]

ゲームを作りながら楽しく学べるPythonプログラミング


[amazon, 紙面版・電子版] [honto、電子版]

流体力学(Fluid Mechanics)

Fundamentals of Fluid Mechanics


[amazon、紙面版] [Yahoo、紙面書籍版]

[amazon、紙面版]

[Yahoo、紙面書籍版]


熱力学(Thermodynamics), 熱機関(Engine, power system)

Fundamentals of Engineering Thermodynamics


[amazon, 紙面版]

Fundamentals of Jet Propulsion with Applications


[amazon、電子版・紙面版]
[amazon、紙面版]


航空力学/飛行力学(Aerodynamics/Flight Dynamics)

航空機の飛行力学と制御


[amazon, 紙面版]

Flight Stability and Automatic Control


[amazon, 紙面版]


------------------------------