|
@@ -1,22 +1,64 @@
|
|
|
<template>
|
|
|
<div class="row items-baseline">
|
|
|
- <div class="col-xs-12 col-sm-auto text-weight-bold text-center q-px-md q-py-sm">
|
|
|
+ <div class="col-xs-12 col-sm-auto text-weight-bold text-center q-pr-md q-py-sm">
|
|
|
<div :style="flexRowTitleStyle">
|
|
|
- Host media
|
|
|
+ Plot
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="col-xs-grow col-sm">
|
|
|
- <div class="row justify-xs-center justify-sm-start items-center">
|
|
|
|
|
|
- <div class="col-auto" ><input-with-units
|
|
|
- v-model:input-result="hostIndex"
|
|
|
+ <div class="row justify-center items-baseline">
|
|
|
+ <div class="col-auto text-center q-py-xs q-pr-md">
|
|
|
+ <div :style="flexRowTitleStyle" >
|
|
|
+ relative size
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="col-xs-grow col-sm">
|
|
|
+ <div class="row justify-xs-center justify-sm-start items-center">
|
|
|
+ <input-with-units
|
|
|
+ v-model:input-result="relativePlotSize"
|
|
|
v-model:is-showing-help="isShowingHelpForInputWithUnits"
|
|
|
- :initial-expression="hostIndex.toString()"
|
|
|
- title="Re(n)"
|
|
|
+ :initial-expression="relativePlotSize.toString()"
|
|
|
+ title="x / 2R"
|
|
|
units=""
|
|
|
- /></div>
|
|
|
-
|
|
|
+ /></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row justify-center items-baseline">
|
|
|
+ <div class="col-auto text-center q-py-xs q-pr-md">
|
|
|
+ <div :style="flexRowTitleStyle" >
|
|
|
+ resolution
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="col-xs-grow col-sm">
|
|
|
+ <div class="row justify-xs-center justify-sm-start items-center">
|
|
|
+ <input-with-units
|
|
|
+ v-model:input-result="plotSideResolution"
|
|
|
+ v-model:is-showing-help="isShowingHelpForInputWithUnits"
|
|
|
+ :initial-expression="plotSideResolution.toString()"
|
|
|
+ title="points"
|
|
|
+ units=""
|
|
|
+ /></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="q-ma-xs"/>
|
|
|
+ <div class="row justify-center items-center">
|
|
|
+ <div class="col-auto text-center q-py-xs q-pr-md">
|
|
|
+ <div :style="flexRowTitleStyle" >
|
|
|
+ cross-section
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="col-xs-grow col-sm">
|
|
|
+ <div class="row justify-xs-center justify-sm-start items-center">
|
|
|
+ <div class="q-gutter-md q-py-sm q-px-xs">
|
|
|
+ <q-radio v-model="crossSection" dense size='sm' :val="nearFieldType.both" :label="nearFieldType.both" />
|
|
|
+ <q-radio v-model="crossSection" dense size='sm' :val="nearFieldType.Ek" :label="nearFieldType.Ek" />
|
|
|
+ <q-radio v-model="crossSection" dense size='sm' :val="nearFieldType.Hk" :label="nearFieldType.Hk" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -29,6 +71,7 @@ import {
|
|
|
import { useStore } from 'src/store'
|
|
|
import InputWithUnits from 'components/InputWithUnits.vue'
|
|
|
import { flexRowTitleStyle } from 'components/config'
|
|
|
+import { nearFieldType } from 'src/store/simulation-setup/state';
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
|
@@ -43,12 +86,28 @@ export default defineComponent({
|
|
|
set: val => $store.commit('guiRuntime/setIsShowingHelpForInputWithUnits', val)
|
|
|
})
|
|
|
|
|
|
- const hostIndex = computed({
|
|
|
- get: () => $store.state.simulationSetup.gui.hostIndex,
|
|
|
- set: val => $store.commit('simulationSetup/setHostIndex', val)
|
|
|
+ const crossSection = computed({
|
|
|
+ get: () => $store.state.simulationSetup.gui.nearFieldSetup.crossSection,
|
|
|
+ set: val => $store.commit('simulationSetup/setNearFieldCrossSection', val)
|
|
|
+ })
|
|
|
+
|
|
|
+ const relativePlotSize = computed({
|
|
|
+ get: () => $store.state.simulationSetup.gui.nearFieldSetup.relativePlotSize,
|
|
|
+ set: val => $store.commit('simulationSetup/setNearFieldRelativePlotSize', val)
|
|
|
+ })
|
|
|
+
|
|
|
+ const maxComputeTime = computed({
|
|
|
+ get: () => $store.state.simulationSetup.gui.nearFieldSetup.maxComputeTime,
|
|
|
+ set: val => $store.commit('simulationSetup/setNearFieldMaxComputeTime', val)
|
|
|
+ })
|
|
|
+
|
|
|
+ const plotSideResolution = computed({
|
|
|
+ get: () => $store.state.simulationSetup.gui.nearFieldSetup.plotSideResolution,
|
|
|
+ set: val => $store.commit('simulationSetup/setNearFieldPlotSideResolution', val)
|
|
|
})
|
|
|
|
|
|
- return { hostIndex, isShowingHelpForInputWithUnits, flexRowTitleStyle}
|
|
|
+ return { crossSection, isShowingHelpForInputWithUnits, flexRowTitleStyle,
|
|
|
+ relativePlotSize, maxComputeTime, plotSideResolution, nearFieldType}
|
|
|
},
|
|
|
})
|
|
|
</script>
|