-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why does openEMS.AddLumpedPort
asks for port_nr
?
#155
Comments
I'm not sure the port number cannot repeat? But if it does occur multiple times it means that the voltages and current for this port will be combined into one value and into one file, e.g. ut1 |
And I guess this would have been more suitable as a question for an openEMS-Project discussion instead of an issue? |
Just to be clear, I am not interested in repeating the port number. This was just a mistake I made because I copy-pasted the code and forgot to change it. And I noticed the problem only when trying to open the CSV and was corrupted. I would have preferred 1) that the program raises some error or 2) not even have to care about the port number as a user. What is the purpose of |
I believe that theoretically, one can specify the port number just once during port creation, and later in post-processing, one can generate S-parameters such as S11, S21, S31, S41, etc. by enumerating all ports and extract the |
Ok, in that case
|
No the number can repeat, the ports will then "work as one". This can be desired. |
In my case I (unintentionally) repeated the numbers and the result seems to be buggy, maybe it is because of another reason, I thought it was because of this, my apologies. When both ports had
As seen, there seems to be a mistake in line 4 The total number of lines in each file is also quite different:
After changing |
I will have a look at it, that's indeed not what is supposed to happen |
I understand
port_nr
is an incremental number to be used e.g. like this:The user has to call it with a different
port_nr
each time.Is there any reason for this? I am asking because I confused and mistakenly wrote:
and it failed in the CSV files.
The text was updated successfully, but these errors were encountered: