Kaynağa Gözat

More wrapper work

master
Trevor Irons 5 yıl önce
ebeveyn
işleme
1a0aa0a20c
1 değiştirilmiş dosya ile 65 ekleme ve 1 silme
  1. 65
    1
      Modules/FDEM1D/python/pyFDEM1D.cpp

+ 65
- 1
Modules/FDEM1D/python/pyFDEM1D.cpp Dosyayı Görüntüle

@@ -57,7 +57,8 @@ PYBIND11_MODULE(FDEM1D, m) {
57 57
         // accessors
58 58
         .def("GetCurrent", &Lemma::WireAntenna::GetCurrent, "Returns the current of the transmitter in amps")
59 59
         .def("GetPoints", &Lemma::WireAntenna::GetPoints, "Returns the points defining the transmitter")
60
-        .def("GetNumberOfDipoles", &Lemma::WireAntenna::GetNumberOfDipoles, "Returns the number of dipoles defining the transmitter")
60
+        .def("GetNumberOfDipoles", &Lemma::WireAntenna::GetNumberOfDipoles,
61
+            "Returns the number of dipoles defining the transmitter")
61 62
         .def("GetNumberOfFrequencies", &Lemma::WireAntenna::GetNumberOfFrequencies,
62 63
             "Returns the number of frequencies for the transmitter")
63 64
         .def("IsHorizontallyPlanar", &Lemma::WireAntenna::IsHorizontallyPlanar, "Returns true if the transmitter is flat")
@@ -144,6 +145,54 @@ PYBIND11_MODULE(FDEM1D, m) {
144 145
         // accessors
145 146
         .def("GetName", &Lemma::LayeredEarthEM::GetName, "Returns the name of the class")
146 147
 
148
+        .def("GetLayerConductivity", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerConductivity),
149
+            "Returns the conductivity of all layers")
150
+        .def("GetLayerConductivity1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerConductivity),
151
+            "Returns the conductivity of the specified layer")
152
+
153
+        .def("GetLayerSusceptibility", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerSusceptibility),
154
+            "Returns the susceptibility of all layers")
155
+        .def("GetLayerSusceptibility1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerSusceptibility),
156
+            "Returns the susceptibilty of the specified layer")
157
+        .def("GetLayerLowFreqSusceptibility", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerLowFreqSusceptibility),
158
+            "Returns the low frequqncy permitivity of all layers")
159
+        .def("GetLayerLowFreqSusceptibility1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerLowFreqSusceptibility),
160
+            "Returns the low frequency permitivity of the specified layer")
161
+        .def("GetLayerHighFreqSusceptibility", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerHighFreqSusceptibility),
162
+            "Returns the low frequency permitivity of all layers")
163
+        .def("GetLayerHighFreqSusceptibility1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerHighFreqSusceptibility),
164
+            "Returns the low frequency permitivity of the specified layer")
165
+        .def("GetLayerTauSusceptibility", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerTauSusceptibility),
166
+            "Returns the tau permitivity of all layers")
167
+        .def("GetLayerTauSusceptibility1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerTauSusceptibility),
168
+            "Returns the tau permitivity of the specified layer")
169
+        .def("GetLayerBreathSusceptibility", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerBreathSusceptibility),
170
+            "Returns the breth permitivity of all layers")
171
+        .def("GetLayerBreathSusceptibility1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerBreathSusceptibility),
172
+            "Returns the breath permitivity of the specified layer")
173
+
174
+        .def("GetLayerPermitivity", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerPermitivity),
175
+            "Returns the permitivity of all layers")
176
+        .def("GetLayerPermitivity1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerPermitivity),
177
+            "Returns the permitivity of the specified layer")
178
+        .def("GetLayerLowFreqPermitivity", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerLowFreqPermitivity),
179
+            "Returns the low frequqncy permitivity of all layers")
180
+        .def("GetLayerLowFreqPermitivity1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerLowFreqPermitivity),
181
+            "Returns the low frequency permitivity of the specified layer")
182
+        .def("GetLayerHighFreqPermitivity", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerHighFreqPermitivity),
183
+            "Returns the low frequency permitivity of all layers")
184
+        .def("GetLayerHighFreqPermitivity1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerHighFreqPermitivity),
185
+            "Returns the low frequency permitivity of the specified layer")
186
+        .def("GetLayerTauPermitivity", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerTauPermitivity),
187
+            "Returns the tau permitivity of all layers")
188
+        .def("GetLayerTauPermitivity1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerTauPermitivity),
189
+            "Returns the tau permitivity of the specified layer")
190
+        .def("GetLayerBreathPermitivity", py::overload_cast<>(&Lemma::LayeredEarthEM::GetLayerBreathPermitivity),
191
+            "Returns the breth permitivity of all layers")
192
+        .def("GetLayerBreathPermitivity1", py::overload_cast<const int&>(&Lemma::LayeredEarthEM::GetLayerBreathPermitivity),
193
+            "Returns the breath permitivity of the specified layer")
194
+
195
+
147 196
         // modifiers
148 197
         .def("SetNumberOfLayers", &Lemma::LayeredEarthEM::SetNumberOfLayers, "Sets the number of layers in the model")
149 198
         .def("SetLayerConductivity", py::overload_cast< const Lemma::VectorXcr& >(&Lemma::LayeredEarthEM::SetLayerConductivity),
@@ -153,6 +202,21 @@ PYBIND11_MODULE(FDEM1D, m) {
153 202
         .def("SetLayerThickness", &Lemma::LayeredEarthEM::SetLayerThickness,
154 203
             "Sets the thickness of layers, excluding the air and bottom which are infinite")
155 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
+
156 220
         // methods
157 221
         .def("EvaluateColeColeModel", &Lemma::LayeredEarthEM::EvaluateColeColeModel,
158 222
             "Calculates complex resistivity based on cole-cole parameters")

Loading…
İptal
Kaydet