be2.c

来自「an introduction to boundary element meth」· C语言 代码 · 共 41 行

C
41
字号
#include "cbox2.h"main(){	float X[82],Y[82],F[81],Bc[161],Xi[21],Yi[21],u[21],D;	int Code[161];	float G[81][162],H[81][81],q1[21],q2[21];	int Twice,Dim;		/*[Dim= Maximum dimension of the system AX = F; it is the same as the	 maximum number of nodes, or maximum number of elements ]*/			Dim = 80;	Twice = 2*Dim;			/*[	Read Data	]*/		Input2(Xi,Yi,X,Y,Code,Bc);		/*[ Compute matrices G and H, and form the system A X = F ]*/			Sys2(X,Y,G,H,F,Bc,Code,Dim,Twice);			/*[Solve the system AX = F ]*/		Solve(H,F,&D,N,Dim);	/*[ Compute the potential and fluxes at interior points ]*/	Inter2(F,Bc,Code,Xi,Yi,X,Y,u,q1,q2); 		/*[ Output the solution at boundary nodes and interior points ]*/		Out2(X,Y,F,Bc,Xi,Yi,u,q1,q2);}	

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?