Skip to content

Commit

Permalink
Fem: Electrostaticc
Browse files Browse the repository at this point in the history
  • Loading branch information
marioalexis84 committed Jan 20, 2025
1 parent 7b75915 commit 037147b
Show file tree
Hide file tree
Showing 4 changed files with 204 additions and 252 deletions.
250 changes: 125 additions & 125 deletions src/Mod/Fem/Gui/Resources/ui/ElectrostaticPotential.ui
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<property name="title">
<string></string>
</property>
<layout class="QGridLayout" name="gridLayout_4">
<layout class="QFormLayout" name="gridLayout_4">
<item row="0" column="0">
<widget class="QLabel" name="lbl_boundary_condition">
<property name="text">
Expand All @@ -41,40 +41,124 @@
<property name="checkable">
<bool>false</bool>
</property>
<layout class="QGridLayout" name="gridLayout_6">
<layout class="QFormLayout" name="gridLayout">
<item row="0" column="0">
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QCheckBox" name="ckb_potential">
<property name="text">
<string>Potential:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="Gui::QuantitySpinBox" name="qsb_potential">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Electric potential</string>
</property>
<property name="keyboardTracking">
<bool>true</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">V</string>
</property>
<property name="singleStep">
<double>1.000000000000000</double>
</property>
<property name="value">
<double>1.000000000000000</double>
</property>
</widget>
</item>
</layout>
<widget class="QCheckBox" name="ckb_potential">
<property name="text">
<string>Potential:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="Gui::QuantitySpinBox" name="qsb_potential">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Electric potential</string>
</property>
<property name="keyboardTracking">
<bool>true</bool>
</property>
<property name="unit" stdset="0">
<string notr="true">V</string>
</property>
<property name="singleStep">
<double>1.000000000000000</double>
</property>
<property name="value">
<double>1.000000000000000</double>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QCheckBox" name="ckb_electric_infinity">
<property name="enabled">
<bool>true</bool>
</property>
<property name="toolTip">
<string>Whether the boundary condition defines a farfield potential</string>
</property>
<property name="text">
<string>Electric Infinity</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QCheckBox" name="ckb_potential_constant">
<property name="toolTip">
<string>Whether the boundary condition defines a constant potential</string>
</property>
<property name="text">
<string>Potential Constant</string>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QCheckBox" name="ckb_capacitance_body">
<property name="text">
<string>Capacitance Body:</string>
</property>
<property name="toolTip">
<string>Enabled by 'Calculate Capacity Matrix' in Electrostatic equation</string>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="QSpinBox" name="spb_capacitance_body">
<property name="toolTip">
<string>Counter of the body (or face) with a capacitance</string>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="value">
<number>1</number>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="2" column="0">
<widget class="QGroupBox" name="gb_neumann">
<property name="title">
<string>Neumann</string>
</property>
<layout class="QFormLayout" name="gridLayout_8">
<item row="0" column="0">
<widget class="QLabel" name="surfacechargedensityLbl">
<property name="text">
<string>Surface Charge Density:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="Gui::QuantitySpinBox" name="qsb_surface_charge_density">
<property name="toolTip">
<string>Surface charge density</string>
</property>
<property name="unit" stdset="0">
<string notr="true">C/m^2</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>


<item row="3" column="0">
<widget class="QGroupBox" name="gb_electromagnetic">
<property name="title">
<string>Electromagnetic</string>
</property>
<layout class="QGridLayout" name="gridLayout_9">


<item row="1" column="0">
<widget class="QCheckBox" name="vectorFieldBox">
<property name="toolTip">
Expand All @@ -90,6 +174,9 @@
</item>
<item row="2" column="0">
<widget class="QGroupBox" name="vectorFieldGB">
<property name="title">
<string>Electromagnetic Potential</string>
</property>
<property name="enabled">
<bool>true</bool>
</property>
Expand All @@ -98,7 +185,7 @@
with a harmonic/oscillating driving force</string>
</property>
<property name="checkable">
<bool>false</bool>
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
Expand Down Expand Up @@ -147,10 +234,10 @@ with a harmonic/oscillating driving force</string>
<item row="1" column="2">
<widget class="Gui::QuantitySpinBox" name="qsb_av_re">
<property name="enabled">
<bool>false</bool>
<bool>true</bool>
</property>
<property name="toolTip">
<string>Potential as specified above</string>
<string>Real part of scalar potential</string>
</property>
<property name="readOnly">
<bool>true</bool>
Expand Down Expand Up @@ -432,98 +519,11 @@ Note: has no effect if a solid was selected</string>
</layout>
</widget>
</item>
<item row="3" column="0">
<widget class="QCheckBox" name="ckb_electric_infinity">
<property name="enabled">
<bool>true</bool>
</property>
<property name="toolTip">
<string>Whether the boundary condition defines a farfield potential</string>
</property>
<property name="text">
<string>Farfield / Electric infinity</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QCheckBox" name="ckb_potential_constant">
<property name="toolTip">
<string>Whether the boundary condition defines a constant potential</string>
</property>
<property name="text">
<string>Potential Constant</string>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QCheckBox" name="ckb_electric_forcecalculation">
<property name="toolTip">
<string>Whether the boundary condition is for the electric force</string>
</property>
<property name="text">
<string>Calculate Electric Force</string>
</property>
</widget>
</item>
<item row="6" column="0">
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<widget class="QCheckBox" name="ckb_capacitance_body">
<property name="text">
<string>Capacitance Body:</string>
</property>
<property name="toolTip">
<string>Enabled by 'Calculate Capacity Matrix' in Electrostatic equation</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="spb_capacitance_body">
<property name="toolTip">
<string>Counter of the body (or face) with a capacitance</string>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="value">
<number>1</number>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item row="2" column="0">
<widget class="QGroupBox" name="gb_neumann">
<property name="title">
<string>Neumann</string>
</property>
<layout class="QGridLayout" name="gridLayout_8">
<item row="0" column="0">
<widget class="QLabel" name="surfacechargedensityLbl">
<property name="text">
<string>Surface Charge Density:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="Gui::QuantitySpinBox" name="qsb_surface_charge_density">
<property name="toolTip">
<string>Surface charge density</string>
</property>
<property name="unit" stdset="0">
<string notr="true">C/m^2</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>


</layout>
</widget>
<customwidgets>
Expand Down
Loading

0 comments on commit 037147b

Please sign in to comment.