Lines Matching refs:Ybus
80 Mat Ybus; /* Network admittance matrix */ member
235 PetscCall(MatMult(user->Ybus, Xnet, Fnet)); in ResidualFunction()
413 PetscCall(MatGetRow(user->Ybus, 2 * i, &ncols, NULL, NULL)); in PreallocateJacobian()
416 PetscCall(MatRestoreRow(user->Ybus, 2 * i, &ncols, NULL, NULL)); in PreallocateJacobian()
637 PetscCall(MatGetRow(user->Ybus, 2 * i, &ncols, &cols, &yvals)); in ResidualJacobian()
644 PetscCall(MatRestoreRow(user->Ybus, 2 * i, &ncols, &cols, &yvals)); in ResidualJacobian()
646 PetscCall(MatGetRow(user->Ybus, 2 * i + 1, &ncols, &cols, &yvals)); in ResidualJacobian()
653 PetscCall(MatRestoreRow(user->Ybus, 2 * i + 1, &ncols, &cols, &yvals)); in ResidualJacobian()
1005 PetscCall(MatCreate(PETSC_COMM_WORLD, &ctx->Ybus)); in FormFunction()
1006 PetscCall(MatSetSizes(ctx->Ybus, PETSC_DECIDE, PETSC_DECIDE, ctx->neqs_net, ctx->neqs_net)); in FormFunction()
1007 PetscCall(MatSetType(ctx->Ybus, MATBAIJ)); in FormFunction()
1009 PetscCall(MatLoad(ctx->Ybus, Ybusview)); in FormFunction()
1080 PetscCall(MatSetValues(ctx->Ybus, 1, &row_loc, 1, &col_loc, &val, ADD_VALUES)); in FormFunction()
1084 PetscCall(MatSetValues(ctx->Ybus, 1, &row_loc, 1, &col_loc, &val, ADD_VALUES)); in FormFunction()
1086 PetscCall(MatAssemblyBegin(ctx->Ybus, MAT_FINAL_ASSEMBLY)); in FormFunction()
1087 PetscCall(MatAssemblyEnd(ctx->Ybus, MAT_FINAL_ASSEMBLY)); in FormFunction()
1105 PetscCall(MatSetValues(ctx->Ybus, 1, &row_loc, 1, &col_loc, &val, ADD_VALUES)); in FormFunction()
1109 PetscCall(MatSetValues(ctx->Ybus, 1, &row_loc, 1, &col_loc, &val, ADD_VALUES)); in FormFunction()
1111 PetscCall(MatAssemblyBegin(ctx->Ybus, MAT_FINAL_ASSEMBLY)); in FormFunction()
1112 PetscCall(MatAssemblyEnd(ctx->Ybus, MAT_FINAL_ASSEMBLY)); in FormFunction()
1133 PetscCall(MatDestroy(&ctx->Ybus)); in FormFunction()