Comments (1)
I guess you have calculated a wave emanating from some source. To calculate the overlap integral, you need to calculate the waveguide mode separately. This can be done by setting up a waveguide geometry and calculate its mode using ModalSrc as a source.
Now that you have a wave and mode profile, you can calculate the overlap integral between them in principle. Unfortunately, there is no function implemented for this purpose, so you will need to write your own script for this.
First thing you need to do is to retrieve the fields and their locations. Each of the Cartesian components of the solution E and H fields are a Scalar3d
object, and Scalar3d
has data_expanded()
function that returns the field array and locations.
Then, you will need to implement the overlap integral. The tricky part is that the solution E and H fields are not defined at the same location due to the interlaced E and H grids in the finite-difference scheme. Therefore, you need to interpolate the E and H fields such that they are at the same locations. (Otherwise you cannot multiply them.) You can use MATLAB's interpn()
function.
from maxwellfdfd.
Related Issues (15)
- Error when parsing source array. HOT 5
- Tilt the box
- How do I get the E field and M field intensity at a particular point?
- Undefined function 'isdiag' for input arguments of type 'double'.
- Using maxwellfdfd with the mcc matlab compiler
- run diel_slab.m example
- An error is reported
- source.html
- MatrixEquation.m constructor function HOT 1
- Problems under Matlab 2015b HOT 2
- Mode calculation for a metallic waveguide
- convergence issue
- Errors in "poynting.m" in examples HOT 1
- Error running tests on Matlab 2017a 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 maxwellfdfd.