Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
Jul 23, 2010, 4:35 p.m. EDT
Hi Danial,
I have had luck using the following approach (4.0), though there may be better ways to go about it:
1. Use mpheval command to obtain grid point coordinates and corresponding velocities
2. Use meshgrid command to create regular coordinate grid for plotting
3. Use TriScatteredInterp command to obtain velocities at coordinates generated by meshgrid command
4. Use streamline command to generate and plot streamlines
A little clunky, but it seems to work. If you come up with a better approach, please let me know.
Paul
Hi Danial,
I have had luck using the following approach (4.0), though there may be better ways to go about it:
1. Use mpheval command to obtain grid point coordinates and corresponding velocities
2. Use meshgrid command to create regular coordinate grid for plotting
3. Use TriScatteredInterp command to obtain velocities at coordinates generated by meshgrid command
4. Use streamline command to generate and plot streamlines
A little clunky, but it seems to work. If you come up with a better approach, please let me know.
Paul
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
Aug 16, 2010, 10:36 a.m. EDT
Hi Danial,
I have had luck using the following approach (4.0), though there may be better ways to go about it:
1. Use mpheval command to obtain grid point coordinates and corresponding velocities
2. Use meshgrid command to create regular coordinate grid for plotting
3. Use TriScatteredInterp command to obtain velocities at coordinates generated by meshgrid command
4. Use streamline command to generate and plot streamlines
A little clunky, but it seems to work. If you come up with a better approach, please let me know.
Paul
Hi Paul,
Do you have a code snippet I can check? That will save a lot of time debugging.
Best,
Danial
[QUOTE]
Hi Danial,
I have had luck using the following approach (4.0), though there may be better ways to go about it:
1. Use mpheval command to obtain grid point coordinates and corresponding velocities
2. Use meshgrid command to create regular coordinate grid for plotting
3. Use TriScatteredInterp command to obtain velocities at coordinates generated by meshgrid command
4. Use streamline command to generate and plot streamlines
A little clunky, but it seems to work. If you come up with a better approach, please let me know.
Paul
[/QUOTE]
Hi Paul,
Do you have a code snippet I can check? That will save a lot of time debugging.
Best,
Danial