Comments (2)
Hello everyone,
I'm sorry in advance for such a naive question, but I just began using the software and I'm kinda lost with it.
My question is: how do I obtain the absorption of a certain layer in a multi layered structure, from the given poyting vectors for each layer? Is there a way of obtaining this by another means than the poynting vectors?
Let's say, for example, I have a structure like this:
Layer 1
Layer 2
Layer 3
S4 provides me the backward and forward fluxes for each layer using GetPoyntingFlux. How do I calculate the absorption, say, in layer 2, using these fluxes?
The propagation of light goes from top to bottom. Forward means the projection of the PoyntingFlux in the "forward" direction, i.e. downwards. Backwards is in the upward direction. In other words, forward refers to transmitted flux and backwards to reflected flux. The net flux is the sum of both. The difference between the net flux at two points is the absorption.
Hence to compute the absorption in Layer 2, you need to compute:
(f_layer1, b_layer1) = S.GetPowerFlux(Layer='Layer1', zOffset=0)
(f_layer2, b_layer2) = S.GetPowerFlux(Layer='Layer2', zOffset=0)
(f_layer3, b_layer3) = S.GetPowerFlux(Layer='Layer3', zOffset=0)
NetFlux_layer2 = (f_layer2 + b_layer2).real / f_layer1.real
NetFlux_layer3 = (f_layer3 + b_layer3).real / f_layer1.real
Abs_layer2 = NetFlux_layer2 - NetFlux_layer3
I suggest to have a look at Victor's paper on S4. http://web.stanford.edu/group/fan/publication/Liu_ComputerPhysicsCommunications_183_2233_2012.pdf
Hope you found this helpful.
José.
One more question: what exactly these fluxes represent? the forward flux describes what comes in at the beginning of the layer (let's say, for layer 2, at the interface between the bottom of layer 1 and top of layer 1) or at its end (bottom of layer 2 and top of layer 3)? Same question for the backward fluxes?
I don't seem to undestand the dynamics of these fluxes. If anyone could help, I would appreciate.
Thanks in advance.
from s4.
Thanks, José, it helped a lot!
from s4.
Related Issues (20)
- About the S4 installation HOT 4
- Aperiodic Structure With PML HOT 4
- How to use real dielectric constant of the material?
- Is there a way to implement a layer with pixelized refractive index distribution in S4?
- Which function can be used to set the incident plane wave to be circularly polarized? HOT 2
- Could S4 do interference simulation?
- Cannot produce simple Talbot carpet HOT 2
- Cannot execute S4 after installation HOT 2
- Layers with different lattice vectors HOT 2
- A problem of "SetLayerPatternPolygon" HOT 1
- Scattering Matrix
- Installation Problem in M2 Max
- Python API: Error while setting excitation wave
- Creating a model with different refractive index along the wavelength HOT 1
- Multi-threading/Muti-processing HOT 2
- Angle orientation
- Adaptive fequency sampling HOT 1
- Installation for Windows HOT 2
- Trouble installing on Ubuntu 24
- Pyramidal Structure HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from s4.