Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Negative determinant

Negative determinant 10 years 10 months ago #11701

  • jmhervouet
  • jmhervouet's Avatar
Hello,

No, it would not help, this determinant is about the area of the element...

The latitude of the origin point is the value that has been used to build the mesh, so shifting the Y coordinates is not a thing to do. It is probably the latitude and longitude of origin point that should be changed.

Regards,

JMH
The administrator has disabled public write access.

Negative determinant 10 years 10 months ago #11754

  • lsb1@soton.ac.uk
  • lsb1@soton.ac.uk's Avatar
Thank you. Just to clarify, LATITUDE OF ORIGIN POINT = 36.0305 implies that the y-coordinate in Mercator projection is translated by -R*log(tand(36.0305/2+45)) ~= -4.3e6 m with respect to the case where LATITUDE OF ORIGIN POINT = 0.0 (or am I wrong?)

Regards,

LB
The administrator has disabled public write access.

Negative determinant 10 years 10 months ago #11758

  • jmhervouet
  • jmhervouet's Avatar
Hello,

Exactly, you have:

X=R(longitude - longitude of origin point)
Y=R(ln(tan(latitude/2+45)-ln(tan(latitude of origin point/2+45)) )

and X and Y are what is in your mesh file. Then the program just retrieves from Y the value of the latitude, and coordinates are locally multiplied by cos(latitude) to have real local distances. This procedure cannot give negative determinants if they are not in the original mesh, unless perhaps if the original Mercator projection does not correspond to the origin point given.

A good hint is that your origin point (thus coordinates 0,0) should be in your domain, as is done in the beta plane approximation, also to limit the size of coordinates and avoid truncation errors when computing e.g. an area with formulas such as x1*y2-x2*y1.

With best regards,

Jean-Michel Hervouet
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: pham

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.