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

采纳的回答

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