You are on page 1of 30

Using MathCAD, Matlab and PSpice for electronics simulations

CARE Workshop Lueneburg (Germany)


November 30th and December 1st 2006

Jos Luis Gonzalez CERN/AB/BI

Outline

Introduction MathCAD examples


Position Monitors Design parameters for PSpice Electrostatic BPMs The optimizer

PSpice simulations

Matlab overview Summary


JL Gonzalez - CERN/AB/BI 2

Simulation Tools

Introduction

Mathematical tools
Accurate calculations Fast and easy parameter changes

Electronics simulation

Avoids breadboarding and facilitates design

Application examples
BPM models Accelerator beam data analysis

Simulation Tools

JL Gonzalez - CERN/AB/BI

MathCAD

Using MathCAD

Button type BPM


d
Reference orbit

Transfer Impedance ZT d / 2prCe Low cut-off frequency fc = 1/2pRLCe (usually > 100 MHz)
JL Gonzalez - CERN/AB/BI 5

Simulation Tools

Using MathCAD

Button type BPM

V to V

Ce

Ib

RL

Simulation Tools

JL Gonzalez - CERN/AB/BI

Using MathCAD

Button type BPM

Cel = 8.9 pF Zinf = 1.8 Ohm fc = 360 MHz

Simulation Tools

JL Gonzalez - CERN/AB/BI

Using MathCAD

HF - Button type BPM

Simulation Tools

JL Gonzalez - CERN/AB/BI

Using MathCAD

The LHC coupler

Simulation Tools

JL Gonzalez - CERN/AB/BI

PSPICE

Simulation with PSpice

LHC Button model using PSpice parameters

Simulation Tools

JL Gonzalez - CERN/AB/BI

11

Simulation with PSpice

Beam model using PSpice parameters

Piecewise Linear Current Source associated to a definition file to generate a Gaussian beam signal

Simulation Tools

JL Gonzalez - CERN/AB/BI

12

Simulation with PSpice

Beam model

Simulating several beam intensities

Simulation Tools

JL Gonzalez - CERN/AB/BI

13

Simulation with PSpice

Button and Bessel low-pass filter PSpice parametric analysis

Beam intensity variation 2.109 2.1011 p/b

Simulation Tools

JL Gonzalez - CERN/AB/BI

14

Simulation with PSpice

Button and Bessel lowpass filter response to different bunch lengths


5.1010 p/b Bunch varies from 1 to 5 ns

Simulation Tools

JL Gonzalez - CERN/AB/BI

15

Simulation with PSpice

The LHC coupler model

Simulation Tools

JL Gonzalez - CERN/AB/BI

16

Simulation with PSpice

The LHC coupler

Simulation Tools

JL Gonzalez - CERN/AB/BI

17

Simulation with PSpice

The LHC coupler response

Simulation Tools

JL Gonzalez - CERN/AB/BI

18

PSpice Optimizer

Constant Impedance Bessel Filter

Input impedance matching optimization

Simulation Tools

JL Gonzalez - CERN/AB/BI

19

PSpice Optimizer

Constant Impedance Bessel Filter input matching

Goal functions and constraints


S11 < 50 dB ; Zin = 50 Ohms

Simulation Tools

JL Gonzalez - CERN/AB/BI

20

PSpice Optimizer

Constant Impedance Bessel Filter

Optimization results

Simulation Tools

JL Gonzalez - CERN/AB/BI

21

PSpice Optimizer

Constant Impedance Bessel Filter realization

Simulation Tools

JL Gonzalez - CERN/AB/BI

22

PSpice Optimizer

LHC - WBTN Bessel Filter

Simulation Tools

JL Gonzalez - CERN/AB/BI

23

PSpice Optimizer

LHC - WBTN Bessel Filter

21.3p 21.5p

21.8p

Simulation Tools

JL Gonzalez - CERN/AB/BI

24

Matlab

Using Matlab

CERN-PS Beam data analysis


FFT Q-calculation

Simulation Tools

JL Gonzalez - CERN/AB/BI

26

Using Matlab

Windowing actual data

Simulation Tools

JL Gonzalez - CERN/AB/BI

27

Using Matlab

SPS beam data analysis

Simulation Tools

JL Gonzalez - CERN/AB/BI

28

Using Matlab

SPS Q-Measurement data analysis

Simulation Tools

JL Gonzalez - CERN/AB/BI

29

Summary

MathCAD and Matlab are very powerful tools for the engineer
Data analysis Mathematical modeling

PSpice has proven to be an essential tool for circuit simulation

Simulation Tools

JL Gonzalez - CERN/AB/BI

30

You might also like