Code Monkey home page Code Monkey logo

Comments (6)

jcyrax avatar jcyrax commented on September 13, 2024

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.

iampadik avatar iampadik commented on September 13, 2024

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.

jcyrax avatar jcyrax commented on September 13, 2024

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.

iampadik avatar iampadik commented on September 13, 2024

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.

iampadik avatar iampadik commented on September 13, 2024

Hi.
Update:

I copied the simulation_script.m file from example and edited it.

  1. Assigned ports in it, edited the graphs to be plotted.
  2. Changed the kicad.pcb file in makefile.
  3. 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.

iampadik avatar iampadik commented on September 13, 2024

Update:

So, I thought of posting of how I have for now solved my problem.
I simply

  1. installed everything again properly making sure, octave, openEMS and pcbmodelgen are configured properly for each other.
  2. Installed Kicad-4.0.7 in windows and made my layout there completely.
  3. 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
  4. 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
  5. and simply run it.

It works !! Thank you Janis for your support!!

from pcbmodelgen.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.