-
Couldn't load subscription status.
- Fork 65
Closed
Description
I am pretty sure most functionality with anisotropic materials will fail in the current formulation, because the return of eps_model() for those materials is different than the return of the same function for any other material (it returns a 3-tuple instead of a single complex number). For example, simulation.epsilon with a given component should select not only the specific locations, but also the correct component for an anisotropic material (something like this should be added as a test).
I see several possible ways to deal with this:
- Handle Anisotropic materials separately everywhere (seems cumbersome)
- Have all materials return a three-tuple from
eps_model()(seems a bit redundant for many uses) - Have
eps_model()return the averaged epsilon for an anisostropic material. Introduce another function, e.g.eps_components()that returns a three-tuple for all materials, and use that when needed (seems best?)
Metadata
Metadata
Assignees
Labels
No labels