I guess for Americans is more intuituve when voltage arrow points against direction of current on passive components like resistors.
OK, now I see where the problem is. If I type in Google english phrase kirchhoff's voltage law and do an image search, then majority of the results doesn't have voltage arrows in it (english speakers doesn't like voltage arrows) and when they do, they are highly inconsistent. Some are drawn with arrows pointing from + to -, some in the other way. But when I type for example german phrase 2. Kirchhoffsches Gesetz I get higly consistent results, where almost all images have volatge arrows in it and they are pointg the way I (and SPICE) suggest. Similar situation is when I do search in slovak or czech language. I guess for Americans is more intuituve when voltage arrow points against direction of current on passive components like resistors.
OK, now I see where the problem is. If I type in Google english phrase kirchhoff's voltage law and do an image search, then majority of the results doesn't have voltage arrows in it (english speakers doesn't like voltage arrows) and when they do, they are highly inconsistent. Some are drawn with arrows pointing from + to -, some in the other way. But when I type for example german phrase 2. Kirchhoffsches Gesetz I get higly consistent results, where almost all images have volatge arrows in it and they are pointg the way I (and SPICE) suggest. Similar situation is when I do search in slovak or czech language. I guess for Americans is more intuituve when voltage arrow points against direction of current on passive components like resistors.

Since the sign convention only deals with the directions of the variables and not with the direction of the actual current, it also applies to alternating current (AC) circuits, in which the direction of the voltage and current periodically reverses. In AC circuits, even though the voltage and current reverse direction, a "formal" direction of current flow and voltage polarity are defined by considering the voltage and current direction in the first half of the cycle "positive". During the second half of the AC cycle, in a resistive AC circuit, both the voltage and current in the device reverse direction, so the sign of the voltage and current reverse. Since the power is the product of voltage and current, the two sign reversals cancel each other, and the sign of the power flow is unchanged.
I've spent most of today going round in circles with the mesh analysis again having looked at a few videos including Daves. I now have it fairly clear that I draw clockwise arrows around each loop or mash or whatever you call the damn thing and make any voltage source that contributes to current going in that direction positive and any voltage drops across loads that that voltage source is driving current through negative. This of course means that when you come upon the right hand voltage source this is in fact nowt negative although apparently you also assume the voltage drops across the impedances are also negatives. But the result is vastly different from the nodal analysis result and to be honest I'm getting pretty fed up because I have very carefully followed all of the advice in the videos.
For the rightmost loop we will have:
$$ - (I_3 - I_2)Z_5 - I_3 Z_3 - V_2 = 0 $$
If you wanted to make this more intuitive you could draw the \$ I_3 \$ loop anti-clockwise instead, and then you would write:
$$ + V_2 - I_3 Z_3 - (I_3 + I_2) Z_5 = 0 $$
Changing the loop direction from clockwise to anti-clockwise just changes the sign convention for that particular current in the equations, but ultimately the final answer should come out the same.
This confuses me, because if I just change the sign of the voltage and nothing else in that equation it changes the result with respect to the other equations. If i was to change the sign of the voltage source and the voltage drops then I can understand things may be equal.
This confuses me, because if I just change the sign of the voltage and nothing else in that equation
Thats what I meant. if all loops are going clockwise and we suddenly make one anticlockwise that messes up the system of equations does it not?
yes but if you reverse the current arrow and thus change the voltage from - to + then you do the same for the drops across the impedences surely...
No, the voltage always drops when you go through an impedance.
ok my equations are:
\$ 120-2I_1+i5( I_1 - I_2 ) = 0 \$
\$ i5( I_2 - I_1 )+i5( I_2 - I_2 ) - i4( I_2 - I_3 ) = 0 \$
\$ -i120 - i4( I_3 - I_2 ) - 4I_3 = 0 \$
\$ -14.14-i14.14 + i5( I_4 - I_3 ) = 0 \$
So what your saying is to just make -i120 into i120 in the third equation ? that will change the overall result. So is this the right way and I've got the equation wrong ?
ok my equations are:
\$ 120-2I_1+i5( I_1 - I_2 ) = 0 \$
\$ i5( I_2 - I_1 )+i5( I_2 - I_2 ) - i4( I_2 - I_3 ) = 0 \$
\$ -i120 - i4( I_3 - I_2 ) - 4I_3 = 0 \$
\$ -14.14-i14.14 + i5( I_4 - I_3 ) = 0 \$
So, what you wind up with is (hopefully I get this right):
-(V1-VA)/Z1 + VA/Z4 + VB/Z5 - (V2-VB)/Z3 = 0
and
VA = VB + V3
eq1 : 0 = -(V1-VA)/Z1 +(VA/Z4) + (VB / Z5) - (V2 - VB)/Z3;
eq2 : VA = VB + V3;
eq3 : V1 = 120;
eq4 : V2 = 120*%i;
eq5 : V3 = 14.14 + 14.14 * %i;
eq6 : Z1 = 2;
eq7 : Z3 = 4;
eq8 : Z4 = 0 -5 * %i;
eq9 : Z5 = 0 + 4 * %i;
res : solve([eq1,eq2,eq3,eq4,eq5,eq6,eq7,eq8,eq9]);
expand(float(res));