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.
Reducing 3D data to 2D by integrating over one dimension
Posted 25 mag 2011, 16:37 GMT-4 Parameters, Variables, & Functions, Results & Visualization Version 4.1 6 Replies
Please login with a confirmed email address before reporting spam
Thanks.
Please login with a confirmed email address before reporting spam
you have the integration and extrusion coupling operators under the "Definition" node to do that, see the doc
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
You have to use the projection integration operator: Model->Definitions->Model Couplings->General projection
Lars Gregersen
Comsol Denmark
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
I am trying to use general projection coupling to take a temperature distribution within a
cylinder from 3D to an axisymmtric 2D approximation. Mathematically, it is
expressed (in terms of cylindrical coordinates) as...
T2D(r,z)=int(T3D(r,theta,z),theta,0,2*pi)/(2*pi)
The model as it stands is in cartesian coordinates, so I defined
variables r=sqrt(x^2+y^2) and theta=atan2(x,y). I attempted to defined a
secondary, cylindrical coordinate system to remove the shortcomings of
these definitions (like atan2 not being unique from 0 to 2*pi), but the
coupling feature doesn't seem to allow for different systems.
As far as the interface for general projection, I do not quite understand
x-,y-, and z-expression fields. The source lists x,y,z, but destination
only lists x,y. Does that mean that the program integrates along whatever
is in the z-expression field, since it is not in the destination domain? I
have entered r into the x field, z into the y field, and theta into the z
field. I defined a variable T2D as the result of this projection. When I
graph T2D, the results do not make sense.
I believe that I am missing some things to do this correctly. Please
walk me through how to do this. Thank you.
Thanks again for the help.
Please login with a confirmed email address before reporting spam
I am trying to use general projection coupling to take a temperature distribution within a
cylinder from 3D to an axisymmtric 2D approximation. Mathematically, it is
expressed (in terms of cylindrical coordinates) as...
T2D(r,z)=int(T3D(r,theta,z),theta,0,2*pi)/(2*pi)
The model as it stands is in cartesian coordinates, so I defined
variables r=sqrt(x^2+y^2) and theta=atan2(x,y). I attempted to defined a
secondary, cylindrical coordinate system to remove the shortcomings of
these definitions (like atan2 not being unique from 0 to 2*pi), but the
coupling feature doesn't seem to allow for different systems.
As far as the interface for general projection, I do not quite understand
x-,y-, and z-expression fields. The source lists x,y,z, but destination
only lists x,y. Does that mean that the program integrates along whatever
is in the z-expression field, since it is not in the destination domain? I
have entered r into the x field, z into the y field, and theta into the z
field. I defined a variable T2D as the result of this projection. When I
graph T2D, the results do not make sense.
I believe that I am missing some things to do this correctly. Please
walk me through how to do this. Thank you.
Thanks again for the help.
Please login with a confirmed email address before reporting spam
first of all normally the right hand rule angles are defined as thetaz = atan2(y,x) but that is also a question of convention. Then for me atan2 is unique, but if it is not from 0-2*pi its probably from -pi to pi
I didn neither niot find the extrusion and projection coupling operator very intuitive, and still need to carefully check each tim what I'm doing on a simple example, the variable names x,y,z can normall be replaced by your own equation a 3D to 2D means indeed integration over the missing 1D, it all depends on how you define this integration line
--
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.