Lines Matching refs:Ybus
90 Mat Ybus; /* Network admittance matrix */ member
380 PetscCall(MatMult(user->Ybus, Xnet, Fnet)); in ResidualFunction()
557 PetscCall(MatGetRow(user->Ybus, 2 * i, &ncols, NULL, NULL)); in PreallocateJacobian()
560 PetscCall(MatRestoreRow(user->Ybus, 2 * i, &ncols, NULL, NULL)); in PreallocateJacobian()
779 PetscCall(MatGetRow(user->Ybus, 2 * i, &ncols, &cols, &yvals)); in ResidualJacobian()
786 PetscCall(MatRestoreRow(user->Ybus, 2 * i, &ncols, &cols, &yvals)); in ResidualJacobian()
788 PetscCall(MatGetRow(user->Ybus, 2 * i + 1, &ncols, &cols, &yvals)); in ResidualJacobian()
795 PetscCall(MatRestoreRow(user->Ybus, 2 * i + 1, &ncols, &cols, &yvals)); in ResidualJacobian()
1113 PetscCall(MatCreate(PETSC_COMM_WORLD, &user.Ybus)); in main()
1114 PetscCall(MatSetSizes(user.Ybus, PETSC_DECIDE, PETSC_DECIDE, user.neqs_net, user.neqs_net)); in main()
1115 PetscCall(MatSetType(user.Ybus, MATBAIJ)); in main()
1117 PetscCall(MatLoad(user.Ybus, Ybusview)); in main()
1195 PetscCall(MatDestroy(&user.Ybus)); in main()
1326 PetscCall(MatSetValues(ctx->Ybus, 1, &row_loc, 1, &col_loc, &val, ADD_VALUES)); in FormFunctionGradient()
1330 PetscCall(MatSetValues(ctx->Ybus, 1, &row_loc, 1, &col_loc, &val, ADD_VALUES)); in FormFunctionGradient()
1332 PetscCall(MatAssemblyBegin(ctx->Ybus, MAT_FINAL_ASSEMBLY)); in FormFunctionGradient()
1333 PetscCall(MatAssemblyEnd(ctx->Ybus, MAT_FINAL_ASSEMBLY)); in FormFunctionGradient()
1353 PetscCall(MatSetValues(ctx->Ybus, 1, &row_loc, 1, &col_loc, &val, ADD_VALUES)); in FormFunctionGradient()
1357 PetscCall(MatSetValues(ctx->Ybus, 1, &row_loc, 1, &col_loc, &val, ADD_VALUES)); in FormFunctionGradient()
1359 PetscCall(MatAssemblyBegin(ctx->Ybus, MAT_FINAL_ASSEMBLY)); in FormFunctionGradient()
1360 PetscCall(MatAssemblyEnd(ctx->Ybus, MAT_FINAL_ASSEMBLY)); in FormFunctionGradient()
1402 PetscCall(MatSetValues(ctx->Ybus, 1, &row_loc, 1, &col_loc, &val, ADD_VALUES)); in FormFunctionGradient()
1406 PetscCall(MatSetValues(ctx->Ybus, 1, &row_loc, 1, &col_loc, &val, ADD_VALUES)); in FormFunctionGradient()
1408 PetscCall(MatAssemblyBegin(ctx->Ybus, MAT_FINAL_ASSEMBLY)); in FormFunctionGradient()
1409 PetscCall(MatAssemblyEnd(ctx->Ybus, MAT_FINAL_ASSEMBLY)); in FormFunctionGradient()
1420 PetscCall(MatSetValues(ctx->Ybus, 1, &row_loc, 1, &col_loc, &val, ADD_VALUES)); in FormFunctionGradient()
1424 PetscCall(MatSetValues(ctx->Ybus, 1, &row_loc, 1, &col_loc, &val, ADD_VALUES)); in FormFunctionGradient()
1426 PetscCall(MatAssemblyBegin(ctx->Ybus, MAT_FINAL_ASSEMBLY)); in FormFunctionGradient()
1427 PetscCall(MatAssemblyEnd(ctx->Ybus, MAT_FINAL_ASSEMBLY)); in FormFunctionGradient()