Zotero styles for Springer Plasmonics Journal

I have just created zotero’s style for Springer Plasmonics Journal. You can download the csl file from:
http://ihpcoka.wiki.zoho.com/attach/1.2/Download-Source-Codes/plasmonics.csl

To install to your zotero: download the csl file, and drag the csl file to Firefox.
UPDATE: I have modified and fixed the style as Adam suggested.

Advertisements

Zeros of Bessel function computation

I have been using the nice and handy website “Wolfram Alpha” to compute the zeros of Bessel function. Simply type:
N[BesselJzeros[7,1]]
to compute “N”umerically the 1st zeros of the Bessel function of the first kind with n=7.
More on the zeros of Bessel function: http://reference.wolfram.com/mathematica/ref/BesselJZero.html

Schodinger and Maxwell Equation: on their similarities

A talk at company on the solutions of the Schrodinger and Maxwell equations and how they are similar for certain cases:

Changing SU password in Ubuntu

My company has a VPN where you simply need to login to a certain URL, it then ask to download an app to start the VPN. However, the program prompt me to enter the “su” password to install it in my laptop. Ubuntu locked the root password, and for daily operational use, we would use “sudo”. However, this program cannot install unless I provided the su password. To reset the su password, I did the following:

  • Open terminal.
  • Type:
  • sudo passwd root

  • And then reset the root password.
  • After that, I installed the vpn program from the web, and after successfully vpn to my company, I disable the root password again by typing:
  • sudo usermod -p '!' root

How to measure distance between two points using Paraview

Sometimes you want to measure the distance between two points in your data using Paraview. To do that, first visualize your data using the usual way. Now to measure between two points in your data, we can use Ruler Source:

  1. Go to Menu “Sources”->”Ruler”
  2. Use your mouse to point to the first location in your data and press the “p” key in your keyboard.
  3. Use your mouse to point to the second location in your data and press “p” again. You will see the distance in the tab on the left. (See screen shot)

Meep resolution

I had difficulty in setting up geometry and resolution when using Meep. Well, this is what I can understand at the moment.

  1. Choose a default unit, for example if your geometries are in multiple of 10nm, then set a=10 nm.
  2. Then set up your lattice and geometries based on this default unit. For example if you want to set up 40 nm x 40 nm, then simply set as 4 x 4.
  3. Decide on the resolution. This is a rather tricky part. The resolution determines the number of pixels per unit length. It was suggested that we should have several pixel (at least 8 ) on a wavelength.  For example, if your wavelength is 600 nm, then one pixel must be about 600 nm / 10 = 60 nm (if we assume to have 10 pixel per wavelength).  Now if your unit length is 10 nm, it means you have 0.16 pixel per unit length. So the resolution is 0.16. Note that the default resolution is 10. This means that if we use the default, we will have 10 pixel per 10 nm. This is the same as saying that one pixel is about 1 nm. And So for one wavelength 600 nm, we have about 600 pixel which is more than enough.