Simulink: warning Log in zero in one function

Click For Summary
SUMMARY

The discussion addresses a warning encountered in Simulink regarding "log of zero" during system simulation. The user is attempting to simulate a system that utilizes temperature data derived from integrator blocks. The issue arises when the variable ##\Delta T_A## potentially equals zero, leading to the logarithmic error. To resolve this, users must adjust initial values or parameters to ensure that the logarithmic function does not receive zero as an input.

PREREQUISITES
  • Familiarity with Simulink 2023a simulation environment
  • Understanding of mathematical functions, specifically logarithmic functions
  • Knowledge of integrator blocks in Simulink
  • Basic principles of handling initial conditions in dynamic systems
NEXT STEPS
  • Investigate how to modify initial conditions in Simulink models
  • Learn about error handling in Simulink, particularly for logarithmic functions
  • Explore the use of conditional statements to prevent zero inputs in equations
  • Review best practices for debugging simulation warnings in Simulink
USEFUL FOR

Engineers and developers working with Simulink, particularly those involved in system simulations that require handling of mathematical functions and initial conditions.

Ana_
Messages
1
Reaction score
0
Hello,
I have this problem (warning: log of zero in one function) when i try to simulate one system which apparentely doesn't have any problem.
in order to follow with my project i need to know how to change something parameters or whatever that is doing that my equation give me this mistake.
The equation is:
7b5e3bb47c4b2be1d6bbec0d94606a4e.png

where all the dates i put are temperatures calculated with another equations with integrator blocks.
how can i do to can change the initial values and the equation could work?
 
Engineering news on Phys.org
Did you check if ##\Delta T_A## is zero somewhere? If yes, what should Simulink do in this case? If no, there should be no log of zero involved.
 

Similar threads

Replies
1
Views
2K
Replies
4
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
616
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 21 ·
Replies
21
Views
1K