Instructions for the Rod Magnet July 6, 2015Stephen Brooks, Cbeta project1 Updated to include source-only field model.

Slides:



Advertisements
Similar presentations
Lecture 14: Newton’s method for system of two nonlinear equations Function newton2d01 Set initial (x,y) point, maximum number of iterations, and convergence.
Advertisements

4.5 Linearization & Newton’s Method
Chapter 28. Magnetic Field
Mapping: Scaling Rotation Translation Warp
ECE 8443 – Pattern Recognition ECE 8423 – Adaptive Signal Processing Objectives: Newton’s Method Application to LMS Recursive Least Squares Exponentially-Weighted.
Lab #2: Magnetic Fields due to Currents Learn how to measure magnetic fields Verify biot-savart law/Ampere’s Law by comparing prediction and measurement.
Computer Vision Optical Flow
ECIV 201 Computational Methods for Civil Engineers Richard P. Ray, Ph.D., P.E. Error Analysis.
Roots of Equations Open Methods (Part 2).
Efficiency of Algorithms
Bureaucracy Did everybody get the detailed comments on their first lab report from ELMS? Lab 1 resubmit due 26 Nov Bring paper copy of lab report for today’s.
Lab #2: Magnetic Fields due to Currents
Realistic Model of the Solenoid Magnetic Field Paul S Miyagawa, Steve Snow University of Manchester Objectives Closed-loop model Field calculation corrections.
Estimation and the Kalman Filter David Johnson. The Mean of a Discrete Distribution “I have more legs than average”
Roots of Equations Open Methods Second Term 05/06.
Solving Trigonometric Equations
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM.
Chapter 21 & 22 Electric Charge Coulomb’s Law This force of repulsion or attraction due to the charge properties of objects is called an electrostatic.
Verify a trigonometric identity
Section Differentials. Local Linearity If a function is differentiable at a point, it is at least locally linear. Differentiable.
Solenoid Magnetic Field Mapping Paul S Miyagawa University of Manchester Objectives Mapper machine Mapper software Simulation Corrections Fitting Future.
Solenoid Magnetic Field Mapping Paul S Miyagawa University of Manchester Introduction Mapper machine Mapper software - Simulation - Corrections - Fitting.

Logarithmic and Exponential Functions
Physics 114: Lecture 15 Probability Tests & Linear Fitting Dale E. Gary NJIT Physics Department.
Poster reference: FR5PFP025 Extending the Energy Range of 50Hz Proton FFAGs S.J. Brooks RAL, Chilton, OX11 0QX, UK Magnetic.
Numerical Computations in Linear Algebra. Mathematically posed problems that are to be solved, or whose solution is to be confirmed on a digital computer.
Verify a trigonometric identity
Section 5.5 Double Angle Formulas
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
22 July 2008 John Hart Toroid Field Parameterisation 1 Toroid Field Parameterisation An informal report to the RAL ATLAS meeting John Hart 22 July 2008.
CISE301_Topic11 CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4:
Course 12 Calibration. 1.Introduction In theoretic discussions, we have assumed: Camera is located at the origin of coordinate system of scene.
End Design Discussion D. Arbelaez (LBNL) Oct. 7,
MECN 3500 Inter - Bayamon Lecture 3 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Correcting Permanent Magnets with Iron Wires September 16, 2015Stephen Brooks, eRHIC meeting1 See my June 24, 2015 talk for background.
Physics 2113 Lecture 08: MON 02 FEB Electric Fields III Physics 2113 Jonathan Dowling Charles-Augustin de Coulomb ( )
Lecture 7 - Systems of Equations CVEN 302 June 17, 2002.
CFD Refinement By: Brian Cowley. Overview 1.Background on CFD 2.How it works 3.CFD research group on campus for which problem exists o Our current techniques.
4.5: Linear Approximations, Differentials and Newton’s Method.
Colorado Center for Astrodynamics Research The University of Colorado 1 STATISTICAL ORBIT DETERMINATION ASEN 5070 LECTURE 11 9/16,18/09.
How Errors Propagate Error in a Series Errors in a Sum Error in Redundant Measurement.
4.5: Linear Approximations, Differentials and Newton’s Method Greg Kelly, Hanford High School, Richland, Washington.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 3.
Sensitivity derivatives Can obtain sensitivity derivatives of structural response at several levels Finite difference sensitivity (section 7.1) Analytical.
Jeff J. Orchard, M. Stella Atkins School of Computing Science, Simon Fraser University Freire et al. (1) pointed out that least squares based registration.
Numerical Analysis. Numerical Analysis or Scientific Computing Concerned with design and analysis of algorithms for solving mathematical problems that.
 B = BA Cos  Example 1.1 A coil consists of 200 turns of wire. Each turn is a square of side 18 cm, and a uniform magnetic field directed.
Physics 2102 Lecture: 03 TUE 26 JAN
4 Numerical Methods Root Finding Secant Method Modified Secant
Tuesday, June 26, 2007PHYS , Summer 2006 Dr. Jaehoon Yu 1 PHYS 1443 – Section 001 Lecture #15 Tuesday, June 26, 2007 Dr. Jaehoon Yu Rotational.
Correction Methods for Permanent Magnets June 24, 2015Stephen Brooks, eRHIC meeting1 Based on Nick Tsoupas’s modified Halbach quadrupole for eRHIC.
Magnetic Fields due to Currents Chapter 29. The magnitude of the field dB produced at point P at distance r by a current-length element ds turns out to.
Physics requirements  mapping spec’s Strategy: analyze measurements to get field Mapping plan: where/how to map Engineering design: sensor, fixtures,
Chapter 22 Electric Fields The Electric Field: The Electric Field is a vector field. The electric field, E, consists of a distribution of vectors,
Physics Requirements Sensitivity to Manufacturing Imperfections Strategy  where to map field  measure deviation from ideal model  fit to error tables.
Computer Graphics Lecture 11 2D Transformations I Taqdees A. Siddiqi
Nighttime exam? If we have the exam in the evening of July 3 rd, we would cancel class on July 5 th and you get a long weekend. Would you prefer to have.
4.5: Linear Approximations, Differentials and Newton’s Method Greg Kelly, Hanford High School, Richland, Washington.
Magnetic Forces and Fields
Generalised Halbach Magnets for a Non-Scaling FFAG Arc
Modeling and Simulation Dr. Mohammad Kilani
Chapter 28 Sources of Magnetic Field
Halbach Magnets: Design, Prototypes & Results
Chapter 2 ERROR ANALYSIS
Chapter 22 Electric Fields.
DETERMINANT definition and origin.
Lecture 10 Biot-Savart’s Law.
Propagation of Error Berlin Chen
Propagation of Error Berlin Chen
Presentation transcript:

Instructions for the Rod Magnet July 6, 2015Stephen Brooks, Cbeta project1 Updated to include source-only field model

Field of a  =1 Rod with Constant M Linear potential within rod and 1/r outside So constant B within rod and 1/r 2 outside Actually identical to cos(  ) SC dipole July 6, 2015Stephen Brooks, Cbeta project2 double potf(const double x,const double y,const double r) { double rr=(x*x+y*y)/(r*r); //if (rr>=1) return x/rr; else return x; if (rr>=1) return y/rr; else return y; } V2 fieldf(const double x,const double y,const double r) { // (d/dx,d/dy) of potf double rr=(x*x+y*y)/(r*r); if (rr>=1) return V2_new(x*x-y*y,2*x*y)/(rr*rr*r*r); else return V2_new(1,0); } These functions give the 2D potential and B field for a rod whose centre is at (x,y)=(0,0), has radius r and has magnetisation M=(1,0) T. Rotate and scale for M as needed. B r =|M| (I use 1.11T±10%) In the  =1 model these may be summed over all rods.

Avoiding Demagnetising Settings The definition of the H field is: – H = (1/  )B – M In our  =1 model, this reduces to H = B – M This quantity can be calculated around the perimeter of each rod and checked against the demagnetisation B-H curve of the material The Halbach arrangements should be favourable July 6, 2015Stephen Brooks, Cbeta project3

Theoretical Optimisation Method In my program, the response matrix dB i /d  n is first calculated using small finite differences – B i are the field components measured by probes –  n are the angles of the rods A good method is to use multi-variable Newton iteration modified to use a smoothed inverse using the SVD of the response matrix – See – You also want to use a line search + tuning of July 6, 2015Stephen Brooks, Cbeta project4

Fast Field Model even with Iron If  r at each point is constant (no saturated iron), the B field equations are linear in M B =  rods n B rn (B nx cos  n + B ny sin  n ) – …where B nx, B ny are pre-calculated FEM fields for having only rod n magnetised by M=(1,0)T and (0,1)T respectively, other rods M=0 – B rn is the remnant field magnitude in rod n –  n is the angle of rod n Also works for 2 magnets with interfering iron July 6, 2015Stephen Brooks, Cbeta project5

Required Setup Measurement: card of Hall probes, or rotating coil aligned to magnet survey point Movement: stepper motor drivers to rotate each rod by known angles, probably requires gearing down to get mrad type accuracy – Also “brake” to clamp rods in place once done Control algorithm: computer program that can both read the field measurements and control the motors automatically July 6, 2015Stephen Brooks, Cbeta project6

Determining Initial Rod Angles Rotate rod n by  (to  n +  ) measure field B + Rotate back by -2  (to  n -  ) measure field B - Rotate by  to return to original position  n From the formula on the last page, B + -B - = B rn [B nx (cos(  n +  )-cos(  n -  )) + B ny (sin(  n +  )-sin(  n -  ))] = (2 sin  )[B nx (-B rn sin  n )+B ny (B rn cos  n )] Solve for -B rn sin  n and B rn cos  n, giving B rn,  n July 6, 2015Stephen Brooks, Cbeta project7

Use of Model for Correction Early concept was to determine local response matrix by small rod rotations each iteration – This was rather susceptible to noise as it involves differentiation between measured signals Instead, given approximate knowledge of B rn,  n the model can calculate rotations to cancel the measured error by ensuring B model,rotated - B model,now ~= B goal - B measured July 6, 2015Stephen Brooks, Cbeta project8

Accuracy of Model If |  n,model -  n | ≤  and |B rn,model -B rn | ≤  |B model -B| ≤  rods n (  +B rn  )(|B nx |+|B ny |) To first order B rn can be replaced by B rn,model More important is accuracy of small changes |dB model /d  n - dB/d  n | ≤ (  +B rn  )(|B nx |+|B ny |) May run into problems when d/d  is small? – Late stage optimisation often does comparatively large movements with very small effects July 6, 2015Stephen Brooks, Cbeta project9

Iterative Correction Convergence If the following condition is met for f<1: |  B model -  B| ≤ f|  B model | …the error should reduce by at least a factor f each time the model’s correction is applied – Excluding errors uncorrectable even in the model This isn’t true when  B model is almost zero but  B isn’t, as could happen in late optimisation – Could use new data to refit model B rn and initial  n Linear problem in [B rn cos  n,B rn sin  n ]  [B measured ] July 6, 2015Stephen Brooks, Cbeta project10