Beispiel #1
0
        private static double[,,] countDFIABG_Pressure()
        {
            double[,,] result = new double[20, 3, 20];
            double[][] nodes = new SquareGenerator(-1, 0, 1).getItInSingleDArray();

            for (int i = 0; i < 20; i++)
            {
                for (int local = 0; local < 3; local++)
                {
                    for (int k = 0; k < 20; k++)
                    {
                        result[i, local, k] = FI.getDiFi(local, k, nodes[i][0], nodes[i][1], nodes[i][2]);
                    }
                }
            }

            return(result);
        }
Beispiel #2
0
        private static double[,,] countDFIABG()
        {
            double[,,] result = new double[27, 3, 20];


            for (int i = 0; i < 27; i++)
            {
                for (int local = 0; local < 3; local++)
                {
                    for (int k = 0; k < 20; k++)
                    {
                        result[i, local, k] = FI.getDiFi(local, k, GaussNodes[i][0], GaussNodes[i][1], GaussNodes[i][2]);
                    }
                }
            }

            return(result);
        }