Skip to main content
4-Participant
September 18, 2025
Question

Chart Component

  • September 18, 2025
  • 3 replies
  • 1015 views

Hello everyone, I hope you are doing fine!

I recently calculated wave theory selection using Mathcad Prime 9.0.0.0. I'm curious, is there a way to determine the region automatically for given points? I want the function to return "Linear/Airy", "Stokes 5", "Stream Function 3", etc. based on the chart.

Does anyone know? I attached the full calculation below.

 

RM_12291418_0-1758161862694.png

 

3 replies

25-Diamond I
September 18, 2025

No, Prime does not offer any automatic way to determine which area a given point would lie in.

You would have to program a function which determines which area a point with given coordinates is in and also would have to decide what to do with points lying on the border of two or more areas. Looks like quite some work to do.

4-Participant
September 18, 2025

I see. Thank you for the explanation!

21-Topaz II
September 18, 2025

Hi

A while ago dealing with vector based text fonts in bitmap graphics on this forum wrote a Mathcad 15 routine to find if a point is in a polygon.

If the areas on your excellent graph are turned into polygons it is possible to test where a point lies.

This will take a while to work up so please be patient.

Cheers

Terry

21-Topaz II
September 18, 2025

Hi,

Can you upload the excel sheet for the lines?

Cheers

Terry

25-Diamond I
September 20, 2025

Here is my attempt defining the necessary polygons and determining the area a points lies in:

Werner_E_0-1758331536512.png

 

After saving the file and reopening it the region with the Chart component was corrupt and so I deleted it.

Prime 9 file attached

25-Diamond I
September 20, 2025

Added the hatching function by Prof. Birkeland.

Unfortunately the creation of all the hatch lines is very time consuming and the result is not as nice as we would like. Guess its also because of the log scale.

Werner_E_0-1758343671524.png

 

25-Diamond I
September 20, 2025

Hatching took far too long in my opinion. So I implemented a simpler approach, filling the areas just with dots.
Also added grid lines.

Werner_E_0-1758350220231.png