Using the code shown, Reynolds number is calculated for given parameters. Is it possible to display a warning message to the user if a parameter is outside applicable range? e.g., if the fluid velocity is more than 5 m/s.
Manipulate["Reynolds number: " <> ToString@Style[Rey[v], 14],Text[Style["Reynolds number calculator", 16]], Delimiter, {{v, 1.5,"Velocity of Fluid(m/s): "}, ControlType -> InputField, FieldSize -> 7}, {{roh, 1, "Fluid Density (Kg/m^3): "},ControlType -> InputField,FieldSize -> 7},{{dia, 0.01, "Hydraulic Diameter (m) "},ControlType -> InputField,FieldSize -> 7}, {{muh, 0.00089, "Dynamic Viscosity (Kg/ms): "},ControlType -> InputField, FieldSize -> 7}, Delimiter,Item[Button["Calculate", Nothing, BaseStyle -> {15}]],LabelStyle -> {14}, ContentSize -> 310,Initialization :> {Rey[v_] := (roh*v*dia)/muh}, TrackedSymbols :> All]
Now if the user puts a velocity value of more than 5 m/s, a warning message should appear: "Velocity should be less than 5 m/s".