in cylinder.m we use : Umax.
what is it? U[sub]lb[/sub] at entrance?
in Unit Conversion i read that u[sub]lb[/sub]~.02 is good for u[sub]lb[/sub].
but in cylinder.m we use 0.2. I think it is true because less than C[sub]s[/sub][sup]2[/sup].
Thus that suggestion …?
Yes, it seems that you got it right. And, affirmative, the velocity in the Matlab example is a bit high (I think it’s 0.1, actually). This doesn’t mean that the simulation is wrong, it just mean that it isn’t exceptionally precise because the accuracy is impaired by compressibility errors. On the other hand, the point of view I like to adopt with Matlab is that we are not seeking high accuracy anyway. It is more of a prototyping tool with which parameters and models are explored before we turn to production mode with a more efficiency-oriented language. Given the performance of Matlab scripts, high resolution grids cannot be used, and it would be useless to waste computational time by turning down the Mach number beyond a certain value.
The rule of thumb “ulb~.02” is nothing more than that: a rule of thumb which provides you with something to start with. In practice, the right thing to do is to play with this parameter until you get a numerical accuracy corresponding to your needs.