error with calculating drag and lift forces in a square prism. The error i get is Index must not exceed 1. any help would be greatly appreciated.
Hello MATLAB Forums
I’m trying to calculate and plot the drag force and lift force over a period of time of a square prism using the navier stokes equation. I keep on getting an error in my code in line 253 saying that "Index in position 2 exceeds array bounds, index must not exceed 1". The Force part of the code is from lines 195 to 257. The rest of the code before lines 195 works fine. Any help would be greatly appreciated.
cheers
DanielHello MATLAB Forums
I’m trying to calculate and plot the drag force and lift force over a period of time of a square prism using the navier stokes equation. I keep on getting an error in my code in line 253 saying that "Index in position 2 exceeds array bounds, index must not exceed 1". The Force part of the code is from lines 195 to 257. The rest of the code before lines 195 works fine. Any help would be greatly appreciated.
cheers
Daniel Hello MATLAB Forums
I’m trying to calculate and plot the drag force and lift force over a period of time of a square prism using the navier stokes equation. I keep on getting an error in my code in line 253 saying that "Index in position 2 exceeds array bounds, index must not exceed 1". The Force part of the code is from lines 195 to 257. The rest of the code before lines 195 works fine. Any help would be greatly appreciated.
cheers
Daniel computational fluid dynamics MATLAB Answers — New Questions