You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How do I create by mod3d a face-centered cubic lattice with a fill factor of 74٪ such that the diameter of the cube is four times the radius of the spheres?
The text was updated successfully, but these errors were encountered:
@ArminM99, Mote3D is more geared towards creating random particle packings, however, generation of a face-centered cubic close packed unit cell can easily be implemented, e. g.:
## Generation of close packed FCC unit cell
## Enter sphere radius:
R = 1.5;
## Compute unit cell edge length:
box_length = 2*sqrt(2)*R;
## Allocate memory:
P_mat = zeros ([14, 4]);
R_vec = zeros ([14, 2]);
## Assign coordinates of sphere centres:
P_mat(1:4,:) = eye(4)*box_length;
P_mat(5:8,:) = (ones(4, 4)-eye(4))*box_length;
P_mat(9:11,:) = (ones(4, 4)-eye(4))(2:4,:)*0.5*box_length;
P_mat(12:14,:) = (ones(4, 4)+eye(4))(2:4,:)*0.5*box_length;
P_mat(1:14,1) = (1:14);
R_vec(1:14,1) = (1:14);
R_vec(1:14,2) = R;
How do I create by mod3d a face-centered cubic lattice with a fill factor of 74٪ such that the diameter of the cube is four times the radius of the spheres?
The text was updated successfully, but these errors were encountered: