This is the base class for the whole FMM calculation. More...
#include <fmm.h>
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. | |
This is the base class for the whole FMM calculation.
| 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).
| 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().
| 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.
| acr | is radial component of complex "a" parameter. | |
| acf | is polar angle of complex "a" parameter. | |
| cm | is the mapped value of "c" parameter ( , ). | |
| dm | is the mapped value of "d" parameter ( and , , ). | |
| pm | is the mapped value of "p" parameter ( , ). | |
| t | is the point on the unit disk, where the charges should be evaluated. |
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.
| acr | is radial component of complex "a" parameter. | |
| acf | is polar angle of complex "a" parameter. | |
| cm | is the mapped value of "c" parameter ( , ). | |
| dm | is the mapped value of "d" parameter ( and , , ). | |
| pm | is the mapped value of "p" parameter ( , ). | |
| fi | is the polar angle, defining the point on the side of the unit disk, for which to evaluate the charge. |
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.
| acr | is radial component of complex "a" parameter. | |
| acf | is polar angle of complex "a" parameter. | |
| cm | is the mapped value of "c" parameter ( , ). | |
| dm | is the mapped value of "d" parameter ( and , , ). | |
| pm | is the mapped value of "p" parameter ( , ). | |
| t | is the point on the unit disk, where the charges should be evaluated. |
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.
| acr | is radial component of complex "a" parameter. | |
| acf | is polar angle of complex "a" parameter. | |
| cm | is the mapped value of "c" parameter ( , ). | |
| dm | is the mapped value of "d" parameter ( and , , ). | |
| pm | is the mapped value of "p" parameter ( , ). |
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.
| 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. |
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.
| acr | is radial component of complex "a" parameter. | |
| acf | is polar angle of complex "a" parameter. | |
| cm | is the mapped value of "c" parameter ( , ). | |
| dm | is the mapped value of "d" parameter ( and , , ). | |
| pm | is the mapped value of "p" parameter ( , ). | |
| 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. |
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).
| g | aspect ratio of the particle. |
References nanomagn::mesh::calculateNearIntMat(), and nanomagn::group::precalcTaylor().
1.6.3