Giter Site home page Giter Site logo

Calculating Absorption about s4 HOT 2 OPEN

michelgaglioni avatar michelgaglioni commented on July 28, 2024
Calculating Absorption

from s4.

Comments (2)

jmllorens avatar jmllorens commented on July 28, 2024

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.

#92

from s4.

michelgaglioni avatar michelgaglioni commented on July 28, 2024

Thanks, José, it helped a lot!

from s4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.