----------
X-Sun-Data-Type: text
X-Sun-Data-Description: text
X-Sun-Data-Name: text
X-Sun-Charset: us-ascii
X-Sun-Content-Lines: 41
--------------------------------------------------------------------------------
directly from my Sun workstation Ultra 1 under SunOs 5.5.1 and CDE 1.0.2
--------------------------------------------------------------------------------
An alle Mathematica-Kundigen ! Stuttgart, den 20. November 1998
Problem
-------
Ich versuche mit MMa 3.0 Vektorfelder darzustellen.
Als einfachsten Fall waehlte ich das elektrische Feld EFeld einer Punktladung,
das sich als Gradient eines skalaren Potentials phi darstellen laesst.
Korrekt funktioniert PlotGradientField3D[ phi ] .
Nicht korrekt funktioniert PlotVectorField3D[ EField ] .
Es wird einfach das Vektor-Feld { Xx, Yy, Zz } dargestellt ..
Details im Anhang in Grad3D.nb !
Was mache ich falsch ?
Vielen Dank fuer einen kurzen Hinweis !
Mit freundlichen Gruessen
Gunter Woysch File : mail_98/dmug_981120_email_to
--------------------------------------------------------------------------------
Dr. G. Woysch, Alcatel Telecom , ASIC Technology and Qualification
Alcatel SEL AG , Dept. ZFZ/WH, D 70430 Stuttgart, Germany
Phone +49 711 821-32176 Fax +49 711 821-32455 email gwoysch@rcs.sel.de
--------------------------------------------------------------------------------
----------
X-Sun-Data-Type: default
X-Sun-Data-Description: default
X-Sun-Data-Name: Grad3D.nb
X-Sun-Charset: us-ascii
X-Sun-Content-Lines: 292
(***********************************************************************
Mathematica-Compatible Notebook
This notebook can be used on any computer system with Mathematica 3.0,
MathReader 3.0, or any compatible application. The data for the notebook
starts with the line of stars above.
To get the notebook into a Mathematica-compatible application, do one of
the following:
* Save the data starting with the line of stars above into a file
with a name ending in .nb, then open the file inside the application;
* Copy the data starting with the line of stars above to the
clipboard, then use the Paste menu command inside the application.
Data for notebooks contains only printable 7-bit ASCII and can be
sent directly in email or through ftp in text mode. Newlines can be
CR, LF or CRLF (Unix, Macintosh or MS-DOS style).
NOTE: If you modify the data for this notebook not in a Mathematica-
compatible application, you must delete the line below containing the
word CacheID, otherwise Mathematica-compatible applications may try to
use invalid cache data.
For more information on notebooks and Mathematica-compatible
applications, contact Wolfram Research:
web: http://www.wolfram.com
email: info@wolfram.com
phone: +1-217-398-0700 (U.S.)
Notebook reader applications are available free of charge from
Wolfram Research.
***********************************************************************)
(*CacheID: 232*)
(*NotebookFileLineBreakTest
NotebookFileLineBreakTest*)
(*NotebookOptionsPosition[ 5439, 198]*)
(*NotebookOutlinePosition[ 6111, 222]*)
(* CellTagsIndexPosition[ 6067, 218]*)
(*WindowFrame->Normal*)
Notebook[{
Cell["Demo for VectorField 3DGraphics", "Title"],
Cell[BoxData[
\(Needs[\ "\<Calculus`VectorAnalysis`\>"\ ]; \n
Needs[\ "\<Graphics`PlotField3D`\>"\ ]; \)], "Input"],
Cell[CellGroupData[{
Cell[BoxData[
\(CoordinateSystem[]\)], "Input"],
Cell[BoxData[
\(Cartesian[]\)], "Output"]
}, Open ]],
Cell[CellGroupData[{
Cell[BoxData[
\(Coordinates[]\)], "Input"],
Cell[BoxData[
\({Xx, Yy, Zz}\)], "Output"]
}, Open ]],
Cell[BoxData[
\(phi[\ Xx, \ Yy, \ Z_\ ]\ := \
1\/\@\(Xx\^\(2\ \) + Yy\^2 + \ Zz\^2\)\)], "Input"],
Cell[BoxData[
\(\(PlotGradientField3D[\ \n\tphi[\ Xx, Yy, Zz\ ], \n
\t{\ Xx, \ 0.05, 0.25\ }, \n\t{\ Yy, \ 0.05, 0.25\ }, \n
\t{\ Zz, \ 0.05, 0.25\ }, \n\t\ PlotPoints\ -> 6, \n\t\
VectorHeads\ -> \ True\ , \n\t\ ColorFunction\ -> \ Hue, \n\t\
PlotRange\ -> \ {{\ 0, \ 0.25\ }, \ {\ 0, 0.25}, {0, 0.25}\ }\n\t]\ ;
\)\)], "Input"],
Cell[BoxData[
\(EFeld[\ \ Xx, \ Yy, \ Zz\ ] := \ \n\t
\(-\ Grad[\ \n\t\t\t\ \ phi[\ Xx, \ Yy, \ Zz\ ]\ , \ \n\t\t\t\ \
Cartesian[\ ]\ \ \n\t\t]\)\)], "Input"],
Cell[CellGroupData[{
Cell[BoxData[
\(EFeld[\ Xx, \ Yy, \ Zz\ ]\)], "Input"],
Cell[BoxData[
\({Xx\/\((Xx\^2 + Yy\^2 + Zz\^2)\)\^\(3/2\),
Yy\/\((Xx\^2 + Yy\^2 + Zz\^2)\)\^\(3/2\),
Zz\/\((Xx\^2 + Yy\^2 + Zz\^2)\)\^\(3/2\)}\)], "Output"]
}, Open ]],
Cell[CellGroupData[{
Cell[BoxData[
\(\(EFeld[\ Xx, \ Yy, \ Zz\ ]\)[\([1]\)]\)], "Input"],
Cell[BoxData[
\(Xx\/\((Xx\^2 + Yy\^2 + Zz\^2)\)\^\(3/2\)\)], "Output"]
}, Open ]],
Cell[CellGroupData[{
Cell[BoxData[
\(\(EFeld[\ Xx, \ Yy, \ Zz\ ]\)[\([2]\)]\)], "Input"],
Cell[BoxData[
\(Yy\/\((Xx\^2 + Yy\^2 + Zz\^2)\)\^\(3/2\)\)], "Output"]
}, Open ]],
Cell[CellGroupData[{
Cell[BoxData[
\(\(EFeld[\ Xx, \ Yy, \ Zz\ ]\)[\([3]\)]\)], "Input"],
Cell[BoxData[
\(Zz\/\((Xx\^2 + Yy\^2 + Zz\^2)\)\^\(3/2\)\)], "Output"]
}, Open ]],
Cell[BoxData[
\(\(PlotVectorField3D[\ \n
\t{\ \(EFeld[\ Xx, \ Yy, \ Zz\ ]\)[\([1]\)], \n\t\t\
\(EFeld[\ Xx, \ Yy, \ Zz\ ]\)[\([2]\)], \n\t\t\
\(EFeld[\ Xx, \ Yy, \ Zz\ ]\)[\([3]\)]\n\t}, \n
\t{\ Xx, \ 0.05, \ 0.25\ }, \n\t{\ Yy, 0.05, \ 0.25\ }, \n
\t{\ Zz, \ 0.05, \ 0.25\ }, \n\t\ PlotPoints\ -> \ 5\ , \n\t\
VectorHeads\ -> \ True\ , \n\t\ ColorFunction\ -> \ Hue, \n\t\
PlotRange\ -> \ {{\ 0, \ 0.25\ }, \ {\ 0, 0.25}, {0, 0.25}\ }\n\t]\ ;
\)\)], "Input"],
Cell[BoxData[
\(\(PlotVectorField3D[\ \n\t{\ \ Xx, Yy, \ Zz\ }, \n
\t{\ \ Xx, 0.05, \ 0.25\ }, \n\t{\ \ Yy, 0.05, \ 0.25\ }, \n
\t{\ \ Zz, \ 0.05, \ 0.25\ }, \n\t\ PlotPoints\ -> \ 5\ , \n\t\
VectorHeads\ -> \ True\ , \n\t\ ColorFunction\ -> \ Hue, \n\t\
PlotRange\ -> \ {{\ 0, \ 0.25\ }, \ {\ 0, 0.25}, {0, 0.25}\ }\n\t]\ ;
\)\)], "Input"],
Cell[CellGroupData[{
Cell[BoxData[{
\(\(EFeld[\ 1, 0, 0]\)[\([1]\)]\),
\(\(EFeld[\ 1, 0, 0]\)[\([2]\)]\),
\(\(EFeld[\ 1, 0, 0]\)[\([3]\)]\)}], "Input"],
Cell[BoxData[
\(1\)], "Output"],
Cell[BoxData[
\(0\)], "Output"],
Cell[BoxData[
\(0\)], "Output"]
}, Open ]],
Cell[CellGroupData[{
Cell[BoxData[{
\(\(EFeld[\ 2, 0, 0]\)[\([1]\)]\),
\(\(EFeld[\ 2, 0, 0]\)[\([2]\)]\),
\(\(EFeld[\ 2, 0, 0]\)[\([3]\)]\)}], "Input"],
Cell[BoxData[
\(2\)], "Output"],
Cell[BoxData[
\(0\)], "Output"],
Cell[BoxData[
\(0\)], "Output"]
}, Open ]],
Cell[CellGroupData[{
Cell[BoxData[{
\(\(EFeld[\ 3, 0, 0]\)[\([1]\)]\),
\(\(EFeld[\ 3, 0, 0]\)[\([2]\)]\),
\(\(EFeld[\ 3, 0, 0]\)[\([3]\)]\)}], "Input"],
Cell[BoxData[
\(3\)], "Output"],
Cell[BoxData[
\(0\)], "Output"],
Cell[BoxData[
\(0\)], "Output"]
}, Open ]]
},
FrontEndVersion->"X 3.0",
ScreenRectangle->{{0, 1152}, {0, 900}},
WindowSize->{694, 602},
WindowMargins->{{Automatic, 211}, {58, Automatic}},
StyleDefinitions -> "Classroom.nb"
]
(***********************************************************************
Cached data follows. If you edit this Notebook file directly, not using
Mathematica, you must remove the line containing CacheID at the top of
the file. The cache data will then be recreated when you save this file
from within Mathematica.
***********************************************************************)
(*CellTagsOutline
CellTagsIndex->{}
*)
(*CellTagsIndex
CellTagsIndex->{}
*)
(*NotebookFileOutline
Notebook[{
Cell[1709, 49, 48, 0, 55, "Title"],
Cell[1760, 51, 123, 2, 63, "Input"],
Cell[CellGroupData[{
Cell[1908, 57, 51, 1, 47, "Input"],
Cell[1962, 60, 45, 1, 47, "Output"]
}, Open ]],
Cell[CellGroupData[{
Cell[2044, 66, 46, 1, 47, "Input"],
Cell[2093, 69, 46, 1, 47, "Output"]
}, Open ]],
Cell[2154, 73, 109, 2, 71, "Input"],
Cell[2266, 77, 368, 6, 191, "Input"],
Cell[2637, 85, 179, 3, 111, "Input"],
Cell[CellGroupData[{
Cell[2841, 92, 58, 1, 47, "Input"],
Cell[2902, 95, 174, 3, 67, "Output"]
}, Open ]],
Cell[CellGroupData[{
Cell[3113, 103, 71, 1, 47, "Input"],
Cell[3187, 106, 74, 1, 67, "Output"]
}, Open ]],
Cell[CellGroupData[{
Cell[3298, 112, 71, 1, 47, "Input"],
Cell[3372, 115, 74, 1, 67, "Output"]
}, Open ]],
Cell[CellGroupData[{
Cell[3483, 121, 71, 1, 47, "Input"],
Cell[3557, 124, 74, 1, 67, "Output"]
}, Open ]],
Cell[3646, 128, 522, 9, 239, "Input"],
Cell[4171, 139, 379, 6, 191, "Input"],
Cell[CellGroupData[{
Cell[4575, 149, 144, 3, 79, "Input"],
Cell[4722, 154, 35, 1, 47, "Output"],
Cell[4760, 157, 35, 1, 47, "Output"],
Cell[4798, 160, 35, 1, 47, "Output"]
}, Open ]],
Cell[CellGroupData[{
Cell[4870, 166, 144, 3, 79, "Input"],
Cell[5017, 171, 35, 1, 47, "Output"],
Cell[5055, 174, 35, 1, 47, "Output"],
Cell[5093, 177, 35, 1, 47, "Output"]
}, Open ]],
Cell[CellGroupData[{
Cell[5165, 183, 144, 3, 79, "Input"],
Cell[5312, 188, 35, 1, 47, "Output"],
Cell[5350, 191, 35, 1, 47, "Output"],
Cell[5388, 194, 35, 1, 47, "Output"]
}, Open ]]
}
]
*)
(***********************************************************************
End of Mathematica Notebook file.
***********************************************************************)
|