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.

Is it possible to do this integration in COMSOL (not sub domain, volume or boundary integration)

Please login with a confirmed email address before reporting spam

Hello:

Does anyone know if it is possible in COMSOL to compute the integration of a field variable over a a cross-section area and get this integration for all values of the coordinate along the axis perpendicular to the cross-section area?

I was working in 2D axisymmetry, I revolved the model, did the extrusion coupling variables and now I have the model in 3D, with the circular cross-section in x-z and thy symmetry axis on y-axis. I am trying to get the magnetic flux, but I can only do integration over the boundaries.

What I would like to get is something like this

In 2D

Z value Integration of field variable over cross-section perpendicular to z

z1 value 1
z2 value 2
. .
. .
. .
zn value n


The COMSOL user guide shows several ways for integration, but not for this. There are boundary integration, sub domain integration, volume integration. If I compute boundary integration I can only get 2 values over the cross-section: one for each end of the cylinder. I need the value of the integration along the symmetry axis to later obtain a plot of the integration vs the z values (z is the symmetry axis in 2D, and y is the symmetry axis in 3D, I mean, the axis on which the cylinder axis is).

I tried to draw the rectangle for the cylinder in 2D axisymmetry as many small and thinner rectangles in order to have more boundaries and got at least discrete values of the integration, it is, the value of the integration over the cross-section area for some values of z (the values of z where the boundaries of the thinner rectangles are) but there should be another way.

Sometimes the value of the integration yields a negative result, but I think it's because some vectors are going in the negative direction inside the same area of integration. Anyway, any comments about this last topic is also welcome.

I am attaching an estimated plot in excel because I still trying to do this in COMSOL.

THANK YOU VERY MUCH! I REALLY APPRECIATE YOUR HELP!!!


2 Replies Last Post 21 nov. 2010, 18:06 UTC−5

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 21 nov. 2010, 15:22 UTC−5
Hello,

I have been searching for a solution of the task you described because I got a similar problem to solve, but with no success.

Hopefully somebody elso knows!?

Cheers

Matthias
Hello, I have been searching for a solution of the task you described because I got a similar problem to solve, but with no success. Hopefully somebody elso knows!? Cheers Matthias

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 21 nov. 2010, 18:06 UTC−5
Hi

have you checked the doc for
Projection Coupling Variables (3.5a) or
Definitions Model Couplings Linear Projection operators in V4 ?

--
Good luck
Ivar
Hi have you checked the doc for Projection Coupling Variables (3.5a) or Definitions Model Couplings Linear Projection operators in V4 ? -- Good luck Ivar

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.