fmm Class Reference

This is the base class for the whole FMM calculation. More...

#include <fmm.h>

Inheritance diagram for fmm:
nanomagn::exchange nanomagn::mesh nanomagn::group elementintegrator chord

List of all members.

Public Member Functions

 fmm (conftrans CT, int nelemreq, int nrule, double maxangle, int maxpole)
 Initializes the calculation, subdividing the nano-cylinder into finite elements. This method creates the specified mesh and precalculates all the quantities, depending on the mesh only (most notably the lists of near and far partners, and multipole moments of base groups).
void setG (double g)
 Sets particle's aspect ratio. This method must be called at least once before calculating the energy with specific charge distributions. It precalculates a number of quantities, depending on g only (most notably the double contour integrals for sparse interaction matrix of near partners).
double energyMS (const charges &chrgF, const charges &chrgV, const charges &chrgS)
 Calculates magnetostatic energy for a given charge distribution. In the parameter chrgS the values, corresponding to the inner elements, will be ignored. Only the outer boundary elements may have the side charges specified.
double energyMS (double acr, double acf, double cm, double dm, double pm)
 Calculates magnetostatic energy for a given state in the circular cylinder. For definition of parameters see: K.L. Metlov and YoungPak Lee, "Map of metastable states for thin circular magnetic nanocylinders", Appl. Phys. Lett. 92 (2008), 112506.
double chargesFace (const double acr, const double acf, const double cm, const double dm, const double pm, const dcmplx &t)
 Calculates face charges at a point in a particle. For definition of parameters see fmm::fillCharges.
double chargesVolume (const double acr, const double acf, const double cm, const double dm, const double pm, const dcmplx &t)
 Calculates volume charges at a point in a particle. For definition of parameters see fmm::fillCharges.
double chargesSide (const double acr, const double acf, const double cm, const double dm, const double pm, const double fi)
 Calculates side charges at a point in a particle. For definition of parameters see fmm::fillCharges.
void fillCharges (double acr, double acf, double cm, double dm, double pm, charges &chrgF, charges &chrgV, charges &chrgS)
 Fills charges, corresponding to a particular set of parameters, into arrays. For definition of parameters see: K.L. Metlov and YoungPak Lee, "Map of metastable states for thin circular magnetic nanocylinders", Appl. Phys. Lett. 92 (2008), 112506.

Detailed Description

This is the base class for the whole FMM calculation.

Author:
Konstantin L. Metlov <metlov@kinetic.ac.donetsk.ua>

Constructor & Destructor Documentation

fmm::fmm ( conftrans  CT,
int  nelemreq,
int  nrule,
double  maxangle,
int  maxpole 
)

Initializes the calculation, subdividing the nano-cylinder into finite elements. This method creates the specified mesh and precalculates all the quantities, depending on the mesh only (most notably the lists of near and far partners, and multipole moments of base groups).

Parameters:
CT conformal mapping between the unit disk and the physical plane.
nelemreq approximate number of finite elements to make (in reality there will be a little more).
nrule order of Gauss-Jacobi integration rule for calculating line integrals along the mesh edges.
maxangle the maximum viewing angle, used to distinguish between "near" and "far" elements.
maxpole the highest multipole order to keep track of (this can assume only a set of fixed reasonable values, determined by the number of compiled-in translation kernel polynomials).

References nanomagn::mesh::calculateMoments(), nanomagn::mesh::clearNearInts(), nanomagn::group::cullPartners(), nanomagn::mesh::isNearIntSymmetric(), and nanomagn::mesh::reduceNearInts().


Member Function Documentation

double fmm::chargesFace ( const double  acr,
const double  acf,
const double  cm,
const double  dm,
const double  pm,
const dcmplx &  t 
)

Calculates face charges at a point in a particle. For definition of parameters see fmm::fillCharges.

Parameters:
acr is radial component of complex "a" parameter.
acf is polar angle of complex "a" parameter.
cm is the mapped value of "c" parameter ($ c \geq 0 $, $ c=cm/(cm-1) $).
dm is the mapped value of "d" parameter ($ c \geq 0 $ and $ d \leq c $, $ d=dm c $, $ 0 \leq dm \leq 1 $).
pm is the mapped value of "p" parameter ($ p \geq 1 $, $ pm=1/p $).
t is the point on the unit disk, where the charges should be evaluated.
Returns:
the amount of face charges at a point.
See also:
fmm::fillCharges

References nanomagn::mesh::getConfTrans(), and conftrans::Tp().

Referenced by fillCharges().

double fmm::chargesSide ( const double  acr,
const double  acf,
const double  cm,
const double  dm,
const double  pm,
const double  fi 
)

Calculates side charges at a point in a particle. For definition of parameters see fmm::fillCharges.

Parameters:
acr is radial component of complex "a" parameter.
acf is polar angle of complex "a" parameter.
cm is the mapped value of "c" parameter ($ c \geq 0 $, $ c=cm/(cm-1) $).
dm is the mapped value of "d" parameter ($ c \geq 0 $ and $ d \leq c $, $ d=dm c $, $ 0 \leq dm \leq 1 $).
pm is the mapped value of "p" parameter ($ p \geq 1 $, $ pm=1/p $).
fi is the polar angle, defining the point on the side of the unit disk, for which to evaluate the charge.
Returns:
the amount of volume charges at a point.
See also:
fmm::fillCharges

References nanomagn::mesh::getConfTrans(), and conftrans::Tp().

Referenced by fillCharges().

double fmm::chargesVolume ( const double  acr,
const double  acf,
const double  cm,
const double  dm,
const double  pm,
const dcmplx &  t 
)

Calculates volume charges at a point in a particle. For definition of parameters see fmm::fillCharges.

Parameters:
acr is radial component of complex "a" parameter.
acf is polar angle of complex "a" parameter.
cm is the mapped value of "c" parameter ($ c \geq 0 $, $ c=cm/(cm-1) $).
dm is the mapped value of "d" parameter ($ c \geq 0 $ and $ d \leq c $, $ d=dm c $, $ 0 \leq dm \leq 1 $).
pm is the mapped value of "p" parameter ($ p \geq 1 $, $ pm=1/p $).
t is the point on the unit disk, where the charges should be evaluated.
Returns:
the amount of volume charges at a point.
See also:
fmm::fillCharges

References nanomagn::mesh::getConfTrans(), conftrans::Tp(), and conftrans::Tpp().

Referenced by fillCharges().

double fmm::energyMS ( double  acr,
double  acf,
double  cm,
double  dm,
double  pm 
)

Calculates magnetostatic energy for a given state in the circular cylinder. For definition of parameters see: K.L. Metlov and YoungPak Lee, "Map of metastable states for thin circular magnetic nanocylinders", Appl. Phys. Lett. 92 (2008), 112506.

Parameters:
acr is radial component of complex "a" parameter.
acf is polar angle of complex "a" parameter.
cm is the mapped value of "c" parameter ($ c \geq 0 $, $ c=cm/(cm-1) $).
dm is the mapped value of "d" parameter ($ d \geq 0 $ and $ d \leq c $, $ d=dm c $, $ 0 \leq dm \leq 1 $).
pm is the mapped value of "p" parameter ($ p \geq 1 $, $ pm=1/p $).
Returns:
the value of magnetostatic energy.

References energyMS(), fillCharges(), nanomagn::mesh::getNElements(), and nanomagn::exchange::mt.

double fmm::energyMS ( const charges &  chrgF,
const charges &  chrgV,
const charges &  chrgS 
)

Calculates magnetostatic energy for a given charge distribution. In the parameter chrgS the values, corresponding to the inner elements, will be ignored. Only the outer boundary elements may have the side charges specified.

Parameters:
chrgF is the array of face charges on each element of the mesh.
chrgV is the array of volume charges in each element of the mesh.
chrgS is the array of side charges in each outer-boundary element of the mesh.
Returns:
the value of magnetostatic energy.
See also:
isOuterBoundary

References nanomagn::mesh::calcEnergyMS(), nanomagn::group::updateMoments(), and nanomagn::group::updateSmoothField().

Referenced by energyMS().

void fmm::fillCharges ( double  acr,
double  acf,
double  cm,
double  dm,
double  pm,
charges &  chrgF,
charges &  chrgV,
charges &  chrgS 
)

Fills charges, corresponding to a particular set of parameters, into arrays. For definition of parameters see: K.L. Metlov and YoungPak Lee, "Map of metastable states for thin circular magnetic nanocylinders", Appl. Phys. Lett. 92 (2008), 112506.

The information in chrgX arrays will be replaced. These arrays must be preallocated, with the number of elements, equal (or higher) to the number of elements in the mesh.

Parameters:
acr is radial component of complex "a" parameter.
acf is polar angle of complex "a" parameter.
cm is the mapped value of "c" parameter ($ c \geq 0 $, $ c=cm/(cm-1) $).
dm is the mapped value of "d" parameter ($ c \geq 0 $ and $ d \leq c $, $ d=dm c $, $ 0 \leq dm \leq 1 $).
pm is the mapped value of "p" parameter ($ p \geq 1 $, $ pm=1/p $).
chrgF is the array of face charges on each element of the mesh.
chrgV is the array of volume charges in each element of the mesh.
chrgS is the array of side charges in each outer-boundary element of the mesh.
Returns:
the value of magnetostatic energy.

References chargesFace(), chargesSide(), chargesVolume(), nanomagn::mesh::getBaseGroups(), nanomagn::mesh::getConfTrans(), nanomagn::mesh::getEdge(), chord::getFF(), chord::getFS(), nanomagn::mesh::isOuterBoundary(), and nanomagn::exchange::mt.

Referenced by energyMS().

void fmm::setG ( double  g  ) 

Sets particle's aspect ratio. This method must be called at least once before calculating the energy with specific charge distributions. It precalculates a number of quantities, depending on g only (most notably the double contour integrals for sparse interaction matrix of near partners).

Parameters:
g aspect ratio of the particle.

References nanomagn::mesh::calculateNearIntMat(), and nanomagn::group::precalcTaylor().


The documentation for this class was generated from the following files:
Generated on Mon Oct 8 18:26:45 2012 for nanomagnFMM by  doxygen 1.6.3