Skip to content

Anisotropic materials issues #106

@momchil-flex

Description

@momchil-flex

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

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions