File Exchange

image thumbnail

calc_meshdata

version 1.3 (1.3 MB) by

Calculates the affine transformations for integration in 2D/3D via the unit triangle/tetrahedron.

3 Downloads

Updated

View License

Calculates the affine transformations needed for integration in 2D/3D via the unit reference triangle/tetrahedron. In 2D the function takes as its input the matrices p,e,t given by initmesh/poimesh (PDEtool toolbox), and calculates the affine transformations for each triangle simultaneously in a vectorized manner. In 3D we use Tetgen meshes.
With a 2009 MacBook Pro laptop, calculating the affine transformations for a mesh of 2 million triangles takes about 1.2 seconds.

We also demonstrate how to use this data to perform fast vectorized calculation of integral values over 2D and 3D meshes.

Comments and Ratings (0)

Updates

1.3

Examples of vectorized calculation of integrals.

1.2

Added a function giving 2d integration quadratures.

1.1

The same in 3D too.

MATLAB Release
MATLAB 7.14 (R2012a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today