|
@@ -9,27 +9,27 @@ const actions: ActionTree<simulationSetupStateInterface, StateInterface> = {
|
|
|
const module = await nmiejs()
|
|
|
const nmie = new module.nmie()
|
|
|
commit('setNmie', nmie)
|
|
|
-
|
|
|
- if (state.nmie && !state.isNmieRunning) {
|
|
|
- commit('markNmieAsStarted')
|
|
|
- state.nmie.ClearTarget()
|
|
|
- const R = 100.0
|
|
|
- const reN = 4.0
|
|
|
- const imN = 0.01
|
|
|
- state.nmie.AddTargetLayerReIm(R, reN, imN)
|
|
|
- state.nmie.SetModeNmaxAndType(-1, -1)
|
|
|
- const WL = 800
|
|
|
- state.nmie.SetWavelength(WL)
|
|
|
- state.nmie.RunMieCalculation()
|
|
|
- console.log(state.nmie.GetQsca())
|
|
|
-
|
|
|
-
|
|
|
- state.nmie.RunFieldCalculationPolar(2, 2,
|
|
|
- 0.1, 1.5, 0, 3.1415, 0, 3.1415,
|
|
|
- 0)
|
|
|
- console.log('Field Eabs:', state.nmie.GetFieldEabs())
|
|
|
- commit('markNmieAsFinished')
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
if (state.nmie) {
|
|
|
commit('markNmieAsLoaded')
|
|
|
}
|