フィルターのクリア

Solving a system of mass balance equations with implicit variables

2 ビュー (過去 30 日間)
Zain Shabeeb
Zain Shabeeb 2019 年 7 月 20 日
編集済み: Torsten 2019 年 7 月 22 日
Hi,
I want to solve a system of mass balance equations which have concentrations implicit in them. I have attached a photo of the mass balance equations above. 'n' = 1:15 and 'm' = 1:20. so it is a 15 by 20 column of cells. I want to apply the mass balance so that it can update the concentrations of the cell (m,n) but there is no equation for the concentration separately and concentrations cannot be written explicitly (they are also part of the 'tNa' and 'tA' terms, and they cant be explicitly written in those terms)
  8 件のコメント
Zain Shabeeb
Zain Shabeeb 2019 年 7 月 22 日
Another problem I am having is that the 'C' terms are implicit in the mass balance equations and cannot be separared.'t' is a function of 'C' and so in the mass balance equations, 'C' cannot be made explicit. So if i write the mass balance equations in a loop, how will the 'C' terms get updated after each loop iteration?
Torsten
Torsten 2019 年 7 月 22 日
編集済み: Torsten 2019 年 7 月 22 日
The C-terms get updated by the ODE-integrator because they are the solution variables. You specify dC(m,n)/dt (m = 1,...,20 ; n = 1,...,15), and the formula you provided is explicit for
dC(m,n)/dt .

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by