Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
How does COMSOL calculate (emw.nPoav)
Posted Apr 11, 2025, 3:46 a.m. EDT Plasma Physics, General, Modeling Tools & Definitions Version 6.2 2 Replies
Please login with a confirmed email address before reporting spam
I have an electric field passing through some line boundary that i constructed. I am interested in finding the power of my beam passing through this line, so I created and integration setting,intop, and pass in emw.nPoav, so intop(emw.nPoav) would give me the total power passing through this line segment.
I also for good measure made a python script that would take the electric field data, outputted from comsol as a csv, and find the power as well. I did this by the following logic.
I know that the power is simply the integral of the poynting vector. I can do this for each cell along my line segment by simply calculating the poynting vector with the following equation
I can do this for each cell and then simply doing the summation of S * dL, the length of each cell, i can get the total power passing through my line segment.
My issue is that there is a discrepancy roughly by a factor of 10 between my python script and COMSOL. I do not understand why this is happening.
I thought that perhaps since my COMSOL project is in 2D, i should disregard the Ez component in my python script but that did not fix this at all.
So i am wondering how exactly COMSOL is calculating the power passing through the boundary and if this matches what I am doing in my python script.
Attachments: