Git Product home page Git Product logo

Comments (8)

stevengj avatar stevengj commented on August 31, 2024

No, not currently.

from mpb.

amrit-poudel avatar amrit-poudel commented on August 31, 2024

Thanks for the note.

While I can look at the source code to run mpb as a C++ library, is there already an example on how to calculate the band structure of photonics crystal using mpb as a C++ library?

from mpb.

stevengj avatar stevengj commented on August 31, 2024

Only in the Meep source code. The usage of MPB as a library is pretty low-level and undocumented; I mainly enabled building of MPB as a library (long after MPB was written) for calling from Meep.

from mpb.

amrit-poudel avatar amrit-poudel commented on August 31, 2024

I was looking for something like that. Thanks.

Is there a way to compile meep with mpb? I could not find anything about mpb on the link below.
http://ab-initio.mit.edu/wiki/index.php/Meep_Installation

from mpb.

stevengj avatar stevengj commented on August 31, 2024

I should probably add a section to the Meep installation manual (feel free to file an issue), but if you configure Meep on a machine where MPB is already installed in a standard directory like /usr/local/lib (or you can use LDFLAGS and CPPFLAGS to specify additional paths, as described in the "installation paths" section of the manual), then it will automatically compile with MPB.

See also the eigenmode-source in the Meep reference manual, which uses MPB.

from mpb.

amrit-poudel avatar amrit-poudel commented on August 31, 2024

I looked through the source code mpb.cpp, and it appears to me that it will compute one of the eigenmodes of a periodic system and will use that mode as an amplitude of the source in FDTD calculation.

Does this mean I will need to add another function to compute all (or up to certain energy range) the eigenmodes if I want to plot the band structure?

Thanks.

from mpb.

stevengj avatar stevengj commented on August 31, 2024

What exactly are you trying to do?

If you want to plot band structures, why not run MPB directly?

from mpb.

amrit-poudel avatar amrit-poudel commented on August 31, 2024

I was trying to avoid installing libctl and guile before I install MPB, but looks like MEEP needs MPB fully installed, so there is no way around libctl and guile.

(I can certainly use MPB to plot the band structure after I install libctl and guile)

I will close this issue.

Thanks.

from mpb.

Related Issues (20)

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.