Skip to content

Few questions about modeling #67

Answered by yonghakim
ashvael asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
Didn't notice this. Sorry for the late reply.

Do you want something like 0000001111110000000 where 0 is air 1 is Si?

If so, this can be done in vector modeling.

import time
import torch

import meent


def modelling(rcwa_options, modeling_options, instructions):
    mee = meent.call_mee(fft_type=2, **rcwa_options)

    layer_info_list = []
    for i, layer in enumerate(instructions):
        obj_list_per_layer = []
        for j, _ in enumerate(layer):
            instructions_new = []
            instructions_target = instructions[i][j]
            for k, inst in enumerate(instructions_target):
                if k == 0:
                    func = getattr(mee, inst)
                elif

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ashvael
Comment options

@yonghakim
Comment options

Answer selected by ashvael
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants