Generate 3D Coordinates FASTER- NO FOR LOOPS!MATLAB Tutorial (colon operator, find, meshgrid)

Поділитися
Вставка
  • Опубліковано 14 жов 2024

КОМЕНТАРІ • 33

  • @neroscr7
    @neroscr7 3 роки тому +1

    Idk how I found this video but it's just what I need. Thank you

    • @neroscr7
      @neroscr7 3 роки тому +1

      Also just wanna say this is really neat

  • @rojinikathiravelu
    @rojinikathiravelu 2 роки тому +2

    Great video, can you do a video for randomly arranged particles?? I did this by using the rand command. but the spheres are overlapping with each other :(

  • @anuragchakraborty8766
    @anuragchakraborty8766 2 роки тому

    Thank you for this video.
    Can you please do a video for randomly arranged particles within a cube, when there are 3 or 4 different types of particles randomly scattered within a rectangular Box ?

  • @yannickkamta2719
    @yannickkamta2719 3 роки тому +1

    big thank u!! You saved me a lot of time.

  • @nithurshanmylvaganam8099
    @nithurshanmylvaganam8099 2 роки тому

    Great Explanation, can you do a video for randomly arranged particles within a cube, but not overlapped and randomly placed?? Thanks!

  • @ReverseCentaur69
    @ReverseCentaur69 4 роки тому +4

    "Why am I using a complicated script to generate a simple structure" I ask myself everytime I plot Limacons and cry myself to sleep 😂😂

  • @panidakaewniam4290
    @panidakaewniam4290 3 роки тому +1

    This is an informative video!!! I just see the video that uses function "meshgrid" with 3 parameters. May I ask, can I conclude that meshgird(x,y) is for 2D-coordinate, and meshgrid(x,y,z) is for 3D-coordinate?
    Thank you in advance :)

    • @MdShajedulHoqueThakur
      @MdShajedulHoqueThakur  3 роки тому

      Indeed. You can look at the matlab documentation of this function for more details.

  • @scentor1942
    @scentor1942 3 роки тому

    Does anyone know how we would get a diamond structure instead of a FCC structure? And why all of the atoms are so close together but when we list our own dimensions but make them spaced correctly in the one

  • @sadimd6719
    @sadimd6719 4 роки тому +1

    Great teacher

  • @caelananderson5688
    @caelananderson5688 3 роки тому

    Helped massively thank you!

  • @lunaramirez2715
    @lunaramirez2715 4 роки тому +1

    Thank you so much!

  • @tanujgupta8381
    @tanujgupta8381 3 роки тому +1

    Does this ensure periodic boundary condition? For some length of X I get periodic BC for other lengths I dont get it.

    • @MdShajedulHoqueThakur
      @MdShajedulHoqueThakur  3 роки тому

      That depends on your lattice constant. Your length needs to be an integer multiple of the lattice constant in that direction for you to get a nice periodic cell.

    • @tanujgupta8381
      @tanujgupta8381 3 роки тому

      @@MdShajedulHoqueThakur Well, if the length is not integer multiple of lattice contant then we dont have periodic boundaries?

    • @tanujgupta8381
      @tanujgupta8381 3 роки тому

      The length we give is arbitary right, it can we 7 nm, 10, 44.85 nm etc or whatever. In that case after creating the structure and cutting the length how do we still have to have PBC? simply adding lat_p/2 does not work. I am just trying tounderstand how to do this. Your code is very efficient

    • @MdShajedulHoqueThakur
      @MdShajedulHoqueThakur  3 роки тому

      @@tanujgupta8381 you need to understand periodic boundary condition. Your lattice needs to be identical on opposite edges for periodicity to be maintained. That's why I said you need a multiple of lattice constant. Adjust the length values a few times and you'll see what I mean when you achieve periodicity.

  • @anikaanjumuna4301
    @anikaanjumuna4301 4 роки тому +1

    smooth!

  • @ivaanawatson8321
    @ivaanawatson8321 4 роки тому

    Do you have some idea of laser heating of metal in molecular dynamics?

    • @MdShajedulHoqueThakur
      @MdShajedulHoqueThakur  4 роки тому

      Laser heating can be modeled as an ultrafast increase in temperature. And that can be achieved using the common LAMMPS thermostats such as Langevin, etc.

    • @ivaanawatson8321
      @ivaanawatson8321 4 роки тому

      @@MdShajedulHoqueThakur Exactly you are right ... could you send a code so I will get some idea?

    • @MdShajedulHoqueThakur
      @MdShajedulHoqueThakur  4 роки тому

      Take a look at the documentation here:
      lammps.sandia.gov/doc/fix_langevin.html
      I may make a video on this in near future so subscribe and turn on notifications so that you don't miss that! Thanks!

  • @moinulislammahin2045
    @moinulislammahin2045 4 роки тому +1

    Again a me too young to understand it maybe you should make videos about expanning some physics about how things work like a how a plane flies how a gear works but great to see you again

  • @zfreen
    @zfreen 4 роки тому +1

    very nice video 👍 would like to thank u for increased brain cells

  • @girishsatya1701
    @girishsatya1701 3 роки тому

    what if i just need a plan cube to be plotted

  • @rafinrahman8811
    @rafinrahman8811 4 роки тому

    Bhaiya shob joss khali tomar akta cocomelon intro lagbe :p

  • @stlgamer5332
    @stlgamer5332 3 роки тому

    hi