Exemplo n.º 1
0
        public static double[,,] GenDFIABG()
        {
            double[,,] result = new double[27, 3, 20];

            for (int n = 0; n < 27; n++)          // Gauss nodes
            {
                for (int loc = 0; loc < 3; loc++) // Local variables
                {
                    for (int f = 0; f < 20; f++)  // Functions
                    {
                        result[n, loc, f] = FunctionsForFee.CalculateDFee(loc, f, GaussianNodes[n][0], GaussianNodes[n][1], GaussianNodes[n][2]);
                    }
                }
            }

            return(result);
        }
Exemplo n.º 2
0
        public static double[,,] GenDFIABG_P()
        {
            double[,,] result = new double[20, 3, 20];
            double[][] nodes = new StandartElement(-1, 0, 1).InlineArr();

            for (int n = 0; n < 20; n++)          // Nodes in standart element
            {
                for (int loc = 0; loc < 3; loc++) // Local variables
                {
                    for (int f = 0; f < 20; f++)  // Functions
                    {
                        result[n, loc, f] = FunctionsForFee.CalculateDFee(loc, f, nodes[n][0], nodes[n][1], nodes[n][2]);
                    }
                }
            }

            return(result);
        }