private void initialize(int[] _index, int _nNode, int _elemDim, int _nIntPoint) { typeOfStress = type.Cauchy; //default value nIntPoint = _nIntPoint; nBIntPoint = 0; nNode = _nNode; elemDim = _elemDim; nDV = nNode * __DIM; intP = new integratingPoint[nIntPoint]; this.bIntP = new integratingPoint[0]; for (int i = 0; i < nIntPoint; i++) { intP[i] = new integratingPoint(nNode, elemDim); } node = new double[nDV]; phi = new double[nNode]; index = new int[nNode]; gradient = new double[nDV]; hess = new double [nDV, nDV]; force = new double[nDV]; setupIndex(_index); }
private void initialize(int[] _index,int _nNode,int _elemDim,int _nIntPoint) { typeOfStress = type.Cauchy; //default value nIntPoint=_nIntPoint; nBIntPoint = 0; nNode=_nNode; elemDim=_elemDim; nDV=nNode*__DIM; intP=new integratingPoint[nIntPoint]; this.bIntP = new integratingPoint[0]; for (int i = 0; i < nIntPoint; i++) { intP[i]=new integratingPoint(nNode,elemDim); } node=new double[nDV]; phi = new double[nNode]; index=new int[nNode]; gradient=new double[nDV]; hess=new double [nDV,nDV]; force=new double[nDV]; setupIndex(_index); }