
#1
Oct1812, 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 CauchyRiemann 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 


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 