wire segment ports in EDIT FEKO
Hi all,
I am trying to simulate two wires with loads. I am uploading each wire points from a .txt file. When I am trying to run the file it shows an error that I didn't assign a wire segment ports for the loads. However, they are defined in lines [52-56]. I have attached my editfeko file and wire points files to check if you can help me with this problem.
Thanks
Answers
-
Hello,
The error is correct. You are creating wires from the points that you read from the text files, but all the wires (built with BL card) have the default label (nl. 0). Later in the script you add three loads and an excitation, but you add it to labels such as 'Line6.Wire6.Port2' and they don't exist (all your wire segments are labeled 0). You need label the wires with the LA card and then place the loads and the excitation on the correct label.
Everything that you are doing can also be done in CADFEKO (with scripting), but I assume that you have a good reason to use EDITFEKO instead.
0 -
Thank you JIF for your great help. 'I don't Know Lua scripting that's why I am using EDITFEKO'. I believe if you have documentation for EDITFEKO it will be great for everyone trying to use it.
one last question: how can I define the port of that labeled wire? that is I want to define a wire port at the middle of the wire.
Thanks
0 -
Hi MOHAMAD HAMDALLA,
in CADFEKO you can activate Macro recording, which will then 'record' the steps you do in CADFEKO and create a lua script from it. Very easy, even for unexperienced programmers.
0 -
Altair Forum User said:
I believe if you have documentation for EDITFEKO it will be great for everyone trying to use it.
The manual has an entire chapter on EDITFEKO and the PREFEKO language. The Appendix also describes each 'card' in detail. I think all the documentation that you need is already available.
Altair Forum User said:one last question: how can I define the port of that labeled wire? that is I want to define a wire port at the middle of the wire.
Using EDITFEKO, this will entail breaking up the creating of the wire into three sections (thus, three BL cards). Two of the sections are for the sides and one is for the section in the middle. Ensure that the section in the middle is only one segment long and label it with the LA card. This allows you to then add a source or a load on the segment with that label. For a voltage source, you will then use the A1 source (segment port). If you want to add a vertex source, then only split your wire into two sections and label one of them (at least). Then add the A2 source (with the correct settings) on that label.
Take @Torben Voigt's advice and start working with CADFEKO scripting (using Lua). It is much easier than EDITFEKO and you can use macro recording to see how to do some parts (also makes script creation much faster). But be sure to work through the intro section for scripting and the example in the Example guide.
0