Web worker

There is only one thread for Javascript in browsers. It is enough for the browser to deal with the UI actions. However, the CPU became multi-thread and the Javascript can do much more work in browser. Web workers are developed to utilize multi-core CPU more effectively. The simplest use of workers is for performing a … Read more

Latex equation in word

It a good news that word has already known the latex in the equation editor. Here is some tips to input the equation with latex. The short key for insert a equation is ALT++. It is quick easy to remember because there is always a “=” in the equation. Most of the latex symbols are … Read more

Mode Selection for a gyrotron cavity

The microwave is reflected at the wall of the cavity to form the standing wave in a closed cavity. If the plane boundary surfaces are at z=0 and z=d, the boundary conditions can be satisfied at each surface only if \(d=p \frac{\lambda_g}{d}\,\,\,\, p=1,2,3,…\) where \(lambda_g\) is the waveguide length, p is the mode number in … Read more

回旋管腔体设计

截止段 L1 决定了场能否在入口端充分截止。 均匀段L2的长度决定能量交换率和Q值。 输出段 L3对腔体 Q值的影响也较大 ,同时它还和能量输出有关。为了减小由回旋管输出窗反射回来的电磁波对互作用区注 波互作用的影响 ,可以适当加大 L3长度。

Save the result in Mathematica

Mathematica notebook is a powerful tool to save all the program and data together. Sometimes it is much better to save the result in a separated file for re-use. For example, there is a script to scan the parameters in a wide range. It may take a lot of time. The result is always a … Read more

Get the plot data in comsol application program

Comsol is good at post processing and visualization. However some special analysis is necessary in the comsol application program. For example, determine to mode number in special direction after a eigen mode analysis. The comsol can plot the electrical field along a line but it doesn’t tell the mode number. We have to write some … Read more

Transverse electric(TE) wave in circular waveguides

Circular waveguides offer implementation advantages over rectangular wave guide is that installation is much simpler when forming runs of turns and offsets. The uniform section in the gyrotron cavity is a circular waveguide. The working mode is usually a transverse electric mode in the cavity. Here is a calculator for the Transverse Electric mode in … Read more

Golang VScode debug config

Go is an open source programming language. It is usually called modern C language. I think it is suitable for scientific computation in electromagnetic because it is support the complex number computation. So I tried to use it to solve a complex ordinary differential equations. Development Environment VScode is a free and popular development IDE … Read more

Eigenmodes of the gyrotron cavity

Gyrotron is a microwave oscillators. It changes the DC energy to high power millimetre microwave. It has been successfully used in the magnetic confinement thermonuclear fusion research as the microwave source for the electron cyclotron resonance heating and current drive. A typical gyrotron cavity consists of a central section and one taper section at both … Read more