model Ground "Magnetic ground"
FundamentalWave.Interfaces.PositiveMagneticPort port_p "Complex magnetic port"
annotation (Placement(transformation(extent = {
{-10, 90},
{10, 110}})));
equation
if Connections.isRoot(port_p.reference) then
port_p.reference.gamma = 0;
end if;
Connections.potentialRoot(port_p.reference, 254);
port_p.V_m = Complex(0, 0);
annotation (
Diagram(
coordinateSystem(
preserveAspectRatio = false,
extent = {
{-100, -100},
{100, 100}}),
graphics = {
Line(
points = {
{0, 100},
{0, 50}},
color = {255, 170, 85}),
Line(
points = {
{-60, 50},
{60, 50}},
color = {255, 170, 85}),
Line(
points = {
{-40, 30},
{40, 30}},
color = {255, 170, 85}),
Line(
points = {
{-20, 10},
{20, 10}},
color = {255, 170, 85})}),
Icon(
coordinateSystem(
preserveAspectRatio = false,
extent = {
{-100, -100},
{100, 100}}),
graphics = {
Line(
points = {
{0, 100},
{0, 50}},
color = {255, 170, 85}),
Line(
points = {
{-60, 50},
{60, 50}},
color = {255, 170, 85}),
Line(
points = {
{-40, 30},
{40, 30}},
color = {255, 170, 85}),
Line(
points = {
{-20, 10},
{20, 10}},
color = {255, 170, 85}),
Text(
extent = {
{150, -10},
{-150, -50}},
lineColor = {0, 0, 255},
textString = "%name")}),
Documentation(info = "<html>\n\n<p>\nGrounding of the complex magnetic potential. Each magnetic circuit has to be grounded at least one point of the circuit.\n</p>\n\n</html>"));
end Ground;