Fortran code for geometry of fcc

Click For Summary

Discussion Overview

The discussion revolves around the request for Fortran code to describe the geometry of a face-centered cubic (fcc) lattice, including the identification of neighbors for each site and the implementation of periodic boundary conditions. The scope includes programming, computational modeling, and potentially theoretical aspects of lattice structures.

Discussion Character

  • Homework-related
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant requests Fortran code for describing an fcc lattice and its neighbors while considering periodic boundary conditions.
  • Another participant emphasizes that they will not write the code and asks what the original poster has attempted so far.
  • A participant shares their approach to defining the fcc lattice using translation vectors and expresses uncertainty about applying periodic boundary conditions in three dimensions.
  • One participant notes that some may not be familiar with the term "fcc lattice" and suggests providing a description for better assistance.

Areas of Agreement / Disagreement

The discussion shows a lack of consensus, with participants expressing different levels of understanding and willingness to assist. There are competing views on how to approach the coding problem and the necessity of defining terms for clarity.

Contextual Notes

Participants have not provided specific definitions or references for "fcc lattice," and there are unresolved questions regarding the implementation of periodic boundary conditions in the code.

quin
Messages
50
Reaction score
0
Hi friends . is there anybody here who can give me a fortran code for describing fcc lattice and give us the neighbours of each site and also which pay attention to periodic condition ?
thank you for your help my friends.
 
Technology news on Phys.org
quin said:
Hi friends . is there anybody here who can give me a fortran code for describing fcc lattice and give us the neighbours of each site and also which pay attention to periodic condition ?
thank you for your help my friends.

I'll say the same thing I said in response to your other post: What have you tried? We are not going to write the code for you, if that's what you had in mind.
 
yes dear, you are right but i want to write a code for geometry of fcc and i wrote it but i don't know how can i apply periodic boundary condition on for cubic? i mean i must connect the topest point to lowest point of lattice i don't know how can i show this?

but i supposed that each site has 12 neighbours and if take an array like this for nearest neighbours :
(number of neighber ,number of site )
foe example: (3,4) shows the third neughbour of 4th spin,
and then try to fill it, i used this way :

if i show each point of fcc with n=i*a1 + j*a2 + k*a3 in which, a1 ,a2, a3 are translation vector , then i ,j ,z are integer numbers
then the cubic dimension is L*L*L and each site of lattice can be shown by :
n=i+j*L+k*L^2

and i can calculate the "n" of all of 12 neighbours of each site. but i don't know how use peridic condition in all of 3 direction of x,y,z?
 
Many of us here probably don't know what "fcc lattice" is, so if you can point us to something that describes it, we might be able to help.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 17 ·
Replies
17
Views
5K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 7 ·
Replies
7
Views
6K
  • · Replies 9 ·
Replies
9
Views
16K
  • · Replies 2 ·
Replies
2
Views
2K