Comments (6)
Hi!
Currently the ports are defined in octave script file (simulation_script.m) with function AddLumpedPort. This means you need to manually set them based on your design. Regarding your segmentation fault I will check if its working for me, but one thing you can do is test if OpenEMS examples are working. Also you can investigate core dump and check backtrace where the fault is occuring.
from pcbmodelgen.
Hi.
Thank you for your reply. I basically reinstalled everything since I was a little leery about my installation process. Now, I can run your examples properly.
But, I am not able to run it for my new files (both, nightly and Kicad 5.1.6).
For nightly, metals, PCB,drill, nothing was detected. But the code took up the ports as I defined it in the octave script file.
For Kicad 5.1.6, it gives me the following error:
terminate called after throwing an instance of 'std::length_error'
what(): vector::reserve
Aborted (core dumped)
Also, how much part of pcbmodelgen.json, simulation_script.m has to be manually edited? I am a little confused what I am missing. Thank you so much in advance.
from pcbmodelgen.
For Kicad 5.1.6, it gives me the following error:
terminate called after throwing an instance of 'std::length_error'
what(): vector::reserve
Aborted (core dumped)
You probably need to edit makefile with correct file name of your kicad PCB.
Also, how much part of pcbmodelgen.json, simulation_script.m has to be manually edited? I am a little confused what I am missing. Thank you so much in advance.
Currently there is very little automation. This tool will convert PCB to octave script, compatible with the way you would normally interact with OpenEMS and also you can get mesh lines. Other then that you will have to do things manually, like setting correct dimensions and port locations and writing script to process measurements and so on.
I have some ideas about further automation, but currently no free time.
Edit: Also check examples and maybe you can get away with extending them.
from pcbmodelgen.
You probably need to edit makefile with correct file name of your kicad PCB.
I have already done that really.
Currently there is very little automation. This tool will convert PCB to octave script, compatible with the way you would normally interact with OpenEMS and also you can get mesh lines. Other then that you will have to do things manually, like setting correct dimensions and port locations and writing script to process measurements and so on.
Thanks. I will look into it.
I have some ideas about further automation, but currently no free time.
Sure, I understand. No worries. Will wait for it! :)
Edit: Also check examples and maybe you can get away with extending them.
They are working. But I guess, everything in the simulation_script.m of examples are ready. In my case, the simulation_script.m doesn't get generated by itself after "make" command.
from pcbmodelgen.
Hi.
Update:
I copied the simulation_script.m file from example and edited it.
- Assigned ports in it, edited the graphs to be plotted.
- Changed the kicad.pcb file in makefile.
- adjusted the mesh settings in the pcbmodegen.json file since it was giving an error of mesh gap
Now, when I run "make run", it gives me the following error after the FDTD engine starts running:
Engine_Interface_FDTD::CalcVoltageIntegral: Error, only a 1D/line integration is allowed
I think I am almost there.
from pcbmodelgen.
Update:
So, I thought of posting of how I have for now solved my problem.
I simply
- installed everything again properly making sure, octave, openEMS and pcbmodelgen are configured properly for each other.
- Installed Kicad-4.0.7 in windows and made my layout there completely.
- Copied a. makefile, b. pcbmodelgen.json and c.simulation_script.m from a suitable example of pcbmodelgen and copied it in my kicad project folder
- Made some changes in a. makefile - changing kicad.pcb filename, b. edit the PCB substrate thickness and mesh parameters in the pcbmodelgen.json file, c. gave the correct coordinates of the ports in the simulation_script.m file
- and simply run it.
It works !! Thank you Janis for your support!!
from pcbmodelgen.
Related Issues (13)
- Can't use example script HOT 5
- Running with Kicad-5.1.6 instead of 5.99 (nightly builds) HOT 8
- error: the type for the property "hole_fill" cannot be found HOT 3
- KiCAD to OpenEMS (PCB export) HOT 8
- GCC 11: numeric_limits preventing compilation
- Problem with bottom pads HOT 5
- Project clarifications HOT 1
- pcbmodelgen on Kicad 6.0.8 doesn't generate output HOT 1
- Accept pr with clang-format? HOT 2
- Error in parser GetZone parser HOT 2
- Running it on Ubuntu 20.04 HOT 2
- Issues with the commands in generate_model.sh HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pcbmodelgen.