Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

pdetrg

Triangle geometry data

This page describes the legacy workflow. New features might not be compatible with the legacy workflow. For the corresponding step in the recommended workflow, see generateMesh.

Syntax

[ar,a1,a2,a3] = pdetrg(p,t)
[ar,g1x,g1y,g2x,g2y,g3x,g3y] = pdetrg(p,t)

Description

[ar,a1,a2,a3] = pdetrg(p,t) returns the area of each triangle in ar and half of the negative cotangent of each angle in a1, a2, and a3.

[ar,g1x,g1y,g2x,g2y,g3x,g3y] = pdetrg(p,t) returns the area and the gradient components of the triangle base functions.

The triangular mesh of the PDE problem is given by the mesh data p and t. For details on the mesh data representation, see initmesh.

Introduced before R2006a

Was this topic helpful?