Register to reply

How to calculate the stream function from the potential function?

by Uwe
Tags: function, potential, stream
Share this thread:
Uwe
#1
Oct18-12, 06:29 AM
P: 1
Hello,
I am struggling to work out a matlab program for the numerical calculation of the streamfunction directly from the potentialfunction. I have the latter as a solution of a 2D Laplace equation from the pdetool() and would like to generate contour plots of both the potentialfunction as well as the streamfunction to form finally a net of coordinates that are rectangular in every point.

So far I tested flowfun.m from Kirill K. Pankratov, but this has problems when the function is not continuous. The 2D region where my PDE is defined has however several holes and an integration of the Cauchy-Riemann equations is numerically difficult at these holes.

Streamlines (that are easily provided by matlab) are not helpful because I have to specify starting points. What I need however is the scalar value of the streamfunction at every point of the 2D region.

Possibly the streamfunction (as the harmonic dual of the potentialfunction) can be derived directly during the FEM calculation of the solution of the PDE.

My question is whether there is a possibility to output the streamfunction from the pdetool or to calculate it in another way from the potentialfunction.

Any suggestion is very welcome!
Uwe
Phys.Org News Partner Physics news on Phys.org
Vibrational motion of a single molecule measured in real time
Researchers demonstrate ultra low-field nuclear magnetic resonance using Earth's magnetic field
Bubbling down: Discovery suggests surprising uses for common bubbles

Register to reply

Related Discussions
Calculate the potential difference induced in the circuit as a function of time Introductory Physics Homework 3
Stream function Classical Physics 1
Why must stream function be 2d? Classical Physics 1
Stream Function in 3D Classical Physics 0
Stream Function Calculus & Beyond Homework 1