Dimensional analysis issue because of the function 'log' in the rule
2 ビュー (過去 30 日間)
古いコメントを表示
Hi!
When I run a simulation in my model developed in Simbiolog, I received the following warning message:
"Unable to perform dimensional analysis for rule 'PrameterA = ParameterB*log(mass1/mass2)' because of the function 'log' in the rule. Because UnitConversion is on, correct simulation results will depend on this expression being dimensionally correct. Additionally, SimBiology simulates the model in a unit system determined at runtime. The units are determined by the units used in the model and the model's configset. Unless the inputs and outputs to the function are dimensionless, results may change due to configset option changes, changes to the model, or version changes in SimBiology. It is recommended that input and output arguments to functions be dimensionless to ensure correct results."
ParameterA and ParameterB have the same unit and mass1 and mass2 have the same unit. I don't find where is the problem.Could you please help me to solve the issue?
Thanks
0 件のコメント
採用された回答
Arthur Goldsipe
2024 年 3 月 26 日
Since your expression is dimensionally correct, you can safely ignore this warning.
Note that is an informational warning (as oppoosed to an error). SimBiology is warning you that the software cannot guarantee the dimensional validity of the mathematical expression, so you need to inspect it manually. Once you manually verify the expression, you can ignore the warning.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Extend Modeling Environment についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!