mmgs
|
Metric tools for the mmg applications. More...
#include "mmgcommon.h"
Functions | |
int | MMG5_buildridmetfic (MMG5_pMesh mesh, double t[3], double n[3], double dtan, double dv, double dn, double m[6]) |
int | MMG5_intmetsavedir (MMG5_pMesh mesh, double *m, double *n, double *mr) |
int | MMG5_buildridmet (MMG5_pMesh mesh, MMG5_pSol met, int np0, double ux, double uy, double uz, double mr[6], double r[3][3]) |
int | MMG5_buildridmetnor (MMG5_pMesh mesh, MMG5_pSol met, int np0, double nt[3], double mr[6], double r[3][3]) |
int | MMG5_intersecmet22 (MMG5_pMesh mesh, double *m, double *n, double *mr) |
int | MMG5_mmgIntextmet (MMG5_pMesh mesh, MMG5_pSol met, int np, double me[6], double n[3]) |
int | MMG5_paratmet (double c0[3], double n0[3], double m[6], double c1[3], double n1[3], double mt[6]) |
Metric tools for the mmg applications.
int MMG5_buildridmet | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
int | np0, | ||
double | ux, | ||
double | uy, | ||
double | uz, | ||
double | mr[6], | ||
double | r[3][3] | ||
) |
mesh | pointer toward the mesh structure. |
met | pointer toward the sol structure. |
np0 | index of edge's extremity. |
ux | distance ![]() |
uy | distance ![]() |
uz | distance ![]() |
mr | computed metric tensor. |
r | basis in which the metric is diagona |
Build metric tensor at ridge point p0, when computations with respect to p1 are to be held. Store the basis vectors in r.
|
inline |
mesh | pointer toward the mesh structure. |
t | tangent at the ridge point. |
n | normal at the ridge point. |
dtan | metric size along the tangent direction. |
dv | metric size along the ![]() |
dn | metric size along the normal direction. |
m | computed metric at the ridge point. |
Build metric tensor at a fictitious ridge point, whose normal and tangent are provided.
int MMG5_buildridmetnor | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
int | np0, | ||
double | nt[3], | ||
double | mr[6], | ||
double | r[3][3] | ||
) |
mesh | pointer toward the mesh structure. |
met | pointer toward the sol structure. |
np0 | index of edge's extremity. |
nt | normal direction at the ridge point. |
mr | computed metric tensor. |
r | basis in which the metric is diagonal |
Build metric tensor at ridge point p0, when the 'good' normal direction is given by nt and store the basis vectors in r.
int MMG5_intersecmet22 | ( | MMG5_pMesh | mesh, |
double * | m, | ||
double * | n, | ||
double * | mr | ||
) |
mesh | pointer toward the mesh structure. |
m | pointer toward a ![]() |
n | pointer toward a ![]() |
mr | computed ![]() |
Compute the intersected (2 x 2) metric from metrics m and n : take simultaneous reduction, and proceed to truncation in sizes.
int MMG5_intmetsavedir | ( | MMG5_pMesh | mesh, |
double * | m, | ||
double * | n, | ||
double * | mr | ||
) |
mesh | pointer toward the mesh structure. |
m | pointer toward the first metric to intersect. |
n | pointer toward the second metric to intersect. |
mr | pointer toward the computed intersected metric. |
Compute the intersected (2 x 2) metric between metrics m and n, PRESERVING the directions of m. Result is stored in mr.
int MMG5_mmgIntextmet | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
int | np, | ||
double | me[6], | ||
double | n[3] | ||
) |
mesh | pointer toward the mesh structure. |
met | pointer toward the metric structure. |
np | global index of vertex in which we intersect the metrics. |
me | physical metric at point np. |
n | normal or tangent at point np. |
Intersect the surface metric held in np (supported in tangent plane of np) with 3*3 physical metric in me. For ridge points, this function fill the and
fields that contains respectively the specific sizes in the
and
directions.
int MMG5_paratmet | ( | double | c0[3], |
double | n0[3], | ||
double | m[6], | ||
double | c1[3], | ||
double | n1[3], | ||
double | mt[6] | ||
) |
c0 | table of the coordinates of the starting point. |
n0 | normal at the starting point. |
m | metric to be transported. |
c1 | table of the coordinates of the ending point. |
n1 | normal at the ending point. |
mt | computed metric. |
Parallel transport of a metric tensor field, attached to point c0, with normal n0, to point c1, with normal n1.