Skip to main content
1-Visitor
March 18, 2019
Question

Help needed in plotting parallel lines within fixed boundaries (discontinuities)

  • March 18, 2019
  • 5 replies
  • 2379 views

Hi,

          I am trying to do solve a pde using method of characteristics. I am able to solve it. But I am not sure how to plot characteristic lines which are parallel in a certain z range. Also, characteristics should not cross the boundaries associated with constant flux (discontinuities). Kindly check plot 4 in the attached mathcad file and I want it to look like the pic pasted below it. Here z(t), z1(t) and zc(t) are the boundaries and z2(t), z3(t) and z4(t) are the characteristics. I think it may need some programming. Really appreciate the help.

 

Regards.

5 replies

23-Emerald IV
March 18, 2019

Maybe this helps:

LM_20190318_PlotPDE.png

Play with (change value of) i, to see what happens.

 

Success!
Luc

 

The attached Prime4 file contains an improvement of the above.

arnair811-VisitorAuthor
1-Visitor
March 18, 2019

Hi Luc,

              Thanks for the quick reply. I have a doubt. In your program changing i, will result in shifting say z2_(t) upwards or downwards (it lies between z_(t) and z1_(t) when i is changed, which is good). But in this case i may need to have multiple z2_ (t) lines  with i changed to i/2, i/4 ,3i/4 etc to fill out the particular boundary region. Is there any way I can have say 30 lines (with a particular slope) filling up that particular region. 60 parallel lines filling up the region z<0  and 100 parallel line filling up the region z>L (Just an example), so that I don't have to manually do it. Thank you

 

Regards

23-Emerald IV
March 18, 2019

I tried defining i as a range, like i:=0,1...20

But then plot refuses, you can try that out yourself...

Do you just want to hatch it (in which case there may be examples of hatching with Prime on this forum), or do the slopes of the lines actually have meaning?

 

Luc