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.
help with Magnetic Flux Gradient in mf module
Posted Sep 22, 2015, 6:18 a.m. EDT Version 5.1 14 Replies
Please login with a confirmed email address before reporting spam
I have a problem with the magnetic flux gradient calculation in a quadrupole solved with the mf module.
If I simulate permanent magnet quadrupole I use the mfnc module and if I want to know the B gradient I define a cutline in the middle of the quadrupole equal to the bore diameter on the x (or y) axis
Then I select a line graph with that line as source and I plot d(mfnc.By,x) (or d(mfnc.Bx,y). The result is the field gradient of the quadrupole
If I do the same with a EM quad I have a gradient equal to zero even if the mf.By plot is not constant (it is correct as it has the tipical quadrupolare shape).
How I should calculate the gradient?
Thanks
Francesco
Please login with a confirmed email address before reporting spam
Magnetic field interfaces use so-called curl or vector elements. Calculation of magnetic field gradient requires the second order spatial derivatives. This can be done by using Lagrangian elements, as demonstrated here:
www.comsol.com/blogs/plotting-spatial-derivatives-magnetic-field/
Regards,
Sergei
Please login with a confirmed email address before reporting spam
Thank you for your answer, I'm going to study the link you sent me.
I have a question anyway. Why the d(By,x) work on mfnc module?
Please login with a confirmed email address before reporting spam
This is because mfnc interface uses Lagrangian elements for magnetic scalar potential and second order derivatives are available for Lagrangian elements.
You can see it under equation view, as shown in the attached image.
Regards,
Sergei
Attachments:
Please login with a confirmed email address before reporting spam
Francesco,
This is because mfnc interface uses Lagrangian elements for magnetic scalar potential and second order derivatives are available for Lagrangian elements.
You can see it under equation view, as shown in the attached image.
Regards,
Sergei
Clear now, thank you.
I have applied the procedure in the link you sent to the example of the helmoltz coil.
I think I understand how to do it.
I'll try with my model and let you know.
Cheers
Francesco
Please login with a confirmed email address before reporting spam
I have a doubt. In my model I have numerical coils, so I set two steps in study one:
Step1: coil geometry analysis
Step2: Stationary.
So at the step described in this figure cdn.comsol.com/wordpress/2014/03/Definition-of-the-study-steps.png
I have different options, infact in "Study" field I select "Study 1, Stationary" and then I have other two fields:
1) "Solution" where I can chose between "Current" and "Solution 1"
2) "Use" where I can chose between "Current" and "Solution Store 1"
Which should I choose?
If I select Current for both I have out of memory message performing LU factorization.
I am trying other solutions...
Please login with a confirmed email address before reporting spam
Do I need to specify this in the unit definitions I guess... Waiting for your advice I will try to do it myself.
Ciao and Thank you
Francesco
Please login with a confirmed email address before reporting spam
I meshed my model more accurately and I had the solution with quadratic interpolation.
I have just one more quastion: Can I use two different mashes, one for study 1 (the magnetic problem) and one for the PDE study?
This second one should be different from the other one, more coarse on some place but very fine in the place where I need the gradient.
I am trying to experiment, but if it is not possible please let me know.
Thank you
Francesco
Please login with a confirmed email address before reporting spam
I think I am confident now with the method for the field gradient evaluation.
I have a question related with the parametric sweep.
I have performed a 2D simulation with a sweep on the pole shape for my electromagnet, in order to understand which is the best shape. In the sweep I change two parameters.
Now I want to calculate the gradient of all the solutions in the parametric sweep, but I am able to evalute the gradient for a certain solution, not for all.
How I should set the PDE solver?
Thank you in advance.
Please login with a confirmed email address before reporting spam
In the section “Values of variables not solved for”, try to set “selections” to “All”, instead of default “Automatic”.
Regards,
Sergei
Please login with a confirmed email address before reporting spam
In the section “Values of variables not solved for”, try to set “selections” to “All”, instead of default “Automatic”.
Regards,
Sergei
Please login with a confirmed email address before reporting spam
I should have write you the solver configuration I use, anyway I am already using this option.
This is what I am using:
Method: Solution
Study: Study 1, Stationary
Solution: Parametric Solution 1
Use: Current
Selection: All
In "use" I can select a specific solution, but not all, so here probably is the problem, I mean, I guess there is something wrong in "use" or othere options.
Thank you
Please login with a confirmed email address before reporting spam
Calculation of magnetic field gradient requires the second order spatial derivatives.
This is because mfnc interface uses Lagrangian elements for magnetic scalar potential and second order derivatives are available for Lagrangian elements.
www.7pcb.com/
Please login with a confirmed email address before reporting spam
Actually magnetic field interfaces use so-called curl or vector elements.
Calculation of magnetic field gradient requires the second order spatial derivatives.
This is because mfnc interface uses Lagrangian elements for magnetic scalar potential and second order derivatives are available for Lagrangian elements.
Yes, I know that, and I am able to perform the calculation for one solution.
What I am not able to do is performing the calculation for all the solutions in a parametric sweep.
I'm probably doing something wrong with the solver configuration.
Please login with a confirmed email address before reporting spam
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.
Suggested Content
- FORUM gradient of a flux across a domain
- FORUM Magnetic Flux Gradient
- BLOG Plotting Spatial Derivatives of the Magnetic Field
- KNOWLEDGE BASE Error: Singular Matrix
- KNOWLEDGE BASE Error: Internal Error in Geometry Decomposition