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.

variable integration during solving?

Please login with a confirmed email address before reporting spam


Hi

I would like to define a variable to be an integral of another variable (integration to be carried over a specified cut

plane) in a 3D model during solving. In other words it would be nice if I could define an expression such as

var1 (z)=integ (var2)dxdy meaning that the integration should be carried over the xy cut plane at z

Is it possible to define the necessary expression? Would I have to resort to Matlab?

thanks

David

1 Reply Last Post Oct 11, 2011, 7:46 a.m. EDT
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 Oct 11, 2011, 7:46 a.m. EDT
Hi

from my undersanding that is the purpose of the "Definition - Model Coupling _ Integration" is for
You then define a "Definition - Variable" var1 = intop1(var2)

now you must define if it is on a boundary or a domain or edge for 3D, 2D, 1D and note the dx*dy*dz are "implicit"

You have also the projection integration operators to reduce or to increase the dimension

Try it out on a simple model first (i.e. 2D thermal) to get "hands on" quickly, then apply to your general case

--
Good luck
Ivar
Hi from my undersanding that is the purpose of the "Definition - Model Coupling _ Integration" is for You then define a "Definition - Variable" var1 = intop1(var2) now you must define if it is on a boundary or a domain or edge for 3D, 2D, 1D and note the dx*dy*dz are "implicit" You have also the projection integration operators to reduce or to increase the dimension Try it out on a simple model first (i.e. 2D thermal) to get "hands on" quickly, then apply to your general case -- 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.