Browsed by
Category: Programming

iSMART〜Automatic Differentiation Part 1

iSMART〜Automatic Differentiation Part 1

冬籠りの三ヶ月間どっぷり自動微分(Automatic Differentiation)に浸かりました。俺の一世代前の貯留層シミュレーターiSMARTは導入の容易な差分商で近似する数値微分法を採用しているが、演算に大幅な手間が掛かる上に最適な微小値\(\epsilon\)を見出すのが難しく誤った解に収束することも起こりうる状況にある。近年研究対象のシミュレーターでは自動微分を用いてヤコビアン行列の組込みの手間の短縮化を図っていることを知り自動微分の組込みを夢見ていた。野外活動が鈍る北陸の冬の時期、iSMARTに自動微分の実装に向けてチャレンジを開始。Three months this winter are dedicated to the automatic differentiation (AD). My primitive reservoir simulator iSMART adopts the numerical differentiation method which is easy to implement but may end up converging to a wrong solution due to the loss of the search for an optimal \(\epsilon\). I wish to incorporate an AD function into iSMART, once I learn that the latest research simulators tend to use the AD function instead of spending huge time on constructing analytical Jacobian matrices….

Read More Read More

Studio Life~2022 New Year’s Eve

Studio Life~2022 New Year’s Eve

今年は3年振りに鎌倉の本宅でファミリー全員集合し総勢9人で年越しです。愚妻は食事の用意に忙殺され、愚娘息は悪ガキの面倒に掛りきりの一方、俺は何をしていいか分からず手持ち無沙汰でボーッとして回りからヒンシュクをかっています。大晦日恒例の今年の景勝地は観光客が戻ってきたスラムダンク踏切です。This year, for the first time in three years, the whole family get together at our home in Kamakura for the New Year’s Eve with nine people totally. The wife is busy preparing meals, the daughter and son are busy taking care of their kids. I am frowned by the family when I am bored out of my mind, not knowing what to do. The scenic spot for the New Year’s Eve is the Slam Dunk railroad crossing which is…

Read More Read More

SMART〜The Newton Convergence Criteria

SMART〜The Newton Convergence Criteria

SMARTシミュレータの重要論点について番外編Tipsとして数回に亘ってお届けしよう。第一弾のテーマはニュートン法の収束判定条件である。I wish to talk about some tips in light of the vital technical subjects in several occasions with regard to the SMART simulator. The first theme is the newton convergence criteria.

SMARTSOL〜The NF Preconditioning

SMARTSOL〜The NF Preconditioning

NF前処理編をお送りします。極く一般的なILU前処理に比べ格段に優れた発想とつくづく思う。俺的には最も気に入っている前処理法。考案者に乾杯です。This is the practical lecture course about the NF preconditioning method. A comparison with a very common ILU preconditioning would lead me to reassure the NF preconditioning extremely superior method. This is my favorite preconditioning. I wish to toast the the inventor for creating this superb factorization algorithm.

SMARTSOL〜The ILU Preconditioning

SMARTSOL〜The ILU Preconditioning

前回係数行列の仕上がり具合の比較検証の実学で終わりましたが、引続き進めるに当たって最低限の基礎知識の共有が不可欠だと判断し、座学を交えた実用的な講義に変更します。俺なりにポイントを伝授すので絶対飽きさせない自信があります。ご辛抱してお付き合いくださいね。先ず一般的なILU前処理編から始めます。Last time the practical exercise is conducted in view of the comparison and verification purpose for the incidence matrices. Now I would change to a practical lecture course as it is essential to share the basic knowledge for ensuring the meaningful continuity. I shall make the best effort to provide with a valid points on my eyes in confidence so as not to get you bored. Please be patient together with me for the practical ILU preconditioning course.

SMARTSOL〜Test Matrix

SMARTSOL〜Test Matrix

先般紹介した”SMARTSOL” Matrix Solverのコーディング編の開始です。Matrix Solverとは、油層内媒体を移動する流体の物質収支を偏微分方程式(Mass Conservation Equation)を線形化し得られる疎な係数行列をもつ連立一次方程式を解くサブルーチンでリザーバーシミュレーションモデルの中核である。当然座学に付きあって頂ける程興味津々なテーマでもないので、先ずは実際にその係数行列を構築して連立一次方程式の解法手順を外観しましょう。実学主体の方が理解しやすいかも。Let’s commence the practical coding for the ”SMARSOL” Matrix Solver introduced earlier. Matrix Solver is the subroutine librares that solve the simultaneous linear equations with a sparse incidence matrix incurred after linearizing the Mass Conservation Equations by the Newton-Rapson method which define the material balance of the fluid movement in the reservoir porous media. It forms the core of the reservoir simulation model. The subject matter is not so exciting enough to study through lectures….

Read More Read More

iSMART〜The Black Oil Reservoir Simulator

iSMART〜The Black Oil Reservoir Simulator

“SMART” is an inhouse three-dimensional, three-phase black oil reservoir simulator in the petroleum upstream industry, in which its function and capability are at minimum compatible with the industry standard simulator “ECLIPSE”. “iSMART” is the initially primitive version of “SMART”, which incorporates the essential functions with even limited, especially it features the adaptive implicit capability and the strongly coupled well model. For purpose of studying a general approaches of fundamental formulations of reservoir equations together with the strongly coupled well modeling,…

Read More Read More

iVDr〜Restated Versatile Dashboard Interface

iVDr〜Restated Versatile Dashboard Interface

GodzillaのConsult Scan Toolの開発が一段落したので次の懸案事項に移る。Nexus9の断捨離の為に、以前開発したAndroidソフト”Versatile Dashboard Interface”の移植を開始する。移植先はLenovo Tab4 8Plusとこれも余り使っていないTabletである。Since the development of the Godzilla’s Consult Scan Tool is concluded, I shall commence to transfer the Inhouse Android software “Versatile Dashboard Interface” developed for Nexus9 in past to another device. Nexu9 tablet is currently under the disposal process. The transferee is the Lenovo Tab4 8 Plus Tablet which I have not used much as well.

Godzilla R32〜Inhouse Consult Scan Tool Wrap Up

Godzilla R32〜Inhouse Consult Scan Tool Wrap Up

サービスマニュアルを見ているとHicasのActive TestのDemonstrationに興味が惹かれる。後輪操舵角は高々最大1度であるが、直視できれば面白かろう。手動でのTest実施はBeautifulではないので、Consultを使ってActive Testを実行するが、Challengeの過程で思いもよらぬ展開に発展する事になろうとは。Browsing the service manual, I am very fascinated by a demonstration of Hicas Active Test. While the rear wheel steers at most 1 degree, it would be a great fun to observe it actually. Since the active test is not a beautiful manner to be conducted manually, I shall challenge it with Consult. The challenging efforts won’t be thought to lead to unexpected developments.

Godzilla R32〜Anatomische Tabellen Tier 2

Godzilla R32〜Anatomische Tabellen Tier 2

隣町のチューニングショップへルンルン気分でパワーチェックに向かう途中、突如エンジの調子がおかしくなる。ノッキングのような異音が出てブルブルと振動する。トラブル発生だがそのまま走行していると症状も落ち着く。何だろうと思っている内にショップに到着。エンジン編Tier 2をお届けします。さて、本日は我家にとって記念すべき日になりました😀 On the way to a tuning car shop in the neighboring city for the power check, the engine commences to make vibration together with a nasty noise like knocking. A trouble has occurred. Continuing to drive, the symptom is going down. Godzilla arrives at the shop while wondering what it is. Let me address on Tier 2 related to the engine. BTW today it is an utmost festive day for our family.