4.33333

4.3 | 3 ratings Rate this file 12 Downloads (last 30 days) File Size: 4.65 KB File ID: #8333

Transform Tensor

by Peter Graat

 

22 Aug 2005 (Updated 23 Aug 2005)

Transformation of a 3D-tensor of any order to another coordinate system.

| Watch this File

File Information
Description

FUNCTION
otr = transform(itr,tmx)

PARAMETERS
otr = output tensor, after transformation; has the same dimensions as the input tensor
itr = input tensor, before transformation; should be a 3-element vector, a 3x3 matrix, or a 3x3x3x... multidimensional array, each dimension containing 3 elements
tmx = transformation matrix, 3x3 matrix that contains the direction cosines between the old and the new coordinate system

DESCRIPTION
Tensors play an important role in several areas of physics and engineering. Perhaps the most important examples are the stress and strain tensor, which are both 2nd rank tensors. Both tensors are related by a 4th rank elasticity (compliance or stiffness) tensor, which is a material property. Calculation of stress or strain along a certain direction of a crystalline material, consisting of one or more differently oriented crystallites, often requires several coordinate transformations, for which this function might be useful.
It transforms a 3D-tensor (Euclidean or Cartesion tensor) of any order between two coordinate systems. An m-file, a c-file and a PC mex-file have been included. The m-file works for numeric as well as symbolic data, the mex-file only for numeric data. The mex-file is, of course, considerable faster than the m-file. However, if speed of calculation is really an issue a dedicated function for a tensor of a specific order would perform better.

MATLAB release MATLAB 7.0.1 (R14SP1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
16 Oct 2005 Prasanna Ganesan

But can you please give some examples/templates so that the intrepretation becomes easier.

01 Apr 2007 zarith azleen  
16 Dec 2008 Adam Pilchak

excellent submission. perfect for anisotropic elasticity calculations.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
chemistry Peter Graat 22 Oct 2008 07:56:20
physics Peter Graat 22 Oct 2008 07:56:20
tensor Peter Graat 22 Oct 2008 07:56:20
vector Peter Graat 22 Oct 2008 07:56:20
matrix Peter Graat 22 Oct 2008 07:56:20
coordinate Peter Graat 22 Oct 2008 07:56:20
transformation Peter Graat 22 Oct 2008 07:56:20

Contact us at files@mathworks.com