Skip to content
Snippets Groups Projects
Commit eebdf824 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

BC type was inverted (fixes #2)

parent 7b3c3d2b
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment