Skip to content

Custom Material Import with Arbitrary Permittivity and Conductivity Distribution #2310

Answered by smartalecH
cyasing asked this question in Q&A
Discussion options

You must be logged in to vote

I would use a material_function and just wrap your discrete samples with some arbitrary interpolator (eg linear interpolation is what meep uses everywhere).

Remember, meep's philosophy is to promote an illusion of continuity. So it expects continuous representations as inputs, even if you have to fake it with interpolation (as that's what meep does under the hood using pervasive interpolation)

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@cyasing
Comment options

@cyasing
Comment options

@smartalecH
Comment options

@cyasing
Comment options

@tulchhi-ram
Comment options

Answer selected by cyasing
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants