There is an efficiency/memory vs. traceability difference.
If you defined Re explicitly as an intermediate variable, you need to allocate memory to that variable and track its value at each time step. The advantages
- You can log the variable and view it later with tools like sscexplore.
- It will show up in the block's "Variables" tab so you can set its initial condition, and you can see the initial value in the Variable Explorer.
If you use a let section, it basically inlines all that code and treats it as if it were just one big equation, as below. It is more efficient, but then you can't log the value for debugging/posterity.
x == y*V*D*rho/mu;
- Sebastian