// 8ptc11.cpp Aug 2 2002 8 point force // This program establishes that: // a C11 = ksp1 + 2 ksp2 + 0.66666 k8pt int Polarization=0; // 0=Long; 1=shear y; 2 = shear z #include #include #include #include #include #include double omega,kx,totime,dt,matom,lambda,CL,uca,Amp,densityrho; double u(int nx,int ny,int nz,int iaxis); long int countit; void main(void) { // main clrscr(); //int gdriver=VGA; //int gmode=VGAHI; //initgraph(&gdriver,&gmode,"c:\\tc\\bgi"); //cleardevice(); //setcolor(8); //rectangle(0,0,639,479); kx=0.041; lambda=2.0*3.1415926/kx; uca=0.59; densityrho=1.0; matom=densityrho*uca*uca*uca; dt=0.1; omega=2.5; Amp=0.0001251; // amplitude of wave int nx,ny,nz; double sfx,bx0,by0; sfx=70; bx0=320; by0=240; countit=0; LBtimestep: countit++; totime=totime+dt; gotoxy(1,1);cout<<"it= "<