Added To SVN Repository
This commit is contained in:
@ -25,7 +25,9 @@
|
||||
* COMSOL Multiphysics.
|
||||
* \image html field.gif Example of a field map generated using COMSOL.
|
||||
* Those field maps are shared into three ascii files, one per field component,
|
||||
* in the format (x y z B_i).
|
||||
* in the format (x y z B_i). The first line in the file contains
|
||||
* the labels. The second line is (x_min y_min z_min B_i) and the last line
|
||||
* is (x_max y_max z_max B_i).
|
||||
* LEMuSRElectricField reads those files and store them in an array.
|
||||
* Some important parameters must be specified to read a field map:
|
||||
* -# <b> The number of points</b> along each axis which was defined in COMSOL
|
||||
@ -37,7 +39,7 @@
|
||||
* - A different unit has an influence
|
||||
* on the coordinates reading, but also on the actual field value which has to
|
||||
* be scaled consequently.
|
||||
* -# The voltage to use because field maps are calculated for 1kV potential.
|
||||
* -# The voltage to use. Indeed,the field maps are generated for 1kV potential.
|
||||
* The user should indicate the actual voltage to multiply the fields values.
|
||||
* -# The offset along z axis, in case the map is not centered on the actual
|
||||
* postition of the field. This is the case for the third lense field for example:
|
||||
@ -45,7 +47,8 @@
|
||||
* .
|
||||
* The field maps can be very heavy files and reading them can cost a lot of time.
|
||||
* For this reason, it is possible to write the field map array in a single file
|
||||
* after the first reading.
|
||||
* after the first reading. Such maps files have been produced for the third
|
||||
* lens, the anode and the sample.
|
||||
*/
|
||||
|
||||
#ifndef LEMUSRELECTRICFIELD_H
|
||||
@ -71,13 +74,13 @@ class LEMuSRElectricField : public G4ElectricField
|
||||
public:
|
||||
|
||||
//! Constructor from three field maps
|
||||
LEMuSRElectricField(G4double fieldval,const char* Xfile,
|
||||
const char* Yfile,
|
||||
const char* Zfile,G4String map_length_unit,
|
||||
LEMuSRElectricField(G4double fieldval,G4String Xfile,
|
||||
G4String Yfile,
|
||||
G4String Zfile,G4String map_length_unit,
|
||||
G4double Offset, G4double nx, G4double ny, G4double nz);//offset must be entered in millimeter
|
||||
|
||||
//! Contructor from a single field map
|
||||
LEMuSRElectricField(G4double fieldval,const char* file,G4String map_length_unit,
|
||||
LEMuSRElectricField(G4double fieldval,G4String file,G4String map_length_unit,
|
||||
G4double Offset, G4double nx, G4double ny, G4double nz);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user