private double[] FillNMatrix(double KsiValues, double EtaValues)
 {
     double[] NValuesForPVector = new double[4];
     NValuesForPVector[0] = UniversalElementCalculator.N1Function(KsiValues, EtaValues);
     NValuesForPVector[1] = UniversalElementCalculator.N2Function(KsiValues, EtaValues);
     NValuesForPVector[2] = UniversalElementCalculator.N3Function(KsiValues, EtaValues);
     NValuesForPVector[3] = UniversalElementCalculator.N4Function(KsiValues, EtaValues);
     return(NValuesForPVector);
 }
 private void FillNMatrix()
 {
     for (int i = 0; i < 4; i++)
     {
         NValuesMatrix[i, 0] = UniversalElementCalculator.N1Function(KsiValues[i], EtaValues[i]);
         NValuesMatrix[i, 1] = UniversalElementCalculator.N2Function(KsiValues[i], EtaValues[i]);
         NValuesMatrix[i, 2] = UniversalElementCalculator.N3Function(KsiValues[i], EtaValues[i]);
         NValuesMatrix[i, 3] = UniversalElementCalculator.N4Function(KsiValues[i], EtaValues[i]);
     }
 }
Example #3
0
 private double[,] FillNMatrix(double [] KsiValues, double [] EtaValues)
 {
     double[,] Hbc = new double[2, 4];
     for (int i = 0; i < 2; i++)
     {
         Hbc[i, 0] = UniversalElementCalculator.N1Function(KsiValues[i], EtaValues[i]);
         Hbc[i, 1] = UniversalElementCalculator.N2Function(KsiValues[i], EtaValues[i]);
         Hbc[i, 2] = UniversalElementCalculator.N3Function(KsiValues[i], EtaValues[i]);
         Hbc[i, 3] = UniversalElementCalculator.N4Function(KsiValues[i], EtaValues[i]);
     }
     return(Hbc);
 }