diff --git a/ElectrostaticsFloating/floating.pro b/ElectrostaticsFloating/floating.pro index cbe37d6f78f8d8018c90d2a0d05bbf4397f35213..040a4ee1db8f8e20387e3492f86cf81be76a6dcb 100644 --- a/ElectrostaticsFloating/floating.pro +++ b/ElectrostaticsFloating/floating.pro @@ -96,19 +96,21 @@ Constraint { { Name SetGlobalPotential; Type Assign; Case { /* Impose the potential regionwise on the different parts of - "Sur_Electrodes_Ele". No voltage is imposed to the Microstrip electrode - when the "Fixed charge" option is enabled (if MicrostripTypeBC != 0). */ + "Sur_Electrodes_Ele". The voltage is imposed to the Microstrip + electrode when the "Fixed voltage" option is enabled, i.e. if + MicrostripTypeBC == 0. */ { Region Ground; Value 0; } - If(!MicrostripTypeBC) - { Region Microstrip; Value MicrostripValueBC; } + If(MicrostripTypeBC == 0) + { Region Microstrip; Value MicrostripValueBC; } EndIf } } { Name SetArmatureCharge; Type Assign; Case { - /* Impose the charge if MicrostripTypeBC != 0 */ - If(MicrostripTypeBC) - { Region Microstrip; Value MicrostripValueBC; } + /* Impose the charge on the Microstrip electrode when the "Fixed charged" + option is enabled, i.e. if MicrostripTypeBC == 1. */ + If(MicrostripTypeBC == 1) + { Region Microstrip; Value MicrostripValueBC; } EndIf } }