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.

Periodic boundary conditions in a torus (donut)

Please login with a confirmed email address before reporting spam

I have a 3-D torus (donut) centered around the y axis. The vector field that I am solving for ([Ux Uy Uz]) is periodic every 5 degrees in the toroidal direction, so I would obviously like to model only a 5 degree section of the torus.

Mathematically, what I need to do is set up the boundary conditions with rotation:

U2 = [ cos(a) 1 -sin(a)
0 1 0
sin(a) 1 cos(a)] * U1

where a is the angle of my periodicity (5 degrees), U1 is the vector field on the 0-degree boundary, and U2 is the vector field on the 5-degree boundary.

I have set this up in "Periodic Boundary Conditions", but I cannot seem to get it to work. I contacted COMSOL support, and they said that it was not possible to implement such a boundary condition (essentially a rotated continuity condition). That does not seem correct to me... this seems like a pretty trivial boundary condition.

So I ask this question of the community: Is it possible to implement this boundary condition, or do I have to use the full 3-D model with its 360/5=72 fold redundancy?

Comsol 3.5a

Thanks,
Nick

5 Replies Last Post 7 ott 2011, 08:27 GMT-4

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 29 nov 2010, 00:56 GMT-5
Hi Nick,

I have been trying to do almost the exact same problem but have not had any luck. I too feel like there must be a way to model a section (or turn) of the toroid rather than the whole structure. And like you I have been trying to implement it with periodic boundary conditions and extrusion coupling but have not got it to work.

Have you had any luck? Any insight that you can share?

Thanks,
George
Hi Nick, I have been trying to do almost the exact same problem but have not had any luck. I too feel like there must be a way to model a section (or turn) of the toroid rather than the whole structure. And like you I have been trying to implement it with periodic boundary conditions and extrusion coupling but have not got it to work. Have you had any luck? Any insight that you can share? Thanks, George

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 29 nov 2010, 12:48 GMT-5
Hi George,

I did make a bit of progress on this. After some more discussions with the Comsol staff, I ended up using boundary extrusion coupling variables to make the toroidal periodicity that I wanted.

Here is the general idea:

(1) Create a geometry that includes 2 periods in your torus

(2) Embed a 2D plane in the middle of that 3D geometry (between the first and second period) in order to have access to an internal boundary plane

(3) In the boundary extrusion coupling variables menu, select the middle boundaries as your source and create extrusion variables with the necessary rotation. Select the two end boundaries as your destination.

(4) In physics->boundary conditions, set the toroidal boundaries of the torus to your extrusion coupling variables. In my case I was interested in the magnetic vector potential, so I set the boundary condition to "Magnetic Vector Potential" and then set the values equal to my extrusion coupling variables.

Hope this makes sense. I do not know if this is the most elegant solution, and it does require 2 periods, but it is a lot better than building the whole torus. It seems to work for me. Let me know if you need a clearer explanation.

Nick
Hi George, I did make a bit of progress on this. After some more discussions with the Comsol staff, I ended up using boundary extrusion coupling variables to make the toroidal periodicity that I wanted. Here is the general idea: (1) Create a geometry that includes 2 periods in your torus (2) Embed a 2D plane in the middle of that 3D geometry (between the first and second period) in order to have access to an internal boundary plane (3) In the boundary extrusion coupling variables menu, select the middle boundaries as your source and create extrusion variables with the necessary rotation. Select the two end boundaries as your destination. (4) In physics->boundary conditions, set the toroidal boundaries of the torus to your extrusion coupling variables. In my case I was interested in the magnetic vector potential, so I set the boundary condition to "Magnetic Vector Potential" and then set the values equal to my extrusion coupling variables. Hope this makes sense. I do not know if this is the most elegant solution, and it does require 2 periods, but it is a lot better than building the whole torus. It seems to work for me. Let me know if you need a clearer explanation. Nick

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 30 nov 2010, 15:11 GMT-5
Hi Nick,

Thanks for the detailed tips. I have one more question regarding a 3D toroid.

How do you set an exciting input current into such a system for the two turns? You do not have access to the the turn boundaries because they are set as "Magnetic Potential" boundary extrusion couplings.

Thanks,
George
Hi Nick, Thanks for the detailed tips. I have one more question regarding a 3D toroid. How do you set an exciting input current into such a system for the two turns? You do not have access to the the turn boundaries because they are set as "Magnetic Potential" boundary extrusion couplings. Thanks, George

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 25 ago 2011, 12:32 GMT-4
Hi, I would like to understand this as well. I am creating something of a toroidal inductor and would like to model only a section (or I guess 2 as you stated) to reduce the load on memory and such. I have done what you suggested up to step 3. This is where i get lost. Where exactly do you find this "boundary extrusion coupling variables" menu? And how do you go about creating these extrusion variables. Thanks for the help ahead of time.

~Brock
Hi, I would like to understand this as well. I am creating something of a toroidal inductor and would like to model only a section (or I guess 2 as you stated) to reduce the load on memory and such. I have done what you suggested up to step 3. This is where i get lost. Where exactly do you find this "boundary extrusion coupling variables" menu? And how do you go about creating these extrusion variables. Thanks for the help ahead of time. ~Brock

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 7 ott 2011, 08:27 GMT-4
I have one structure, and i want to calculate the repetion of this structure on one metter, in this case, how can I use periodicity
I have one structure, and i want to calculate the repetion of this structure on one metter, in this case, how can I use periodicity

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.