Surface NMR forward modelling
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pyMerlin.cpp 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. /* This file is part of Lemma, a geophysical modelling and inversion API.
  2. * More information is available at http://lemmasoftware.org
  3. */
  4. /* This Source Code Form is subject to the terms of the Mozilla Public
  5. * License, v. 2.0. If a copy of the MPL was not distributed with this
  6. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  7. */
  8. /**
  9. * @file
  10. * @date 22/04/19 14:06:32
  11. * @version $Id$
  12. * @author Trevor Irons (ti)
  13. * @email Trevor.Irons@utah.edu
  14. * @copyright Copyright (c) 2019, University of Utah
  15. * @copyright Copyright (c) 2019, Lemma Software, LLC
  16. */
  17. #include <pybind11/pybind11.h>
  18. #include <pybind11/iostream.h>
  19. #include <pybind11/stl.h>
  20. #include <pybind11/complex.h>
  21. #include <pybind11/eigen.h>
  22. #include "Merlin"
  23. namespace py = pybind11;
  24. PYBIND11_MODULE(Merlin, m) {
  25. py::add_ostream_redirect(m, "ostream_redirect");
  26. m.doc() = "Python binding of Lemma::Merlin, additional details can be found at https://lemmasoftware.org";
  27. py::class_<Lemma::KernelV0, std::shared_ptr<Lemma::KernelV0> > KernelV0(m, "KernelV0");
  28. // lifecycle
  29. KernelV0.def(py::init(&Lemma::KernelV0::NewSP))
  30. .def_static("DeSerialize", py::overload_cast<const std::string&>(&Lemma::KernelV0::DeSerialize),
  31. "Construct object from yaml representation")
  32. // print
  33. .def("Serialize", &Lemma::KernelV0::Print, "YAML representation of the class")
  34. .def("__repr__", &Lemma::KernelV0::Print)
  35. // modifiers
  36. .def("PushCoil", &Lemma::KernelV0::PushCoil, "Adds a coil to the sNMR instrument")
  37. .def("SetLayeredEarthEM", &Lemma::KernelV0::SetLayeredEarthEM, "Sets the EM model used in kernel calculation")
  38. .def("SetIntegrationSize", &Lemma::KernelV0::SetIntegrationSize, "Sets the size of the volume to integrate the kernel")
  39. .def("SetIntegrationOrigin", &Lemma::KernelV0::SetIntegrationOrigin, "Sets the origin of the integration volume")
  40. .def("SetPulseCurrent", &Lemma::KernelV0::SetPulseCurrent, "Sets the current of the pulses")
  41. .def("SetTemperature", &Lemma::KernelV0::SetTemperature, "Sets the temperature, in K")
  42. .def("SetTolerance", &Lemma::KernelV0::SetTolerance, "Sets the tolerance used in octree splitting")
  43. .def("SetMinLevel", &Lemma::KernelV0::SetMinLevel, "Sets the minimum leaf level used in octree splitting")
  44. .def("SetMaxLevel", &Lemma::KernelV0::SetMaxLevel, "Sets the maximum leaf level used in octree splitting")
  45. .def("SetPulseDuration", &Lemma::KernelV0::SetPulseDuration, "Sets the duration of the pulse")
  46. .def("SetDepthLayerInterfaces", &Lemma::KernelV0::SetDepthLayerInterfaces, "Sets the layer depth interfaces")
  47. .def("SetHankelTransformType", &Lemma::KernelV0::SetHankelTransformType, "Sets the Hankel transform type")
  48. .def("SetDf", &Lemma::KernelV0::SetDf, "Sets the transmitter offset frequncy in Hz, (Txf - Lf)")
  49. // accessors
  50. .def("GetName", &Lemma::KernelV0::GetName, "Returns the name of the class")
  51. .def("GetSigmaModel", &Lemma::KernelV0::GetSigmaModel, "Returns the conductivity model")
  52. .def("GetKernel", &Lemma::KernelV0::GetKernel, "Returns the imaging kernel in matrix form")
  53. .def("GetTolerance", &Lemma::KernelV0::GetTolerance, "Returns the tolerance which was used to construct the kernel")
  54. .def("GetInterfaces", &Lemma::KernelV0::GetInterfaces, "Returns the layer interfaces")
  55. .def("GetPulseCurrent", &Lemma::KernelV0::GetPulseCurrent, "Returns the pulse current")
  56. .def("GetPulseDuration", &Lemma::KernelV0::GetPulseDuration, "Returns the length of the pulse moment")
  57. .def("GetDf", &Lemma::KernelV0::GetDf, "Returns the transmitter offset in Hz")
  58. // operations
  59. .def("CalculateK0", &Lemma::KernelV0::CalculateK0, "Calculates an intial amplitude kernel")
  60. //.def("AlignWithAkvoDataset", &Lemma::KernelV0::AlignWithAkvoDataset, "Aligns the kernel parameters with a dataset")
  61. .def("AlignWithAkvoDataset", py::overload_cast< const std::string& >(&Lemma::KernelV0::AlignWithAkvoDataset), "Aligns Kernel pulse with specified dataset file")
  62. ;
  63. //
  64. // py::class_<Lemma::PolygonalWireAntenna, std::shared_ptr<Lemma::PolygonalWireAntenna> > PolygonalWireAntenna(m,
  65. // "PolygonalWireAntenna", KernelV0);
  66. //
  67. // // lifecycle
  68. // PolygonalWireAntenna.def(py::init(&Lemma::PolygonalWireAntenna::NewSP))
  69. // .def_static("DeSerialize", py::overload_cast<const std::string&>(&Lemma::PolygonalWireAntenna::DeSerialize),
  70. // "Construct object from yaml representation")
  71. //
  72. // // print
  73. // .def("__repr__", &Lemma::PolygonalWireAntenna::Print)
  74. // .def("Serialize", &Lemma::PolygonalWireAntenna::Print, "YAML representation of the class")
  75. //
  76. // // accessors
  77. // .def("GetName", &Lemma::PolygonalWireAntenna::GetName, "Returns the name of the class")
  78. //
  79. // // operations
  80. // .def("ApproximateWithElectricDipoles", &Lemma::PolygonalWireAntenna::ApproximateWithElectricDipoles,
  81. // "Approximates loop with series of electric dipoles around loop")
  82. //
  83. // // modifiers
  84. // .def("SetMinDipoleRatio", &Lemma::PolygonalWireAntenna::SetMinDipoleRatio,
  85. // "Sets the minimum dipole ratio use, smaller values increase precision")
  86. // .def("SetMinDipoleMoment", &Lemma::PolygonalWireAntenna::SetMinDipoleMoment,
  87. // "Sets the minimum dipole moment which will be used, smaller values increase precision and computational time")
  88. // .def("SetMaxDipoleMoment", &Lemma::PolygonalWireAntenna::SetMaxDipoleMoment,
  89. // "Sets the maximum dipole moment which will be used, smaller values increase precision and computational time")
  90. // ;
  91. //
  92. // py::class_<Lemma::DipoleSource, std::shared_ptr<Lemma::DipoleSource> > DipoleSource(m, "DipoleSource");
  93. //
  94. // // lifecycle
  95. // DipoleSource.def(py::init(&Lemma::DipoleSource::NewSP))
  96. // .def_static("DeSerialize", py::overload_cast<const std::string&>(&Lemma::DipoleSource::DeSerialize),
  97. // "Construct object from yaml representation")
  98. //
  99. // // print
  100. // .def("Serialize", &Lemma::DipoleSource::Print, "YAML representation of the class")
  101. // .def("__repr__", &Lemma::DipoleSource::Print)
  102. //
  103. // // accessors
  104. // .def("GetName", &Lemma::DipoleSource::GetName, "Returns the name of the class")
  105. // .def("GetNumberOfFrequencies", &Lemma::DipoleSource::GetNumberOfFrequencies,
  106. // "Returns the number of frequencies")
  107. // .def("GetFrequencies", &Lemma::DipoleSource::GetFrequencies, "Returns an array of frequencies")
  108. // .def("GetFrequency", &Lemma::DipoleSource::GetFrequency, "Returns the frequency of the argument index")
  109. // .def("GetAngularFrequency", &Lemma::DipoleSource::GetAngularFrequency,
  110. // "Returns the angular frequency of the argument index")
  111. // .def("GetPhase", &Lemma::DipoleSource::GetPhase, "Returns the phase of the dipole")
  112. // .def("GetMoment", &Lemma::DipoleSource::GetMoment, "Returns the moment of the dipole")
  113. // .def("GetLocation", py::overload_cast< >(&Lemma::DipoleSource::GetLocation), "Returns the location of the dipole")
  114. // .def("GetPolarisation", &Lemma::DipoleSource::GetPolarisation, "Returns the polarisation of the dipole")
  115. //
  116. // // modifiers
  117. // .def("SetLocation", py::overload_cast<const Lemma::Vector3r&> (&Lemma::DipoleSource::SetLocation),
  118. // "Sets the location of the dipole")
  119. // .def("SetPolarisation", py::overload_cast<const Lemma::Vector3r&> (&Lemma::DipoleSource::SetPolarisation),
  120. // "Sets the polarisation of the dipole")
  121. // .def("SetType", &Lemma::DipoleSource::SetType, "Sets the type")
  122. // .def("SetMoment", &Lemma::DipoleSource::SetMoment, "Sets the moment of the dipole")
  123. // .def("SetPhase", &Lemma::DipoleSource::SetPhase, "Sets the phase of the dipole")
  124. // .def("SetNumberOfFrequencies", &Lemma::DipoleSource::SetNumberOfFrequencies,
  125. // "Sets the number of frequencies to calculate for the dipole")
  126. // .def("SetFrequency", &Lemma::DipoleSource::SetFrequency,
  127. // "Sets a single frequency, first argument is index, second argument is frequency")
  128. // .def("SetFrequencies", &Lemma::DipoleSource::SetFrequencies,
  129. // "Sets all frequencies, argument is numpy array of frequencies")
  130. // ;
  131. //
  132. // py::class_<Lemma::LayeredEarthEM, std::shared_ptr<Lemma::LayeredEarthEM> >
  133. // LayeredEarthEM(m, "LayeredEarthEM");
  134. //
  135. // // lifecycle
  136. // LayeredEarthEM.def(py::init(&Lemma::LayeredEarthEM::NewSP))
  137. // .def_static("DeSerialize", py::overload_cast<const std::string&>
  138. // (&Lemma::LayeredEarthEM::DeSerialize),"Construct object from yaml representation")
  139. //
  140. // // print
  141. // .def("Serialize", &Lemma::LayeredEarthEM::Print, "YAML representation of the class")
  142. // .def("__repr__", &Lemma::LayeredEarthEM::Print)
  143. //
  144. // // accessors
  145. // .def("GetName", &Lemma::LayeredEarthEM::GetName, "Returns the name of the class")
  146. //
  147. // .def("GetLayerConductivity", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerConductivity),
  148. // "Returns the conductivity of all layers")
  149. // .def("GetLayerConductivity1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerConductivity),
  150. // "Returns the conductivity of the specified layer")
  151. //
  152. // .def("GetLayerSusceptibility", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerSusceptibility),
  153. // "Returns the susceptibility of all layers")
  154. // .def("GetLayerSusceptibility1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerSusceptibility),
  155. // "Returns the susceptibilty of the specified layer")
  156. // .def("GetLayerLowFreqSusceptibility", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerLowFreqSusceptibility),
  157. // "Returns the low frequqncy permitivity of all layers")
  158. // .def("GetLayerLowFreqSusceptibility1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerLowFreqSusceptibility),
  159. // "Returns the low frequency permitivity of the specified layer")
  160. // .def("GetLayerHighFreqSusceptibility", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerHighFreqSusceptibility),
  161. // "Returns the low frequency permitivity of all layers")
  162. // .def("GetLayerHighFreqSusceptibility1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerHighFreqSusceptibility),
  163. // "Returns the low frequency permitivity of the specified layer")
  164. // .def("GetLayerTauSusceptibility", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerTauSusceptibility),
  165. // "Returns the tau permitivity of all layers")
  166. // .def("GetLayerTauSusceptibility1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerTauSusceptibility),
  167. // "Returns the tau permitivity of the specified layer")
  168. // .def("GetLayerBreathSusceptibility", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerBreathSusceptibility),
  169. // "Returns the breth permitivity of all layers")
  170. // .def("GetLayerBreathSusceptibility1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerBreathSusceptibility),
  171. // "Returns the breath permitivity of the specified layer")
  172. //
  173. // .def("GetLayerPermitivity", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerPermitivity),
  174. // "Returns the permitivity of all layers")
  175. // .def("GetLayerPermitivity1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerPermitivity),
  176. // "Returns the permitivity of the specified layer")
  177. // .def("GetLayerLowFreqPermitivity", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerLowFreqPermitivity),
  178. // "Returns the low frequqncy permitivity of all layers")
  179. // .def("GetLayerLowFreqPermitivity1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerLowFreqPermitivity),
  180. // "Returns the low frequency permitivity of the specified layer")
  181. // .def("GetLayerHighFreqPermitivity", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerHighFreqPermitivity),
  182. // "Returns the low frequency permitivity of all layers")
  183. // .def("GetLayerHighFreqPermitivity1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerHighFreqPermitivity),
  184. // "Returns the low frequency permitivity of the specified layer")
  185. // .def("GetLayerTauPermitivity", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerTauPermitivity),
  186. // "Returns the tau permitivity of all layers")
  187. // .def("GetLayerTauPermitivity1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerTauPermitivity),
  188. // "Returns the tau permitivity of the specified layer")
  189. // .def("GetLayerBreathPermitivity", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerBreathPermitivity),
  190. // "Returns the breth permitivity of all layers")
  191. // .def("GetLayerBreathPermitivity1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerBreathPermitivity),
  192. // "Returns the breath permitivity of the specified layer")
  193. //
  194. //
  195. // // modifiers
  196. // .def("SetNumberOfLayers", &Lemma::LayeredEarthEM::SetNumberOfLayers,
  197. // "Sets the number of layers in the model")
  198. // .def("SetLayerConductivity", py::overload_cast< const Lemma::VectorXcr& >(&Lemma::LayeredEarthEM::SetLayerConductivity),
  199. // "Sets the conductivity of the layers, the input is a complex array of conductivity")
  200. // .def("SetLayerConductivity1", py::overload_cast< const int&, const Lemma::Complex& >(&Lemma::LayeredEarthEM::SetLayerConductivity),
  201. // "Sets the conductivity of a single layer, the first input is the layer index, and the secondinput is a complex conductivity")
  202. // .def("SetLayerThickness", &Lemma::LayeredEarthEM::SetLayerThickness,
  203. // "Sets the thickness of layers, excluding the air and bottom which are infinite")
  204. //
  205. // .def("SetLayerHighFreqSusceptibility", &Lemma::LayeredEarthEM::SetLayerHighFreqSusceptibility,
  206. // "Sets the high frequency susceptibility for Cole-COle model")
  207. // .def("SetLayerLowFreqSusceptibility", &Lemma::LayeredEarthEM::SetLayerLowFreqSusceptibility,
  208. // "Sets the low frequency susceptibility for Cole-COle model")
  209. // .def("SetLayerBreathSusceptibility", &Lemma::LayeredEarthEM::SetLayerBreathSusceptibility,
  210. // "Sets thesusceptibility breath for Cole-COle model")
  211. //
  212. // .def("SetLayerHighFreqPermitivity", &Lemma::LayeredEarthEM::SetLayerHighFreqPermitivity,
  213. // "Sets the high frequency permitivity for Cole-COle model")
  214. // .def("SetLayerLowFreqPermitivity", &Lemma::LayeredEarthEM::SetLayerLowFreqPermitivity,
  215. // "Sets the low frequency permitivity for Cole-COle model")
  216. // .def("SetLayerBreathPermitivity", &Lemma::LayeredEarthEM::SetLayerBreathPermitivity,
  217. // "Sets the permitivity breath for Cole-COle model")
  218. //
  219. //
  220. // // methods
  221. // .def("EvaluateColeColeModel", &Lemma::LayeredEarthEM::EvaluateColeColeModel,
  222. // "Calculates complex resistivity based on cole-cole parameters")
  223. // ;
  224. //
  225. // py::class_<Lemma::EMEarth1D, std::shared_ptr<Lemma::EMEarth1D> >
  226. // EMEarth1D(m, "EMEarth1D");
  227. //
  228. // // lifecycle
  229. // EMEarth1D.def(py::init(&Lemma::EMEarth1D::NewSP))
  230. // //.def_static("DeSerialize", py::overload_cast<const std::string&>
  231. // // (&Lemma::EMEarth1D::DeSerialize),"Construct object from yaml representation")
  232. //
  233. // // print
  234. // .def("Serialize", &Lemma::EMEarth1D::Print, "YAML representation of the class")
  235. // .def("__repr__", &Lemma::EMEarth1D::Print)
  236. //
  237. // // accessors
  238. // .def("GetName", &Lemma::EMEarth1D::GetName, "Returns the name of the class")
  239. // .def("GetFieldPoints", &Lemma::EMEarth1D::GetFieldPoints, "Returns the FieldPoint class")
  240. //
  241. // // modifiers
  242. // .def("AttachWireAntenna", &Lemma::EMEarth1D::AttachWireAntenna,
  243. // "Sets the wire antenna to use for calculations")
  244. // .def("AttachDipoleSOurce", &Lemma::EMEarth1D::AttachDipoleSource,
  245. // "Sets a DipoleSource to use for calculations")
  246. // .def("AttachFieldPoints", &Lemma::EMEarth1D::AttachFieldPoints,
  247. // "Sets the FieldPoints to use for calculations")
  248. // .def("AttachLayeredEarthEM", &Lemma::EMEarth1D::AttachLayeredEarthEM,
  249. // "Sets the LayeredEarthEM to use for calculations")
  250. //
  251. // .def("SetFieldToCalculate", &Lemma::EMEarth1D::SetFieldsToCalculate,
  252. // "Sets which fields to calculate")
  253. // .def("SetHankelTransformMethod", &Lemma::EMEarth1D::SetHankelTransformMethod,
  254. // "Sets which Hankel transform to use")
  255. // .def("SetTxRxMode", &Lemma::EMEarth1D::SetTxRxMode,
  256. // "Sets the TxRx mode flag")
  257. //
  258. // //methods
  259. // #ifdef KIHALEE_EM1D
  260. // .def("MakeCalc", &Lemma::EMEarth1D::MakeCalc, "Calls KiHa Lee's EM1D FORTRAN77 code")
  261. // #endif
  262. //
  263. // .def("MakeCalc3", &Lemma::EMEarth1D::MakeCalc3, "Native Lemma EM calculation")
  264. // .def("CalculateWireAntennaFields", &Lemma::EMEarth1D::CalculateWireAntennaFields,
  265. // "Native Lemma calculation of a wire antenna")
  266. // ;
  267. //
  268. // py::class_<Lemma::FieldPoints, std::shared_ptr<Lemma::FieldPoints> >
  269. // FieldPoints(m, "FieldPoints");
  270. //
  271. // // lifecycle
  272. // FieldPoints.def(py::init(&Lemma::FieldPoints::NewSP))
  273. // .def_static("DeSerialize", py::overload_cast<const std::string&>
  274. // (&Lemma::FieldPoints::DeSerialize),"Construct object from yaml representation")
  275. //
  276. // // print
  277. // .def("Serialize", &Lemma::FieldPoints::Print, "YAML representation of the class")
  278. // .def("__repr__", &Lemma::FieldPoints::Print)
  279. //
  280. // // modifiers
  281. // .def("SetNumberOfPoints", &Lemma::FieldPoints::SetNumberOfPoints,
  282. // "Sets the number of locations to make calculations on.")
  283. // .def("SetLocation", py::overload_cast< const int&, const Lemma::Vector3r& >
  284. // (&Lemma::FieldPoints::SetLocation), "Sets the location of the index-specified point." )
  285. // .def("SetLocation", py::overload_cast< const int&,
  286. // const Lemma::Real&, const Lemma::Real&, const Lemma::Real& >
  287. // (&Lemma::FieldPoints::SetLocation),
  288. // "Sets the location of the index-specified point with the three coordinates")
  289. //
  290. // // accessors
  291. // .def("GetNumberOfPoints", &Lemma::FieldPoints::GetNumberOfPoints,
  292. // "Returns the number of locations to make calculations on.")
  293. // .def("GetLocations", &Lemma::FieldPoints::GetLocations,
  294. // "Returns the locations which calculations are made on.")
  295. // .def("GetLocationsMat", &Lemma::FieldPoints::GetLocationsMat,
  296. // "Returns a matrix of the locations which calculations are made on.")
  297. // .def("GetLocation", &Lemma::FieldPoints::GetLocation,
  298. // "Returns the location of the specified index.")
  299. // .def("GetLocationX", &Lemma::FieldPoints::GetLocationX,
  300. // "Returns the northing (x) location of the specified index.")
  301. // .def("GetLocationY", &Lemma::FieldPoints::GetLocationY,
  302. // "Returns the easting (y) location of the specified index.")
  303. // .def("GetLocationZ", &Lemma::FieldPoints::GetLocationZ,
  304. // "Returns the altitude/depth (z) location of the specified index.")
  305. // .def("GetEfield", py::overload_cast< > (&Lemma::FieldPoints::GetEfield),
  306. // "Returns the electric field for all frequencies.")
  307. // .def("GetEfield", py::overload_cast< const int& > (&Lemma::FieldPoints::GetEfield),
  308. // "Returns the electric field for the specified frequency index.")
  309. // .def("GetEfield", py::overload_cast< const int&, const int& > (&Lemma::FieldPoints::GetEfield),
  310. // "Returns the electric field for the specified frequency and location index.")
  311. // .def("GetEfieldMat", &Lemma::FieldPoints::GetEfieldMat,
  312. // "Returns the electric field for the specified frequency.")
  313. // .def("GetHfield", py::overload_cast< > (&Lemma::FieldPoints::GetHfield),
  314. // "Returns the H field for all frequencies.")
  315. // .def("GetHfield", py::overload_cast< const int& > (&Lemma::FieldPoints::GetHfield),
  316. // "Returns the H field for the specified frequency index.")
  317. // .def("GetHfield", py::overload_cast< const int&, const int& > (&Lemma::FieldPoints::GetHfield),
  318. // "Returns the H field for the specified frequency and location index.")
  319. // //.def("GetBfield", py::overload_cast< const int&, const int& > (&Lemma::FieldPoints::GetBfield),
  320. // // "Returns the magnetic (B) field for the specified frequency and location index.")
  321. // .def("GetHfieldMat", &Lemma::FieldPoints::GetHfieldMat,
  322. // "Returns the H field for the specified frequency.")
  323. // .def("GetMask", &Lemma::FieldPoints::MaskPoint, "Return the mask boolean value for the specified index")
  324. //
  325. // // methods
  326. // .def("ClearFields", &Lemma::FieldPoints::ClearFields, "Clears calculated fields")
  327. // .def("MaskPoint", &Lemma::FieldPoints::MaskPoint, "Masks the index resulting in no calculation")
  328. // .def("UnMaskPoint", &Lemma::FieldPoints::UnMaskPoint, "Unmasks the index resulting in a calculation")
  329. //
  330. // ;
  331. }