Code covered by the BSD License  

Highlights from
calc_meshdata

Be the first to rate this file! 44 Downloads (last 30 days) File Size: 1.3 MB File ID: #37606
image thumbnail

calc_meshdata

by

 

24 Jul 2012 (Updated )

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

| Watch this File

File Information
Description

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 3D we use Tetgen meshes.
I have been using this with all my FEM codes.

With a 2009 MacBook Pro laptop, calculating the affine transformations for a mesh of 2 million triangles takes about 1.2 seconds.

Acknowledgements

Inttet and Read Tetgenmesh inspired this file.

Required Products Partial Differential Equation Toolbox
MATLAB
MATLAB release MATLAB 7.14 (R2012a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Updates
24 Jul 2012

The same in 3D too.

25 Mar 2014

Added a function giving 2d integration quadratures.

Contact us