前回、自作した定容積ポンプコンポーネントを用いると、コンパイルエラーが起きたので、別法を試す。熱収支回路(1次流体の受熱放熱のループ)が作りたい訳で、とくに件のコンポーネントを用いる事には拘る必要が無い。質量保存・熱量保存が壊れないのなら、体積流量一定のポンプでも、質量流量一定のポンプでも気にしていない。なので、nuclearライブラリのMediaを深く調べるのは後回し。
 シンプルに、件のポンプコンポーネントをModelica Standard Libraryのポンプコンポーネントに置き換える。
test_reactor_04_00
 しかし、またしてもエラー。今回は、コンパイルは通過したが、お馴染みのmatrix sigular発生。Debug moreを見ると、下記のクラス・記述部でエラーが起きていることは判る。
  クラス:Fluid/Machines.mo
  debuggerが指示するエラー発生記述箇所:final parameter SI.Height delta_head_init = flowCharacteristic(V_flow_single_init)-flowCharacteristic(0)
 このクラス、pumpコンポーネントの継承元クラスで、自分でコードを書いた部分ではなく、どう手を打つべきか判らない。可能性として考えられるのはparameters設定の誤り位。
 Standard Libraryのコンポーネントでエラー発生したのだから、原因を追って回避策をマスターしておくべき。しかし、時間が押しているのと、すでに別法をもう1つこしらえてあったので、次は、その試行を先に行う。今は、熱機関の熱源としてリアクターを組み込める状態を作ることを最優先にしたい。
 一応、発生したメッセージも総て載せておく。もし直ぐに解読できる方がいれば、是非原因と対処をご教授願いたい。
_________________________
C:/Users/grabacr/OMEditLocalDir/SystemModels.Practice.test_reactor_04/SystemModels.Practice.test_reactor_04.exe -port=64474 -logFormat=xmltcp -override=startTime=0,stopTime=60,stepSize=0.01,tolerance=1e-06,solver=dassl,outputFormat=mat,variableFilter=.* -r=C:/Users/grabacr/OMEditLocalDir/SystemModels.Practice.test_reactor_04/SystemModels.Practice.test_reactor_04_res.mat -w -lv=LOG_STATS -inputPath=C:/Users/grabacr/OMEditLocalDir/SystemModels.Practice.test_reactor_04 -outputPath=C:/Users/grabacr/OMEditLocalDir/SystemModels.Practice.test_reactor_04
The following assertion has been violated at time 0.000000<br>
pump.delta_head_init &gt;= 0.0
Variable violating min constraint: 0.0 &lt;= pump.delta_head_init, has value: -24.8596
Matrix singular!
under-determined linear system not solvable!
Matrix singular!
under-determined linear system not solvable!
Matrix singular!
under-determined linear system not solvable!
Matrix singular!
under-determined linear system not solvable!
nonlinear system 292 fails: at t=0
proper start-values for some of the following iteration variables might help
Solving non-linear system 292 failed at time=0.<br>
For more information please use -lv LOG_NLS.
Failed to solve the initialization problem without homotopy method. If homotopy is available the homotopy method is used now.
Matrix singular!
under-determined linear system not solvable!
Matrix singular!
under-determined linear system not solvable!
Matrix singular!
under-determined linear system not solvable!
Matrix singular!
under-determined linear system not solvable!
nonlinear system 1262 fails: at t=0
proper start-values for some of the following iteration variables might help
[1] Real $STATESET1.x[5](start=873.15, nominal=1)
[2] Real $STATESET1.x[4](start=0.5, nominal=1)
[3] Real tank.s[1](start=1, nominal=1)
[4] Real tank.s[2](start=1, nominal=1)
[5] Real tank.ports[1].p(start=101325, nominal=100000)
[6] Real volume.vessel_ps_static[3](start=101325, nominal=100000)
[7] Real basicHX1.pipe_2.statesFM[1].p(start=100000, nominal=100000)
[8] Real basicHX1.pipe_2.statesFM[2].p(start=101325, nominal=100000)
[9] Real der(volume.medium.T_degC)(start=0, nominal=1)
[10] Real tank.medium.T(start=873.15, nominal=300)
[11] Real basicHX1.pipe_2.flowModel.dps_fg[2](start=0, nominal=1)
[12] Real der(basicHX1.pipe_2.mediums[2].T_degC)(start=0, nominal=1)
[13] Real der(basicHX1.pipe_2.mediums[1].T_degC)(start=0, nominal=1)
[14] Real pump.medium.T(start=293.15, nominal=300)
Solving non-linear system 1262 failed at time=0.<br>
For more information please use -lv LOG_NLS.
simulation terminated by an assertion at initialization
Simulation process failed. Exited with code -1.
_________________________

以上




ブログ移転の案内

この記事 でお知らせしたとおり、本ブログはブログサービス下での運営を止め、個人サーバー上の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, 紙面版]


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