Dimensional analysis issue because of the function 'log' in the rule

조회 수: 2 (최근 30일)
Day
Day 2024년 3월 26일
댓글: Day 2024년 3월 26일
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

채택된 답변

Arthur Goldsipe
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 CenterFile Exchange에서 Extend Modeling Environment에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by