No BSD License  

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
TriStream

5.0
5.0 | 5 ratings Rate this file 8 Downloads (last 30 days) File Size: 78.4 KB File ID: #11278 Version: 1.0
image thumbnail

TriStream

by

 

02 Jun 2006 (Updated )

Compute streamlines on triangular mesh

| Watch this File

File Information
Description

TRISTREAM Trace streamlines on a triangular mesh using nodal velocities

  FlowP=TriStream(tri,x,y,u,v,x0,y0) computes streamlines on the triangular mesh specified by tri with nodal coordinates [x,y]. Streamlines are traced using the nodal velocities u and v, and one streamline is produced for each seed point in the input vectors [x0,y0]. Streamlines are traced until one of four conditions is met: 1) The particle travels beyond the mesh. 2) The particle intersects its own path, creating a cycle. 3) The particle enters a stagnant zone (U~V~0). 4) A maximum number of iterations is exceeded. The output of TRISTREAM is a structure array, FlowP, containing particle flowpaths, and can be displayed using PLOTTRISTREAM.

  Algorithm:
TRISTREAM follows the approach outlined in the paper "Efficient Streamline Computations on Unstructured Grids" by Mihai Dorobantu
http://citeseer.ist.psu.edu/40044.html
This algorithm uses a second-order Runge-Kutta method to integrate particle paths with adaptive pseudo-time-stepping.

MATLAB release MATLAB 6.1 (R12.1)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (7)
14 Mar 2016 Alessandro Masullo

It doesn't work on the last version of Matlab. The function tsearch has been removed

Comment only
10 Jan 2013 Romain W

Hello Matthew, I was wondering how hard would it be to adapt this to 3D triangular mesh?

21 Feb 2012 ali

ali (view profile)

Thanks I needed this, and I think you can propose to include this in pdetoolbox because this is a major thing pdetoolbox doesn't have..

19 Oct 2011 illoul lounes  
19 Oct 2011 illoul lounes  
26 Dec 2010 Diablo

Diablo (view profile)

This is just what i needed many thanks

23 Feb 2008 shode chanf

good

Comment only

Contact us