[MPB-discuss] Group velocity of guided mode

2016-02-23 Thread ASHINA
I need to calculate the group velocity of the guided mode in 1-D line defect
photonic crystal waveguide. When I extract the group velocities using grep
I'm getting velocities for different k-points and different band gaps

tevelocity:, 1, #(0.0 0.0 0.0), #(3.08591790567814e-8 -3.17361897850985e-10
0.0), #(-3.18411484190156e-8 8.71342196808855e-11 0.0),
#(1.84721203025619e-8 8.50943462313198e-11 0.0), #(-1.74134645752838e-8
-8.68616295160761e-11 0.0), #(-3.7772400907894e-7 8.03424804528978e-11 0.0),
#(-2.11572047798556e-7 -7.02123429895677e-11 0.0), #(-1.11656829528599e-5
3.29740544390964e-10 0.0), #(5.88498385990865e-5 2.54748780062977e-10 0.0)

tevelocity:, 2, #(0.307842626631501 -1.05710206152388e-15 0.0),
#(-0.306375565942897 4.39169137546245e-12 0.0), #(0.306191451559405
-5.2147365791715e-11 0.0), #(-0.302374230904649 5.21430531539878e-12 0.0),
#(0.301861636273583 -7.89021001345105e-12 0.0), #(-0.295952089064426
-1.08606617225004e-10 0.0), #(0.2943892343767 -1.2497561620612e-11 0.0),
#(-0.27378153579097 -2.61950834357133e-12 0.0), #(0.246972085727235
6.78484070946508e-12 0.0)

tevelocity:, 3, #(0.307874225357897 2.98191519834776e-15 0.0),
#(-0.30722391019847 8.68970169510119e-11 0.0), #(0.306812900930046
-1.84388853008345e-10 0.0), #(-0.305355084193399 -5.3571389939689e-12 0.0),
#(0.304265426376774 4.91908787004334e-13 0.0), #(-0.301341960337996
-3.28548624382275e-11 0.0), #(0.298125554089018 -6.44688040255094e-12 0.0),
#(-0.283177075609072 -4.84518748634126e-12 0.0), #(0.222551861651346
5.59117224725802e-12 0.0)

tevelocity:, 4, #(0.307661346795037 -6.32456627857244e-15 0.0),
#(-0.307443720320429 4.36350600459636e-12 0.0), #(0.306504436817747
-8.22640550826007e-11 0.0), #(-0.30575617804152 -3.29745306772771e-12 0.0),
#(0.303752119135192 -3.29477877939267e-13 0.0), #(-0.302041943401158
-2.71566240944536e-11 0.0), #(0.296866132176718 -1.51944298931579e-12 0.0),
#(-0.287532581139554 2.45493582564361e-12 0.0), #(0.177059998067604
1.43028979341483e-11 0.0)

and so on

How do I calculate the group velocity of the guided mode?


___
mpb-discuss mailing list
mpb-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss

[MPB-discuss] 1-D PhC

2015-10-26 Thread ASHINA
I want to create a line defect 1-D PhC waveguide. I want a single defect
only in the centre. But whenever I run the code, I'm getting a defect in the
centre of each block. And if I append the block of same size(0.3) of eps
4.41, I get a blank image.

(define-param x-dim 1)
(define-param y-dim 20)
(define-param z-dim 4)

(set! geometry-lattice (make lattice(size 1 1 no-size)))
 (set! default-material (make dielectric (epsilon 4.41)))  
(set! geometry(list(make block (material (make dielectric (epsilon 1)))
  (center 0 0 0) (size 0.3 1 infinity
(set! geometry (append geometry
(list (make block (material (make dielectric (epsilon 4.41)))
  (center 0 0 0) (size 0.1 1 infinity)
 
(set! resolution 16)
(set! k-points (list (vector3 0.5 0.5 0)))
(set! num-bands 50)


(run)

Please help me with the necessary changes.


___
mpb-discuss mailing list
mpb-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss

[MPB-discuss] (no subject)

2015-10-24 Thread Ashina Garg
I want to create a line defect 1-D PhC waveguide. Below is my ctl file and
the image of epsilon file. I have a default material of 4.41 dielecric
constant and i have inserted blocks of air. To temove a single block, I
have inserted a block of dielectric in the centre of slightly less radius.
I want a single block of dielectric only in the centre which is of same
radius as all other blocks. But whenever the run the code, I'm getting a
dielectric in the centre of each block. Please help me find where am I
going wrong?

(define-param x-dim 1)
(define-param y-dim 20)
(define-param z-dim 4)

(set! geometry-lattice (make lattice(size 1 1 no-size)))
 (set! default-material (make dielectric (epsilon
4.41)))
(set! geometry(list(make block (material (make dielectric (epsilon 1)))
  (center 0 0 0) (size 0.3 1 infinity
(set! geometry (append geometry
(list (make block (material (make dielectric (epsilon 4.41)))
  (center 0 0 0) (size 0.1 1 infinity)

(set! resolution 16)
(set! k-points (list (vector3 0.5 0.5 0)))
(set! num-bands 50)


(run)

Please help
___
mpb-discuss mailing list
mpb-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss

[MPB-discuss] Problem in 1-D waveguide

2015-10-20 Thread Ashina Garg
I want to create a line defect 1-D PhC waveguide. Below is my ctl file and
the image of epsilon file. I have a default material of 4.41 dielecric
constant and i have inserted blocks of air. To temove a single block, I
have inserted a block of dielectric in the centre of slightly less radius.
I want a single block of dielectric only in the centre which is of same
radius as all other blocks. But whenever the run the code, I'm getting a
dielectric in the centre of each block. Please help me find where am I
going wrong?

(define-param x-dim 1)
(define-param y-dim 20)
(define-param z-dim 4)

(set! geometry-lattice (make lattice(size 1 1 no-size)))
 (set! default-material (make dielectric (epsilon
4.41)))
(set! geometry(list(make block (material (make dielectric (epsilon 1)))
  (center 0 0 0) (size 0.3 1 infinity
(set! geometry (append geometry
(list (make block (material (make dielectric (epsilon 4.41)))
  (center 0 0 0) (size 0.1 1 infinity)

(set! resolution 16)
(set! k-points (list (vector3 0.5 0.5 0)))
(set! num-bands 50)


(run)
___
mpb-discuss mailing list
mpb-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss

[MPB-discuss] 1-D PhC

2015-10-11 Thread ASHINA
Hi. I want to create a 1-D Photonic crystal structure with blocks which is
symmetric in only one direction. Where can I file the ctl file for 1-D PhC
as I cannot see it anywhere in the manual
http://ab-initio.mit.edu/wiki/index.php/The_MPB_Manual
Please help. Thanks.


___
mpb-discuss mailing list
mpb-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss

[MPB-discuss] (no subject)

2015-10-10 Thread Ashina Garg
Hi. I want to create a 1-D Photonic crystal structure with blocks which is
symmetric in only one direction. Where can I file the ctl file for 1-D PhC
as I cannot see it anywhere in the manual
http://ab-initio.mit.edu/wiki/index.php/The_MPB_Manual
Please help. Thanks.
___
mpb-discuss mailing list
mpb-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss

Re: [MPB-discuss] (no subject)

2015-10-09 Thread Ashina Garg
Thanks but this problem is solved.

On Fri, Oct 9, 2015 at 11:15 AM, Ashina Garg <ashinagar...@gmail.com> wrote:

> When i run the following command to see the output of mpb-data:
> unix% h5ls epsilon.h5
> I'm getting the following error:
> No command 'h51s' found, did you mean:
> Command 'h5ls' from package 'hdf5-tools' (universe)
> h51s: command not found
>
>
> What to do for this?
>
> ___
> mpb-discuss mailing list
> mpb-discuss@ab-initio.mit.edu
> http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss
>
___
mpb-discuss mailing list
mpb-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss

[MPB-discuss] (no subject)

2015-10-08 Thread Ashina Garg
When i run the following command to see the output of mpb-data:
unix% h5ls epsilon.h5
I'm getting the following error:
No command 'h51s' found, did you mean:
Command 'h5ls' from package 'hdf5-tools' (universe)
h51s: command not found


What to do for this?
___
mpb-discuss mailing list
mpb-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss

[MPB-discuss] (no subject)

2015-10-07 Thread Ashina Garg
I ran the following command
mpb MPB-official-tutorial.ctl >& MPB-official-tutorial.txt
and got the MPB-official-tutorial.txt file successfully but the epsilon.h5
file is neither opening nor running for any of my ctl files. I am unable to
examine it and even on running the following command:
h5topng −S 3 epsilon.h5
to examine the epsilon.h5 file by converting it into a PNG image I am
getting the following error:

HDF5-DIAG: Error detected in HDF5 (1.8.11) thread 139643247507264:
  #000: ../../../src/H5F.c line 1586 in H5Fopen(): unable to open file
major: File accessibilty
minor: Unable to open file
  #001: ../../../src/H5F.c line 1275 in H5F_open(): unable to open file:
time = Wed Oct  7 19:07:51 2015
, name = '−S', tent_flags = 0
major: File accessibilty
minor: Unable to open file
  #002: ../../../src/H5FD.c line 987 in H5FD_open(): open failed
major: Virtual File Layer
minor: Unable to initialize object
  #003: ../../../src/H5FDsec2.c line 343 in H5FD_sec2_open(): unable to open
file: name = '−S', errno = 2, error message = 'No such file or directory',
flags = 0, o_flags = 0
major: File accessibilty
minor: Unable to open file
h5topng error: error opening HD5 file

Why is the HD5 file not opening?
___
mpb-discuss mailing list
mpb-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss

[MPB-discuss] Problem in understanding the execution of codes

2015-08-24 Thread ASHINA
Hi I am facing trouble in using MPB. I am new with this software and I am
unable to understand the ctl file and where to form it and how to run the
code. I read the manual too. It describes the various examples but still
nothing is clear about how to execute them. Please help me understand where
to begin from.


___
mpb-discuss mailing list
mpb-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss

[MPB-discuss] Problem in installation of MPB

2015-08-09 Thread Ashina
Hey. I have downloaded Ubuntu which is required for mpb installation. But 
I am unable to understand the installation of mpb. Please help me install 
it from the beginning.


___
mpb-discuss mailing list
mpb-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss