Mean and Gaussian curvature for a Gaussian 'hill' seem wrong

In summary, the Gaussian curvature on the surface does not look plausible. The Mean curvature looks wrong, and the values for H are different from the ones displayed on the contour graph.
  • #1
Zaent
15
2
I'm hoping someone can help check whether my final contour plots look plausible based on the surface.

I haven't done too much differential geometry but I've needed to work with Gaussian/Mean curvature for a simple 3D gaussian surface. Here's an example:

upload_2017-4-15_4-20-3.png

(A = 7, a=b=1/(3.5)^2)

It's parameterised using Monge patch representation; the z axis is f(x,y) = Ae^-(ax^2+by^2).

The Gaussian curvature K and Mean curvature H can be approximated via the following:

upload_2017-4-15_4-7-15.png


A little bit of calculation later, I end up with:

upload_2017-4-15_4-12-46.png


and

upload_2017-4-15_4-10-9.png
These don't look right to me, considering on my example surface there's clearly curvature beyond x=y~4 range. Also, should the Gaussian and Mean contours look more similar? If it seems like my method is sound yet these still look wrong then the error must be in my calculation code. I haven't been able to spot a mistake in it, though.

Many thanks.
 

Attachments

  • upload_2017-4-15_4-1-21.png
    upload_2017-4-15_4-1-21.png
    6.8 KB · Views: 573
  • upload_2017-4-15_4-9-53.png
    upload_2017-4-15_4-9-53.png
    14.4 KB · Views: 560
Physics news on Phys.org
  • #2
I get K(0,5)=-0.07, so it looks to me like the calculations behind the contour graph of Gaussian Curvature are wrong.

Also, it looks from the first contour graph as though you are getting positive curvatures. They should be negative, as one can see from the shape of the 3D graph.

What formulas did you get for ##f_{xx},\ f_{yy},\ f_{xy}##?
 
  • Like
Likes Zaent
  • #3
andrewkirk said:
I get K(0,5)=-0.07, so it looks to me like the calculations behind the contour graph of Gaussian Curvature are wrong.

Also, it looks from the first contour graph as though you are getting positive curvatures. They should be negative, as one can see from the shape of the 3D graph.

What formulas did you get for ##f_{xx},\ f_{yy},\ f_{xy}##?
Thank you for taking the time.

Here's what I have for the Gaussian curvature and how I got it:

upload_2017-4-15_13-48-24.png


My method for Mean curvature is similar.

Should all the Gaussian curvatures be negative? I had in my head that it'd be negative at the bottom and positive at the top, based on a few other surfaces I googled for comparison.
 

Attachments

  • upload_2017-4-15_13-43-42.png
    upload_2017-4-15_13-43-42.png
    14 KB · Views: 559
  • upload_2017-4-15_13-45-50.png
    upload_2017-4-15_13-45-50.png
    15.7 KB · Views: 565
  • #4
Zaent said:
Thank you for taking the time.

Here's what I have for the Gaussian curvature and how I got it:
Your formula for K matches mine. Check the calculations you did with that formula. The values I get for y=0, x=(-6):6 are

-0.01784834 -0.06794136 -0.15450102 -0.14104856 0.23583912 0.92825319 1.30612245
0.92825319 0.23583912 -0.14104856 -0.15450102 -0.06794136 -0.01784834

These are different from the numbers on the contour graph.
Should all the Gaussian curvatures be negative? I had in my head that it'd be negative at the bottom and positive at the top, based on a few other surfaces I googled for comparison.
What you had in your head is right, and is what I meant. It does not match the contour graph, which seems to show only positive values.
 
  • Like
Likes Zaent
  • #5
andrewkirk said:
Your formula for K matches mine. Check the calculations you did with that formula. The values I get for y=0, x=(-6):6 are

-0.01784834 -0.06794136 -0.15450102 -0.14104856 0.23583912 0.92825319 1.30612245
0.92825319 0.23583912 -0.14104856 -0.15450102 -0.06794136 -0.01784834

These are different from the numbers on the contour graph.
What you had in your head is right, and is what I meant. It does not match the contour graph, which seems to show only positive values.

I did this and got the exact same values, so then I checked my contour and changed how many lines it was showing. Duh. Here's what I have now:

upload_2017-4-16_0-40-9.png


I figure this must be right and I just wasn't showing enough lines. One thing that worries me is the mean curvature, should those all be negative? Here's the formula I get for that:

upload_2017-4-16_0-43-30.png


Thank you again, you're a saint.
 
  • #6
Zaent said:
One thing that worries me is the mean curvature, should those all be negative?
The formula is a little too busy to check. I suggest you factorise it, to get all the common factors out of the way - the exponent and the constant A for a start. Also, it's better to write short formulas for ##f_x,f_{xx},f_{xy}## etc and then write the formula for ##H## in terms of those, to prevent the formula getting too big. Then you can check it for correctness.

FWIW I got the following values for H for y=0 and x= -6:6

0.09410179 0.05881300 -0.03535662 -0.12436133 -0.23370455 -0.50643935 -1.14285714
-0.50643935 -0.23370455 -0.12436133 -0.03535662 0.05881300 0.09410179

Omitting the denominator, which your formula above does, gives:

0.1132960 0.1136231 -0.1425589 -0.8866893 -1.6761835 -1.5515235 -1.1428571
-1.5515235 -1.6761835 -0.8866893 -0.1425589 0.1136231 0.1132960

The signs change, from + to - and back to +.
 
  • Like
Likes Zaent
  • #7
andrewkirk said:
The formula is a little too busy to check. I suggest you factorise it, to get all the common factors out of the way - the exponent and the constant A for a start. Also, it's better to write short formulas for ##f_x,f_{xx},f_{xy}## etc and then write the formula for ##H## in terms of those, to prevent the formula getting too big. Then you can check it for correctness.

FWIW I got the following values for H for y=0 and x= -6:6

0.09410179 0.05881300 -0.03535662 -0.12436133 -0.23370455 -0.50643935 -1.14285714
-0.50643935 -0.23370455 -0.12436133 -0.03535662 0.05881300 0.09410179

Omitting the denominator, which your formula above does, gives:

0.1132960 0.1136231 -0.1425589 -0.8866893 -1.6761835 -1.5515235 -1.1428571
-1.5515235 -1.6761835 -0.8866893 -0.1425589 0.1136231 0.1132960

The signs change, from + to - and back to +.

I have the same values. Number of contour lines was the problem again. I appreciate all the help!
 

1. What is mean curvature?

Mean curvature is a measure of the average curvature of a surface at a given point. It is calculated by finding the average of the principal curvatures at that point.

2. How is mean curvature related to Gaussian curvature?

Mean curvature and Gaussian curvature are both measures of curvature, but they are not directly related. Mean curvature measures the overall curvature of a surface, while Gaussian curvature measures the curvature in two perpendicular directions.

3. What is Gaussian curvature?

Gaussian curvature is a measure of the curvature of a surface at a specific point. It is calculated by finding the product of the principal curvatures at that point.

4. Why do the calculations for Gaussian curvature for a Gaussian 'hill' seem wrong?

The calculations for Gaussian curvature for a Gaussian 'hill' might seem wrong because the Gaussian curvature at the peak of the hill is zero, which may seem counterintuitive. However, this is because the Gaussian curvature at a point is affected by the curvature in both directions, and at the peak of the hill, the curvature in one direction is positive while the curvature in the other direction is negative, resulting in a product of zero.

5. Can Gaussian curvature be negative?

Yes, Gaussian curvature can be negative. This happens when the curvature in one direction is positive and the curvature in the other direction is negative, resulting in a negative product. In contrast, a positive Gaussian curvature occurs when both curvatures are either positive or negative.

Similar threads

  • Differential Geometry
Replies
2
Views
2K
  • Differential Geometry
Replies
1
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
2K
  • Differential Geometry
Replies
6
Views
2K
  • Differential Geometry
Replies
1
Views
4K
  • Advanced Physics Homework Help
Replies
9
Views
1K
  • Math POTW for Graduate Students
Replies
1
Views
1K
  • Differential Geometry
Replies
1
Views
3K
  • Special and General Relativity
Replies
4
Views
1K
  • Special and General Relativity
Replies
29
Views
1K
Back
Top