Gunnar Andersson
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
8 years ago
2017年3月6日 GMT-5 09:47
Anyone can help how to intergrate "semi.ot1.dP_dE" over a boundary?
Without seeing your model I don't know for sure, but I would create a Results > Derived Values > Surface Integration and use the expression comp1.atxd2(x, y, semi.ot1.dP_dE). If this doesn't work I suggest that you send the model to COMSOL support.
[QUOTE]Anyone can help how to intergrate "semi.ot1.dP_dE" over a boundary?[/QUOTE]
Without seeing your model I don't know for sure, but I would create a Results > Derived Values > Surface Integration and use the expression comp1.atxd2(x, y, semi.ot1.dP_dE). If this doesn't work I suggest that you send the model to COMSOL support.
Please login with a confirmed email address before reporting spam
Posted:
8 years ago
2017年3月6日 GMT-5 10:14
Hi, Gunnar,
Thank you for your prompt reply. I have tried your suggestion but it was not working. Sorry that the model is too big to attach here and I will try to contact COMSOL support.
Cheers!
Hi, Gunnar,
Thank you for your prompt reply. I have tried your suggestion but it was not working. Sorry that the model is too big to attach here and I will try to contact COMSOL support.
Cheers!
Gunnar Andersson
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
8 years ago
2017年3月6日 GMT-5 10:36
Reading your example again I realize that I probably misunderstood the model. Does it have one or two extra dimensions? The first two arguments to the atxd2 operator are coordinates in the extra dimension, so my suggestion to use x and y for these arguments was wrong.
Reading your example again I realize that I probably misunderstood the model. Does it have one or two extra dimensions? The first two arguments to the atxd2 operator are coordinates in the extra dimension, so my suggestion to use x and y for these arguments was wrong.
Daniel Smith
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
8 years ago
2017年3月6日 GMT-5 10:48
Hi, the variable semi.ot1.dP_dE exists in the product space formed by the base geometry and extra dimension. Therefore, to integrate the expression over the base geometry, you first need to integrate it over the extra dimension. Therefore, you need to use the built in integration operator which can integrate over the extra dimension. In this case: semi.ot1.xdintopall(...). This can be seen in the Equation View for the Optical Transitions feature.
So, you should be able to perform a surface integral on the base geometry under Derived Values (as suggested by Gunnar) using the expression:
semi.ot1.xdintopall(semi.ot1.dP_dE)
This way, the expression semi.ot1.dP_dE is integrated over both the base geometry and the extra dimension.
Dan
Hi, the variable semi.ot1.dP_dE exists in the product space formed by the base geometry and extra dimension. Therefore, to integrate the expression over the base geometry, you first need to integrate it over the extra dimension. Therefore, you need to use the built in integration operator which can integrate over the extra dimension. In this case: semi.ot1.xdintopall(...). This can be seen in the Equation View for the Optical Transitions feature.
So, you should be able to perform a surface integral on the base geometry under Derived Values (as suggested by Gunnar) using the expression:
semi.ot1.xdintopall(semi.ot1.dP_dE)
This way, the expression semi.ot1.dP_dE is integrated over both the base geometry and the extra dimension.
Dan
Please login with a confirmed email address before reporting spam
Posted:
8 years ago
2017年3月6日 GMT-5 10:55
This way, the expression semi.ot1.dP_dE is integrated over both the base geometry and the extra dimension.
Dan
Hi, Dan,
Thank you very much for your help! The problem is solved.
Best regards
Yuanlong
[QUOTE]
This way, the expression semi.ot1.dP_dE is integrated over both the base geometry and the extra dimension.
Dan
[/QUOTE]
Hi, Dan,
Thank you very much for your help! The problem is solved.
Best regards
Yuanlong
Please login with a confirmed email address before reporting spam
Posted:
8 years ago
2017年3月6日 GMT-5 10:56
Hi, Gunnar,
Thank you very much for your help! The problem is solved.
Best regards
Yuanlong
Hi, Gunnar,
Thank you very much for your help! The problem is solved.
Best regards
Yuanlong
Please login with a confirmed email address before reporting spam
Posted:
7 years ago
2017年9月1日 GMT-4 00:22
Howdy,
The topic in this discussion is attractive for me. I have a very similar question recently:
I have built a 1D MQW LED model.
And I use the following expressions to generate the spectrum plot:
y-axis: comp1.atxd1(0.107e-6, semi.ot1.dP_dE)
x_axis: hbar_const*comp1.atxd1(0.107e-6, semi.ot1.omega)/e_const
So, I got the spectrum generated by the point: 0.107e-6; and the result matches my expectation.
But now I want to see the spectrum of the whole 1D model instead of just one point. Can you help me with the expressions?
Thanks a lot!
Howdy,
The topic in this discussion is attractive for me. I have a very similar question recently:
I have built a 1D MQW LED model.
And I use the following expressions to generate the spectrum plot:
y-axis: comp1.atxd1(0.107e-6, semi.ot1.dP_dE)
x_axis: hbar_const*comp1.atxd1(0.107e-6, semi.ot1.omega)/e_const
So, I got the spectrum generated by the point: 0.107e-6; and the result matches my expectation.
But now I want to see the spectrum of the whole 1D model instead of just one point. Can you help me with the expressions?
Thanks a lot!
Daniel Smith
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
7 years ago
2017年9月1日 GMT-4 13:59
Hi Chen, the only way to do this with a 1D plot would be to create an animation.
* Go to Results>Parameters and add a new parameter, call it ds with value 0.107e-6
* In your plot, change the expressions to:
y-axis: comp1.atxd1(ds, semi.ot1.dP_dE)
x_axis: hbar_const*comp1.atxd1(ds, semi.ot1.omega)/e_const
Then do Export>Animation>Player and set the Subject to the plot group above.
* Set the Sequence type to Result parameter and for the Parameter choose ds.
* Set the Start and Stop values to be the limits of the geometry. In the COMSOL Application Library example, this is 0.15e-6 to 0.155e-6.
* Click the Play button. This will animate the spectrum as you sweep through the geometry.
Hi Chen, the only way to do this with a 1D plot would be to create an animation.
* Go to Results>Parameters and add a new parameter, call it ds with value 0.107e-6
* In your plot, change the expressions to:
y-axis: comp1.atxd1(ds, semi.ot1.dP_dE)
x_axis: hbar_const*comp1.atxd1(ds, semi.ot1.omega)/e_const
Then do Export>Animation>Player and set the Subject to the plot group above.
* Set the Sequence type to Result parameter and for the Parameter choose ds.
* Set the Start and Stop values to be the limits of the geometry. In the COMSOL Application Library example, this is 0.15e-6 to 0.155e-6.
* Click the Play button. This will animate the spectrum as you sweep through the geometry.