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.

Translate the coordinate system for a new base

Please login with a confirmed email address before reporting spam

Is there a way to set up a local coordinate system to use the translation of the original global base. For example, I want the new coordinate system has the same base vector but a different origin.
I'd like to set up something similar to Helmholtz coils but the axis does not coincide with any of x y or z axis. Instead of
Jx=-J0*z/sqrt(x^2+z^2)
Jy=0
Jz=J0*x/sqrt(x^2+z^2)
because it's around y axis,
I need to set up a current around axis (x=1.5 and y=1.5)

I think it'll be easier if I can set a new coordinate system that has the origin of (1.5, 1.5, 0) that way.

Thank you very much!


--
Charles

4 Replies Last Post 30.09.2011, 12:03 GMT-4
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 28.09.2011, 15:01 GMT-4
Hi

Have you checked, the Definition Coordinate system nodes ?

--
Good luck
Ivar
Hi Have you checked, the Definition Coordinate system nodes ? -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 29.09.2011, 09:21 GMT-4
Could you please be more specific? Where can I find such information? Thank you.

--
Charles
Could you please be more specific? Where can I find such information? Thank you. -- Charles

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 30.09.2011, 09:44 GMT-4
I see what you mean. Yes, but there's no translation of coordinate system.

--
Charles
I see what you mean. Yes, but there's no translation of coordinate system. -- Charles

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 30.09.2011, 12:03 GMT-4
Hi, Ivar,
I still can't get it working. I'm just trying to simulate a simple solenoid. When it's place in the center, things work out fine. I use the current density equation that's included in the Helmholtz example in model library. But when I place the coil at (16.5, 16.5, 0) and in the equation, I shift the equation by 16.5 (see images attached), I get nonsensical results. I'd really appreciate your help. Also if there's a way to redefine the coordinate when setting up boundary conditions, it'll make things much easier. Thank you very much!

--
Charles
Hi, Ivar, I still can't get it working. I'm just trying to simulate a simple solenoid. When it's place in the center, things work out fine. I use the current density equation that's included in the Helmholtz example in model library. But when I place the coil at (16.5, 16.5, 0) and in the equation, I shift the equation by 16.5 (see images attached), I get nonsensical results. I'd really appreciate your help. Also if there's a way to redefine the coordinate when setting up boundary conditions, it'll make things much easier. Thank you very much! -- Charles

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.