Andrea Ferrario
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
Nov 21, 2012, 4:49 a.m. EST
Hello Robert,
I am not sure how to use Solid's variable to compute the rotation, but you can instead use the frames. In you model, Magnetic Fields is solved in the spatial frame (the "fixed" frame), while you want to define the magnetization as a vector in the X direction in the material frame (the frames that deforms with the material), so that when the material is deformed the magnetization follows the deformation. The transformation matrices between frames are spatial.F and spatial.invF (you can find them in the plot list, under Definitions -> Frame transforms).
To manually specify a "material" remanence in the "spatial" magnetic fields, simply use the matrices to transform your vector. For example, if the magnetization is in the x+ direction, then write Br = {M*spatial.invF11, M*spatial.invF21}, while if it is in the x- direction just prepend a minus sign.
A note on postprocessing: I noticed that you applied a deformation to the Arrow Surface plot. The deformation node acts on the points where the arrows are placed, but it won't affect the vector components. So even if Br is collinear with the material, it will not be shown as such in the plot. If you choose to plot in the spatial frame (in Data Sets -> Solution 1) you don't need to deform by {u,v} to see the deformed position of the body.
--
Andrea Ferrario
Electromagnetics Group
COMSOL AB
Hello Robert,
I am not sure how to use Solid's variable to compute the rotation, but you can instead use the frames. In you model, Magnetic Fields is solved in the spatial frame (the "fixed" frame), while you want to define the magnetization as a vector in the X direction in the material frame (the frames that deforms with the material), so that when the material is deformed the magnetization follows the deformation. The transformation matrices between frames are spatial.F and spatial.invF (you can find them in the plot list, under Definitions -> Frame transforms).
To manually specify a "material" remanence in the "spatial" magnetic fields, simply use the matrices to transform your vector. For example, if the magnetization is in the x+ direction, then write Br = {M*spatial.invF11, M*spatial.invF21}, while if it is in the x- direction just prepend a minus sign.
A note on postprocessing: I noticed that you applied a deformation to the Arrow Surface plot. The deformation node acts on the points where the arrows are placed, but it won't affect the vector components. So even if Br is collinear with the material, it will not be shown as such in the plot. If you choose to plot in the spatial frame (in Data Sets -> Solution 1) you don't need to deform by {u,v} to see the deformed position of the body.
--
Andrea Ferrario
Electromagnetics Group
COMSOL AB
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
Nov 25, 2012, 2:21 p.m. EST
Andrea Ferrario,
That response was very helpful and I appreciate it. I plan on working on the model tomorrow so I will give that a shot and let you know how it works out.
Regards,
Rob
Andrea Ferrario,
That response was very helpful and I appreciate it. I plan on working on the model tomorrow so I will give that a shot and let you know how it works out.
Regards,
Rob
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
Nov 27, 2012, 10:39 a.m. EST
Andrea Ferrario,
I've tried using your method of frame transforms but it describes the variables as unknown when taking the exact variable name from the descriptions under the plots. Perhaps the variables are being used in a way that comsol doesn't recognize?
Again thanks for your help.
Rob
Andrea Ferrario,
I've tried using your method of frame transforms but it describes the variables as unknown when taking the exact variable name from the descriptions under the plots. Perhaps the variables are being used in a way that comsol doesn't recognize?
Again thanks for your help.
Rob
Andrea Ferrario
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
Nov 27, 2012, 11:11 a.m. EST
Hello,
Please see the attached model.
--
Andrea Ferrario
Electromagnetics Group
COMSOL AB
Hello,
Please see the attached model.
--
Andrea Ferrario
Electromagnetics Group
COMSOL AB
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
Nov 27, 2012, 12:16 p.m. EST
Andrea Ferrario,
This is phenomenal! I input exactly what you did but got the "Unknown variable" color notation on the Ampere's law and didn't think to try to run it. This is great though, exactly what I wanted.
Best regards,
Rob
Andrea Ferrario,
This is phenomenal! I input exactly what you did but got the "Unknown variable" color notation on the Ampere's law and didn't think to try to run it. This is great though, exactly what I wanted.
Best regards,
Rob