예제 #1
0
 public Vector ComputeConstant()
 {
     Vector constant = new Vector((polynomOrder + 1) * elements.Length);
     for(int i = 0; i < elements.Length; i++)
     {
         constant.InjectMatrixAtPosition(elements[i].GetConstantSolution(Ground), i * (polynomOrder+1), 0);
     }
     return constant;
 }
예제 #2
0
 public Vector GetOriginNodes()
 {
     Vector constant = new Vector((polynomOrder + 1) * elements.Length);
     for (int i = 0; i < elements.Length; i++)
     {
         constant.InjectMatrixAtPosition(elements[i].GetOriginNodes(), i * (polynomOrder + 1), 0);
     }
     return constant;
 }