Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Plane wave expansion

Tags:
  1. Apr 3, 2015 #1
    Dear Sir Madam,

    I am a new member of this forum and I was trying to understand Plane Wave expansion simulation in Matlab. So far I cannot understand how to simulate Gz vector in K-space consistently to the numbers of plane waves.
    Hereby you can have the matlab code for Gx and Gy.


    nx_arr=repmat(n1,1,2*nmax+1);
    ny_arr=round(n2/(2*nmax+1));
    nz_arr=1:3;

    [nx,nxp]=meshgrid(nx_arr,nx_arr);
    [ny,nyp]=meshgrid(ny_arr,ny_arr);
    Code (Text):

    nx_arr=repmat(n1,1,2*nmax+1);
    ny_arr=round(n2/(2*nmax+1));
    nz_arr=1:3;

    [nx,nxp]=meshgrid(nx_arr,nx_arr);
    [ny,nyp]=meshgrid(ny_arr,ny_arr);
    Thank you a lot for your consideration

    Regards
     
  2. jcsd
  3. Apr 8, 2015 #2
    Thanks for the post! This is an automated courtesy bump. Sorry you aren't generating responses at the moment. Do you have any further information, come to any new conclusions or is it possible to reword the post?
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Plane wave expansion
  1. Thermal Expansivity (Replies: 3)

Loading...