Code covered by the BSD License
-
[X,Y,Z]=cone0(z,t,p)
-
[X,Y,Z]=cylin0(r,t,z)
-
[X,Y,Z]=elipcyl0(eta,psi,z)
-
[X,Y,Z]=elipsod0(lambda,theta...
-
[X,Y,Z]=oblate0(eta,theta,psi...
-
[X,Y,Z]=parab0(mu,nu,psi)
-
[X,Y,Z]=sphr0(r,t,p)
-
[X,Y,Z]=toroid0(eta,theta,psi...
-
[X,names]=cone
[X,names]=cone defines a non-orthogonal
-
[X,names]=cylin
[X,names]=cylin defines cylindrical coordinates
-
[X,names]=elipcyl
[X,names]=elipcyl defines elliptic
-
[X,names]=elipsod
[X,names]=elipsod defines ellipsoidal
-
[X,names]=notort
[X,names]=notort is a special non-orthogonal
-
[X,names]=oblate
[X,names]=oblate defines oblate spheroidal coordinates
-
[X,names]=parab
[X,names]=parab defines parabolic coordinates
-
[X,names]=sphr
[X,names]=sphr defines spherical coordinates
-
[X,names]=toroid
-
[vdiv,vcurl]=crldivxyz(vx,vy,...
-
[x,n,bco,bcn,gco,gcn,cs1,cs2]...
-
d=diverge(vcontr,names,gcovar...
d=diverge(vcontr,names,gcovar) computes
-
divrg=ndiverge(vcontr,names,b...
divrg=ndiverge(vcontr,names,bcovar,tn) computes
-
pcontr=curls(vcovar,names,bco...
pcontr=curls(vcovar,names,bcovar,cs2,tn)
-
runconsec
runconsec illustrates the four curve types resulting
-
runcoord
This program plots coordinate surfaces for various
-
rundivcrl(vxyz,cordname,tn)
rundivcrl(vxyz,cordname,tn)
-
runmetric(func)
-
timemetric
-
v=cart2curv(vcart,typeout,bco...
v=cart2curv(vcart,typeout,bcontr,bcovar) converts
-
vcart=curv2cart(vcurv,typein,...
vcart=curv2cart(vcurv,typein,bcontr,bcovar,t,tn)
-
vdif=covardif(v,type,names,cs...
vdif=covardif(v,type,names,cs2)
-
vdifn=covardifn(v,type,names,...
vdifn=covardifn(v,type,names,cs2,tn)
-
vn=sym2num(v,names,tn)
-
abstract.m
-
equations.m
-
invrt.m
-
parcyl.m
-
readme.m
-
testdivcrl.m
-
testmetric.m
-
View all files
Curvilinear Coordinates
by Howard Wilson
11 Aug 2007
(Updated 10 Feb 2011)
Programs are presented which use symbolic math, curvilinear coordinates, and tensor concepts.
|
Watch this File
|
| File Information |
| Description |
Programs and utility functions using the Symbolic Math Toolbox are
provided to analyze vectors and tensors in general curvilinear
coordinates. The programs perform the following functions:
1) runcoord plots intersecting coordinate surfaces for typical
coordinate systems
2) runmetric computes and prints metric tensor properties for a
general curvilinear coordinate system
3) rundivcrl verifies agreement of numerical values of divergence and
curl of an arbitrary vector computed in both cartesian and curvilinear
coordinates
4) runconic plots surfaces illustrating how intersections of a cone and
a plane produce conic section curves.
5) Testmetric computes properties for nine different coordinate systems
and places the output in runmetric.tst. The symbolic equations from
some of the examples are fairly complicated.
The programs employ a number of other functions to define several
coordinate systems (such as cylindrical, spherical, toroidal, conical,
parabolic, ellipsoidal, and oblate spheroidal) and to compute base
vectors, metric tensors, Christoffel symbols, covariant derivatives,
divergence, and curl.
Files readme.m and equations.m describe the workspace contents and
governing equations. These files consist completely of comments and
can be examined with either the help or the edit commands. A pdf.file
named TensorNotes presents derivations of the classical analytical
formulas used.
>> |
| Required Products |
Symbolic Math Toolbox
|
| MATLAB release |
MATLAB 7.0.1 (R14SP1)
|
| Other requirements |
These programs should run with Student MATLAB or Professional MATLAB and the Symbolic Toolbox. The software was developed on a computer having 4Gbyte of RAM. Users should remember that symbolic output in some instances can be quite lengthy. |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 10 Feb 2011 |
Several code changes were made to improve compatibility with MATLAB 2011. A pdf document presenting tensor analysis concepts was also added. |
|
Contact us at files@mathworks.com