Hello dear fenics Community,
i am doing some research on gradient index fibers with dolfinx. I have a diffusion simulation which calculates the refractive index profile of the waveguide that i want to analyse. This happens in dolfinx. Now i wrote a electromagnetics Program which calculates the eigenmodes of the waveguide.
All of this works as expected.
Now i want to take the refractive index profile of the waveguide and add an air-layer to it, to analyze the behaviour of the eigenmodes in a more realistic environment.
I would like to project the function that i calculated in the diffusion simulation onto part of a new mesh that includes these air layers, and i want to set the refractive index of the air layers to 1.
The refractive Index which is calculated is in the CG-Space of arbitrary polynomial degree (I use 2 mose of the time) and the refractive index in my electromagnetics simulation should be of the same degree or less.
Right now i am using the build-in meshes of dolfinx and a marker-function to determine where the part of my mesh is that is the waveguide. I would like to use Cell-tags later, but for now i would be very happy about any solution to the given problem.
Thanks in Advance
Tom