Skip to main content

Posts

Showing posts from December, 2022

Gyroid Structure

The below code written in the MATLAB® can be used for generating the Gyroid structure.  %% Program clc; clear all; n1 = 2;  % Number of cells in x Direction n2 = 2;  % Number of cells in y Direction n3 = 2; % Number of cells in z Direction   a=2*n1*pi; % x direction parameters b=2*n2*pi; % y direction parameters g=2*n3*pi;  % z direction parameters   s=0.01;   [x,y,z]=meshgrid(-0.5:s:0.5,-0.5:s:0.5,-0.5:s:0.5);   % Gyroid Formula u = (sin(a.*x).* cos(b.*y) + sin(b.*y).* cos(g.*z) + sin(g.*z).* cos(a.*x));   % Level Set equation c =0.7; Ts= -(u+c).*(u-c);    % Sheet based Gyroid Tsk= u + c;        % Skeletal based Gyroid Isosurface(x,y,z,Ts,0); Isocaps(x,y,z,Ts,0); %% Program Ends If very less knowledge about coding, then the below software can be used for generating Gyroid and other lattice structures. Using Lattice_Karak  helps in designing v...