Code Monkey home page Code Monkey logo

Comments (3)

jcyrax avatar jcyrax commented on September 13, 2024

hole_fill is material property name used for drill holes and via holes. I think you needed to define it in simulation_script.m. You can try to add:

CSX = AddMaterial(CSX, 'hole_fill');
CSX = SetMaterialProperty( CSX, 'hole_fill', 'Epsilon', 4.2, 'Mue', 1, 'Kappa', 0, 'Sigma', 0, 'Density', 1 );

There are few materials names that are hard coded and used when generating octave scripts for geometry.
Now I don't exactly remember why I don't have hole_fill in examples, but I'll check it during next few days.

from pcbmodelgen.

leoheck avatar leoheck commented on September 13, 2024

but I'll check it during next few days.

Cool, thanks. Your answer was good enough to understand the context.

from pcbmodelgen.

jcyrax avatar jcyrax commented on September 13, 2024

Hole fill isn't in examples because there were no vias or drills. If you have vias or drills in your PCB just add definition for that material in your simulation script before line that imports kicad pcb:
CSX = kicad_pcb_model(CSX);

You can see that generated file kicad_pcb_model.m has lines like CSX = AddPolygon(CSX, 'metal_bot', 1, 2, -0.000000, p);

There are hard coded material names: box, pcb, metal_top, metal_bot, hole_fill.
Besides obvious ones box is for whole simulation space. This is used in case use_box_fill is set in pcbmodelgen.json

from pcbmodelgen.

Related Issues (16)

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.