Version : 0.3

Introduction

This is the simplest example. A magnetized cube is placed at position {0,0,0}. It is 1 mm in size and is magnetized according to the vector {-0.5,1,0.7} in Tesla. The three components of the field at position {0.52,0.6,0.7} are computed.

Implementation

To execute the computation, place the cursor anywhere inside the next cell and press Shift-Return. The Mathematica Kenel and Radia.exe will be loaded and the computation will be performed. {0.12737, 0.028644, 0.077505} should be obtained. These are the three components of the magnetic field. If there is an error message, the next section offers hints.

 

<<Radia`;
m=radObjRecMag[{0,0,0},{1,1,1},{-0.5,1,0.7}];
N[radFld[m,"b",{0.52,0.6,0.7}],5]
[Graphics:Example1gr2.gif][Graphics:Example1gr1.gif]
[Graphics:Example1gr2.gif][Graphics:Example1gr3.gif]
[Graphics:Example1gr2.gif][Graphics:Example1gr4.gif]

Possible Errors

If the following message appears: "Get::noopen : Cannot open Radia`", this means that the Radia package has not been installed in the Applications directory. If a dialog box appears asking for file selection, this probably means that the file Radia.exe has not been put in the proper directory.