For calculation of the osmotic pressure, we can use Van't Hoff equation as below:
π=CRT
If we put the solution in an electrical field, the cations and anions move towards negative and positive pols, respectively. To calculate the osmotic pressure near the poles in which the ions are not neutral (for example we have 3 times more Na+ than Cl- near the negative pole), Should we calculate the osmotic pressure by summing the molarity (C in Van't Hoff equation) of each ion and use the Van't Hoff equation?
π=(CNa++Ccl-)RT