Exemplo n.º 1
0
 private double[,] CalculateHatKMatrix()
 {
     double[,] TotalMassMatrix;
     double[,] TotalStiffnessMatrix;
     if (CustomStiffnessMatrix != null)
     {
         TotalMassMatrix      = CustomMassMatrix;
         TotalStiffnessMatrix = CustomStiffnessMatrix;
     }
     else
     {
         TotalMassMatrix      = Assembler.CreateTotalMassMatrix();
         TotalStiffnessMatrix = Assembler.CreateTotalStiffnessMatrix();
     }
     double[,] hatK = MatrixOperations.MatrixSubtraction(TotalStiffnessMatrix,
                                                         MatrixOperations.ScalarMatrixProductNew(a2, TotalMassMatrix));
     return(hatK);
 }
Exemplo n.º 2
0
 private double[,] CalculateHatKMatrix()
 {
     double[,] hatK = MatrixOperations.MatrixSubtraction(stiffnessMatrix,
                                                         MatrixOperations.ScalarMatrixProductNew(a2, massMatrix));
     return(hatK);
 }