Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
integration coupling variable (unit problem)
Posted 2012年2月2日 GMT-5 14:34 Version 4.2, Version 4.2a 5 Replies
Please login with a confirmed email address before reporting spam
Hi,
I just have a quick question about evaluating a scalar integral over an area. In the 3D RF simulation, I have:
1) integration operator: intop1, integrating over an 2D boundary;
2) global variable: power_z = intop1(emw.Poavz), which integrates the power density 'emw.Poavz' over that area to give me the total power in the z-direction 'power_z'.
The expression shows up as orange, so I am guessing that there is an issue with the unit. But I don't understand what is wrong. The power density has a unit of 'W/m^2', so if the integration is over an area, it should give me a value in Watts.
I also would like to plot this power_z over a parametrized variable to show the power_z fluctuation with respect to the variable, but unable to find a way to do it. In a 1D plot, I used a 'Global' plot. In the y-axis, I select "power_z" in the expression. In the x-axis, I used "Expression" under the Parameter choice, and entered name of the parametrized variable. But I got an error saying "unknown function. Name: intop1. Plot: glob1(Global)".
Any help would be greatly appreciated. thanks.
Yan Wang
I just have a quick question about evaluating a scalar integral over an area. In the 3D RF simulation, I have:
1) integration operator: intop1, integrating over an 2D boundary;
2) global variable: power_z = intop1(emw.Poavz), which integrates the power density 'emw.Poavz' over that area to give me the total power in the z-direction 'power_z'.
The expression shows up as orange, so I am guessing that there is an issue with the unit. But I don't understand what is wrong. The power density has a unit of 'W/m^2', so if the integration is over an area, it should give me a value in Watts.
I also would like to plot this power_z over a parametrized variable to show the power_z fluctuation with respect to the variable, but unable to find a way to do it. In a 1D plot, I used a 'Global' plot. In the y-axis, I select "power_z" in the expression. In the x-axis, I used "Expression" under the Parameter choice, and entered name of the parametrized variable. But I got an error saying "unknown function. Name: intop1. Plot: glob1(Global)".
Any help would be greatly appreciated. thanks.
Yan Wang
5 Replies Last Post 2017年4月17日 GMT-4 23:31