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)

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

5 Replies Last Post 2017年4月17日 GMT-4 23:31

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2012年2月9日 GMT-5 16:24
I also have the same problem with intop1 in 1D. I have function with units kg/m^2. When using intop1 if domain option is selected unit becomes kg/m^3, but if boundary option is selected it remains kg/m^2? Why?
I also have the same problem with intop1 in 1D. I have function with units kg/m^2. When using intop1 if domain option is selected unit becomes kg/m^3, but if boundary option is selected it remains kg/m^2? Why?

Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2012年2月10日 GMT-5 09:26
Hi

COMSOl always calulcates in 3D, enven if you are in 1D or 2D, for the latter itassumes you have defined a depth [m] or respectively cross section [m^2] so in 1D integrating along a domain = edge multiplies by "m" so you still need to multiply by the section in m^2 to get a net value, else you remain in per m^2.

The same applies in 2D, COMSOl mostly assumes 1m depth so integrating a force density N/m^2 over a domain in 2D =surface m^2) gives you a result per meter depth N/m. If you know the depth you nedd to multiply by this depth to get the absolute force value in Newtons.

hope it tis clear ;)

--
Good luck
Ivar
Hi COMSOl always calulcates in 3D, enven if you are in 1D or 2D, for the latter itassumes you have defined a depth [m] or respectively cross section [m^2] so in 1D integrating along a domain = edge multiplies by "m" so you still need to multiply by the section in m^2 to get a net value, else you remain in per m^2. The same applies in 2D, COMSOl mostly assumes 1m depth so integrating a force density N/m^2 over a domain in 2D =surface m^2) gives you a result per meter depth N/m. If you know the depth you nedd to multiply by this depth to get the absolute force value in Newtons. hope it tis clear ;) -- Good luck Ivar

Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2012年2月10日 GMT-5 09:27
Hi

if you define an intop1() or any operatir AFTER you have solved, you need to "Update the solver" to be able to use it, or resolve again. Could this be your issue ?

--
Good luck
Ivar
Hi if you define an intop1() or any operatir AFTER you have solved, you need to "Update the solver" to be able to use it, or resolve again. Could this be your issue ? -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 2017年4月9日 GMT-4 06:37
Hi.
Sorry for disturbing you, but I am not completely understand where should I introduce a depth while integrating e.g. over circular boundary. Should I do it while defining intop function or in derived values section?

Thank you in advance.
Hi. Sorry for disturbing you, but I am not completely understand where should I introduce a depth while integrating e.g. over circular boundary. Should I do it while defining intop function or in derived values section? Thank you in advance.

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 2017年4月17日 GMT-4 23:31
Dear Ivar,

Can you please explain this point more for circular geometry. I obtained perfectly fine modal confinement in the inner core and there is no leaking inside the cladding. The problem is that the power flow time average z-component that is obtained has no order. It should be in the order of 10^12. Since the geometry is in [um], what do you suggest to handle this problem? The core_dia is 0.625*p where p = 3[um].

Regards,

Waqas.

Dear Ivar, Can you please explain this point more for circular geometry. I obtained perfectly fine modal confinement in the inner core and there is no leaking inside the cladding. The problem is that the power flow time average z-component that is obtained has no order. It should be in the order of 10^12. Since the geometry is in [um], what do you suggest to handle this problem? The core_dia is 0.625*p where p = 3[um]. Regards, Waqas.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.