<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019eb289-8f50-719d-8d59-e47fd1cf854a,g:73dd1c5f-2cc7-4340-b33f-c5d9917769ce-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member"/>
  <link:roleRef roleURI="http://www.opc.com/role/ConsolidatedStatementsofRevenuesandExpensesUnaudited" xlink:type="simple" xlink:href="opc-20260630.xsd#ConsolidatedStatementsofRevenuesandExpensesUnaudited"/>
  <link:definitionLink xlink:role="http://www.opc.com/role/ConsolidatedStatementsofRevenuesandExpensesUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_019eb289-9021-7862-8351-b856131fd8ee" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_019eb289-9021-7acc-99cf-1e825a0788be" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_019eb289-9021-7862-8351-b856131fd8ee" xlink:to="loc_us-gaap_StatementTable_019eb289-9021-7acc-99cf-1e825a0788be" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_019eb289-9021-7c7c-a4d9-eea112dc8484" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_019eb289-9021-7acc-99cf-1e825a0788be" xlink:to="loc_srt_MajorCustomersAxis_019eb289-9021-7c7c-a4d9-eea112dc8484" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_019eb289-9021-7c7c-a4d9-eea112dc8484_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_019eb289-9021-7c7c-a4d9-eea112dc8484" xlink:to="loc_srt_NameOfMajorCustomerDomain_019eb289-9021-7c7c-a4d9-eea112dc8484_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_019eb289-9021-72ad-9cb3-cef6d9d3e73e" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_019eb289-9021-7c7c-a4d9-eea112dc8484" xlink:to="loc_srt_NameOfMajorCustomerDomain_019eb289-9021-72ad-9cb3-cef6d9d3e73e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_CooperativeMembersMember_019eb289-9021-761d-b1c9-ef9f611f6693" xlink:href="opc-20260630.xsd#opc_CooperativeMembersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_019eb289-9021-72ad-9cb3-cef6d9d3e73e" xlink:to="loc_opc_CooperativeMembersMember_019eb289-9021-761d-b1c9-ef9f611f6693" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_NonMembersMember_019eb289-9021-7967-a0ed-de5d293e10dc" xlink:href="opc-20260630.xsd#opc_NonMembersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_019eb289-9021-72ad-9cb3-cef6d9d3e73e" xlink:to="loc_opc_NonMembersMember_019eb289-9021-7967-a0ed-de5d293e10dc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenuesAbstract_019eb289-9021-75ad-b40d-98430621ff48" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenuesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019eb289-9021-7862-8351-b856131fd8ee" xlink:to="loc_us-gaap_RevenuesAbstract_019eb289-9021-75ad-b40d-98430621ff48" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019eb289-9021-7668-8e2c-9454aa257b8d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesAbstract_019eb289-9021-75ad-b40d-98430621ff48" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019eb289-9021-7668-8e2c-9454aa257b8d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpensesAbstract_019eb289-9021-720a-8099-acc8524e618a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingExpensesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019eb289-9021-7862-8351-b856131fd8ee" xlink:to="loc_us-gaap_OperatingExpensesAbstract_019eb289-9021-720a-8099-acc8524e618a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UtilitiesOperatingExpenseFuelUsed_019eb289-9021-7541-9b30-e3323656b9cc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UtilitiesOperatingExpenseFuelUsed"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_019eb289-9021-720a-8099-acc8524e618a" xlink:to="loc_us-gaap_UtilitiesOperatingExpenseFuelUsed_019eb289-9021-7541-9b30-e3323656b9cc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UtilitiesOperatingExpenseProductsAndServices_019eb289-9021-798f-8140-ed1b1a3eb40b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UtilitiesOperatingExpenseProductsAndServices"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_019eb289-9021-720a-8099-acc8524e618a" xlink:to="loc_us-gaap_UtilitiesOperatingExpenseProductsAndServices_019eb289-9021-798f-8140-ed1b1a3eb40b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UtilitiesOperatingExpenseDepreciationAndAmortization_019eb289-9021-7575-a539-b307ac403152" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UtilitiesOperatingExpenseDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_019eb289-9021-720a-8099-acc8524e618a" xlink:to="loc_us-gaap_UtilitiesOperatingExpenseDepreciationAndAmortization_019eb289-9021-7575-a539-b307ac403152" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UtilitiesOperatingExpensePurchasedPower_019eb289-9021-759c-b245-85b15d481b16" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UtilitiesOperatingExpensePurchasedPower"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_019eb289-9021-720a-8099-acc8524e618a" xlink:to="loc_us-gaap_UtilitiesOperatingExpensePurchasedPower_019eb289-9021-759c-b245-85b15d481b16" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetRetirementObligationAccretionExpense_019eb289-9021-737f-b3fa-b2b8eef9442d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetRetirementObligationAccretionExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_019eb289-9021-720a-8099-acc8524e618a" xlink:to="loc_us-gaap_AssetRetirementObligationAccretionExpense_019eb289-9021-737f-b3fa-b2b8eef9442d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UtilitiesOperatingExpense_019eb289-9021-7463-8839-ef3abe6a2162" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UtilitiesOperatingExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_019eb289-9021-720a-8099-acc8524e618a" xlink:to="loc_us-gaap_UtilitiesOperatingExpense_019eb289-9021-7463-8839-ef3abe6a2162" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_019eb289-9021-77db-92b3-8f1cf062b504" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019eb289-9021-7862-8351-b856131fd8ee" xlink:to="loc_us-gaap_OperatingIncomeLoss_019eb289-9021-77db-92b3-8f1cf062b504" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpenseAbstract_019eb289-9021-7835-8361-91f691da4117" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NonoperatingIncomeExpenseAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019eb289-9021-7862-8351-b856131fd8ee" xlink:to="loc_us-gaap_NonoperatingIncomeExpenseAbstract_019eb289-9021-7835-8361-91f691da4117" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_InvestmentIncomeNetAndGainLoss_019eb289-9021-734e-827a-8c1f9a249763" xlink:href="opc-20260630.xsd#opc_InvestmentIncomeNetAndGainLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NonoperatingIncomeExpenseAbstract_019eb289-9021-7835-8361-91f691da4117" xlink:to="loc_opc_InvestmentIncomeNetAndGainLoss_019eb289-9021-734e-827a-8c1f9a249763" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_019eb289-9021-7896-a9f5-c92c89e0674d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NonoperatingIncomeExpenseAbstract_019eb289-9021-7835-8361-91f691da4117" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_019eb289-9021-7896-a9f5-c92c89e0674d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_019eb289-9021-7009-aefb-a5eaf8a53e68" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NonoperatingIncomeExpenseAbstract_019eb289-9021-7835-8361-91f691da4117" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_019eb289-9021-7009-aefb-a5eaf8a53e68" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDebtExpenseAbstract_019eb289-9021-75e1-ac4e-50dd9686daef" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestAndDebtExpenseAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019eb289-9021-7862-8351-b856131fd8ee" xlink:to="loc_us-gaap_InterestAndDebtExpenseAbstract_019eb289-9021-75e1-ac4e-50dd9686daef" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseNonoperating_019eb289-9021-7d7c-8329-73a3cc12850d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseNonoperating"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestAndDebtExpenseAbstract_019eb289-9021-75e1-ac4e-50dd9686daef" xlink:to="loc_us-gaap_InterestExpenseNonoperating_019eb289-9021-7d7c-8329-73a3cc12850d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_AllowanceForDebtFundsUsedDuringConstruction_019eb289-9021-7b1e-a11a-ddb7f4e43389" xlink:href="opc-20260630.xsd#opc_AllowanceForDebtFundsUsedDuringConstruction"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestAndDebtExpenseAbstract_019eb289-9021-75e1-ac4e-50dd9686daef" xlink:to="loc_opc_AllowanceForDebtFundsUsedDuringConstruction_019eb289-9021-7b1e-a11a-ddb7f4e43389" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_019eb289-9021-73f2-a386-5a46e49a083e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AmortizationOfFinancingCostsAndDiscounts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestAndDebtExpenseAbstract_019eb289-9021-75e1-ac4e-50dd9686daef" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_019eb289-9021-73f2-a386-5a46e49a083e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDebtExpense_019eb289-9021-7034-9133-07d360360b39" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestAndDebtExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestAndDebtExpenseAbstract_019eb289-9021-75e1-ac4e-50dd9686daef" xlink:to="loc_us-gaap_InterestAndDebtExpense_019eb289-9021-7034-9133-07d360360b39" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019eb289-9021-7fd8-8bf5-bb713a0dfb1f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019eb289-9021-7862-8351-b856131fd8ee" xlink:to="loc_us-gaap_NetIncomeLoss_019eb289-9021-7fd8-8bf5-bb713a0dfb1f" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.opc.com/role/ConsolidatedStatementsofPatronageCapitalandMembershipFeesUnaudited" xlink:type="simple" xlink:href="opc-20260630.xsd#ConsolidatedStatementsofPatronageCapitalandMembershipFeesUnaudited"/>
  <link:definitionLink xlink:role="http://www.opc.com/role/ConsolidatedStatementsofPatronageCapitalandMembershipFeesUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_019eb289-9021-7b67-aed8-1b238106d886" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_019eb289-9021-7e6c-acfa-baa6297cd908" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_019eb289-9021-7b67-aed8-1b238106d886" xlink:to="loc_us-gaap_StatementTable_019eb289-9021-7e6c-acfa-baa6297cd908" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_MemberCapitalComponentsAxis_019eb289-9021-7ce0-adf4-4c1deefccdd1" xlink:href="opc-20260630.xsd#opc_MemberCapitalComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_019eb289-9021-7e6c-acfa-baa6297cd908" xlink:to="loc_opc_MemberCapitalComponentsAxis_019eb289-9021-7ce0-adf4-4c1deefccdd1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_MemberCapitalComponentsDomain_019eb289-9021-7ce0-adf4-4c1deefccdd1_default" xlink:href="opc-20260630.xsd#opc_MemberCapitalComponentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_opc_MemberCapitalComponentsAxis_019eb289-9021-7ce0-adf4-4c1deefccdd1" xlink:to="loc_opc_MemberCapitalComponentsDomain_019eb289-9021-7ce0-adf4-4c1deefccdd1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_MemberCapitalComponentsDomain_019eb289-9021-785c-b9b5-9b0488fe7b56" xlink:href="opc-20260630.xsd#opc_MemberCapitalComponentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_opc_MemberCapitalComponentsAxis_019eb289-9021-7ce0-adf4-4c1deefccdd1" xlink:to="loc_opc_MemberCapitalComponentsDomain_019eb289-9021-785c-b9b5-9b0488fe7b56" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_PatronageCapitalAndMembershipFeesMember_019eb289-9021-7eff-a40a-fcb5f8a0559a" xlink:href="opc-20260630.xsd#opc_PatronageCapitalAndMembershipFeesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_MemberCapitalComponentsDomain_019eb289-9021-785c-b9b5-9b0488fe7b56" xlink:to="loc_opc_PatronageCapitalAndMembershipFeesMember_019eb289-9021-7eff-a40a-fcb5f8a0559a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_IncreaseDecreaseInMembersCapitalRollForward_019eb289-9021-751d-a286-388771fb8716" xlink:href="opc-20260630.xsd#opc_IncreaseDecreaseInMembersCapitalRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019eb289-9021-7b67-aed8-1b238106d886" xlink:to="loc_opc_IncreaseDecreaseInMembersCapitalRollForward_019eb289-9021-751d-a286-388771fb8716" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_PatronageCapitalAndMembershipFeesEquityNet_019eb289-9021-7b8b-bcdc-2231fb1753e5" xlink:href="opc-20260630.xsd#opc_PatronageCapitalAndMembershipFeesEquityNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_IncreaseDecreaseInMembersCapitalRollForward_019eb289-9021-751d-a286-388771fb8716" xlink:to="loc_opc_PatronageCapitalAndMembershipFeesEquityNet_019eb289-9021-7b8b-bcdc-2231fb1753e5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019eb289-9021-71eb-aee7-37272dc31976" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_IncreaseDecreaseInMembersCapitalRollForward_019eb289-9021-751d-a286-388771fb8716" xlink:to="loc_us-gaap_NetIncomeLoss_019eb289-9021-71eb-aee7-37272dc31976" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_PatronageCapitalAndMembershipFeesEquityNet_019eb289-9021-7bd3-a57c-fb89dfcb9ab6" xlink:href="opc-20260630.xsd#opc_PatronageCapitalAndMembershipFeesEquityNet"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.opc.com/role/FairValueScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails" xlink:type="simple" xlink:href="opc-20260630.xsd#FairValueScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"/>
  <link:definitionLink xlink:role="http://www.opc.com/role/FairValueScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019eb289-90e7-7da3-b000-799061f98d81" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019eb289-90e7-7c09-bf06-64d2476005ba" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019eb289-90e7-7da3-b000-799061f98d81" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019eb289-90e7-7c09-bf06-64d2476005ba" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019eb289-90e7-783c-ad9f-6fc7a9b70007" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019eb289-90e7-7c09-bf06-64d2476005ba" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019eb289-90e7-783c-ad9f-6fc7a9b70007" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019eb289-90e7-783c-ad9f-6fc7a9b70007_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019eb289-90e7-783c-ad9f-6fc7a9b70007" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019eb289-90e7-783c-ad9f-6fc7a9b70007_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019eb289-90e7-7a9d-a90e-d8be2e50c57d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019eb289-90e7-783c-ad9f-6fc7a9b70007" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019eb289-90e7-7a9d-a90e-d8be2e50c57d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_019eb289-90e7-7bee-b8df-46f2eccd890d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019eb289-90e7-7a9d-a90e-d8be2e50c57d" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_019eb289-90e7-7bee-b8df-46f2eccd890d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_019eb289-90e7-733e-93d1-19f33a013568" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019eb289-90e7-7a9d-a90e-d8be2e50c57d" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_019eb289-90e7-733e-93d1-19f33a013568" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_019eb289-90e7-7174-a5e3-cf1cffb928e4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019eb289-90e7-7a9d-a90e-d8be2e50c57d" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_019eb289-90e7-7174-a5e3-cf1cffb928e4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_019eb289-90e7-7b35-a59b-918d68d36fd6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019eb289-90e7-7c09-bf06-64d2476005ba" xlink:to="loc_us-gaap_FinancialInstrumentAxis_019eb289-90e7-7b35-a59b-918d68d36fd6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019eb289-90e7-7b35-a59b-918d68d36fd6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019eb289-90e7-7b35-a59b-918d68d36fd6" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019eb289-90e7-7b35-a59b-918d68d36fd6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019eb289-90e7-7fbe-8ba5-f05cede9dcc4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019eb289-90e7-7b35-a59b-918d68d36fd6" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019eb289-90e7-7fbe-8ba5-f05cede9dcc4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_DomesticEquityMember_019eb289-90e7-75a1-bef9-5ccf40a7d43c" xlink:href="opc-20260630.xsd#opc_DomesticEquityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019eb289-90e7-7fbe-8ba5-f05cede9dcc4" xlink:to="loc_opc_DomesticEquityMember_019eb289-90e7-75a1-bef9-5ccf40a7d43c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateBondSecuritiesMember_019eb289-90e7-7b66-b921-6250440c63f4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CorporateBondSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019eb289-90e7-7fbe-8ba5-f05cede9dcc4" xlink:to="loc_us-gaap_CorporateBondSecuritiesMember_019eb289-90e7-7b66-b921-6250440c63f4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasurySecuritiesMember_019eb289-90e7-7fcb-b288-b16a500c9096" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_USTreasurySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019eb289-90e7-7fbe-8ba5-f05cede9dcc4" xlink:to="loc_us-gaap_USTreasurySecuritiesMember_019eb289-90e7-7fcb-b288-b16a500c9096" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgageBackedSecuritiesMember_019eb289-90e7-7db8-9c6c-ce9edeb1a992" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_MortgageBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019eb289-90e7-7fbe-8ba5-f05cede9dcc4" xlink:to="loc_us-gaap_MortgageBackedSecuritiesMember_019eb289-90e7-7db8-9c6c-ce9edeb1a992" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MutualFundMember_019eb289-90e7-7321-866a-2d6d4d73795f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_MutualFundMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019eb289-90e7-7fbe-8ba5-f05cede9dcc4" xlink:to="loc_us-gaap_MutualFundMember_019eb289-90e7-7321-866a-2d6d4d73795f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MunicipalBondsMember_019eb289-90e7-7829-b35e-b0e1ddce61e9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_MunicipalBondsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019eb289-90e7-7fbe-8ba5-f05cede9dcc4" xlink:to="loc_us-gaap_MunicipalBondsMember_019eb289-90e7-7829-b35e-b0e1ddce61e9" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AgencySecuritiesMember_019eb289-90e7-756b-82bd-9a4b3dd08232" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AgencySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019eb289-90e7-7fbe-8ba5-f05cede9dcc4" xlink:to="loc_us-gaap_AgencySecuritiesMember_019eb289-90e7-756b-82bd-9a4b3dd08232" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_TreasurySeparateTradingOfRegisteredInterestAndPrincipalOfSecuritiesLongTermMember_019eb289-90e7-7b8d-b8bf-cace4714fcaf" xlink:href="opc-20260630.xsd#opc_TreasurySeparateTradingOfRegisteredInterestAndPrincipalOfSecuritiesLongTermMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019eb289-90e7-7fbe-8ba5-f05cede9dcc4" xlink:to="loc_opc_TreasurySeparateTradingOfRegisteredInterestAndPrincipalOfSecuritiesLongTermMember_019eb289-90e7-7b8d-b8bf-cace4714fcaf" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_NonUsGovernmentBondsAndPrivatePlacementMember_019eb289-90e7-767c-bef6-d1f975b44d79" xlink:href="opc-20260630.xsd#opc_NonUsGovernmentBondsAndPrivatePlacementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019eb289-90e7-7fbe-8ba5-f05cede9dcc4" xlink:to="loc_opc_NonUsGovernmentBondsAndPrivatePlacementMember_019eb289-90e7-767c-bef6-d1f975b44d79" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_InternationalMutualFundMember_019eb289-90e7-7b07-b72c-f92fa7db1e07" xlink:href="opc-20260630.xsd#opc_InternationalMutualFundMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019eb289-90e7-7fbe-8ba5-f05cede9dcc4" xlink:to="loc_opc_InternationalMutualFundMember_019eb289-90e7-7b07-b72c-f92fa7db1e07" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_OtherSecuritiesMember_019eb289-90e7-7b2d-8dd0-0deeb17ab9f4" xlink:href="opc-20260630.xsd#opc_OtherSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019eb289-90e7-7fbe-8ba5-f05cede9dcc4" xlink:to="loc_opc_OtherSecuritiesMember_019eb289-90e7-7b2d-8dd0-0deeb17ab9f4" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_TreasurySeparateTradingOfRegisteredInterestAndPrincipalOfSecuritiesShortTermMember_019eb289-90e7-75e8-af07-ef9c56624911" xlink:href="opc-20260630.xsd#opc_TreasurySeparateTradingOfRegisteredInterestAndPrincipalOfSecuritiesShortTermMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019eb289-90e7-7fbe-8ba5-f05cede9dcc4" xlink:to="loc_opc_TreasurySeparateTradingOfRegisteredInterestAndPrincipalOfSecuritiesShortTermMember_019eb289-90e7-75e8-af07-ef9c56624911" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_019eb289-90e7-763c-8cd7-341a085ff5c8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019eb289-90e7-7c09-bf06-64d2476005ba" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_019eb289-90e7-763c-8cd7-341a085ff5c8" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-763c-8cd7-341a085ff5c8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_019eb289-90e7-763c-8cd7-341a085ff5c8" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-763c-8cd7-341a085ff5c8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-7574-aa11-601d65b074e9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_019eb289-90e7-763c-8cd7-341a085ff5c8" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-7574-aa11-601d65b074e9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_019eb289-90e7-7438-9e50-aec3c37804ec" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommodityContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-7574-aa11-601d65b074e9" xlink:to="loc_us-gaap_CommodityContractMember_019eb289-90e7-7438-9e50-aec3c37804ec" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_NuclearDecommissioningTrustFundsFairValue_019eb289-90e7-7428-93b4-831faa721e9b" xlink:href="opc-20260630.xsd#opc_NuclearDecommissioningTrustFundsFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019eb289-90e7-7da3-b000-799061f98d81" xlink:to="loc_opc_NuclearDecommissioningTrustFundsFairValue_019eb289-90e7-7428-93b4-831faa721e9b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentsFairValueDisclosure_019eb289-90e7-7955-85c3-4a5053bd43ab" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019eb289-90e7-7da3-b000-799061f98d81" xlink:to="loc_us-gaap_InvestmentsFairValueDisclosure_019eb289-90e7-7955-85c3-4a5053bd43ab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_019eb289-90e7-7a50-9d6f-ce26a9dcb4dc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019eb289-90e7-7da3-b000-799061f98d81" xlink:to="loc_us-gaap_DerivativeAssets_019eb289-90e7-7a50-9d6f-ce26a9dcb4dc" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.opc.com/role/FairValueScheduleofEstimatedFairValuesofLongtermDebtIncludingCurrentMaturitiesDetails" xlink:type="simple" xlink:href="opc-20260630.xsd#FairValueScheduleofEstimatedFairValuesofLongtermDebtIncludingCurrentMaturitiesDetails"/>
  <link:definitionLink xlink:role="http://www.opc.com/role/FairValueScheduleofEstimatedFairValuesofLongtermDebtIncludingCurrentMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_019eb289-90e7-7579-a024-bfc963c0c76c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_019eb289-90e7-7155-af86-25ed4a61478b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueByBalanceSheetGroupingTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_019eb289-90e7-7579-a024-bfc963c0c76c" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_019eb289-90e7-7155-af86-25ed4a61478b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementBasisAxis_019eb289-90e7-74cf-b453-72ef86a8f7a2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueByMeasurementBasisAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_019eb289-90e7-7155-af86-25ed4a61478b" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_019eb289-90e7-74cf-b453-72ef86a8f7a2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_019eb289-90e7-74cf-b453-72ef86a8f7a2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_019eb289-90e7-74cf-b453-72ef86a8f7a2" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_019eb289-90e7-74cf-b453-72ef86a8f7a2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueDisclosureItemAmountsDomain_019eb289-90e7-7ca4-918f-67587dd27fbf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueDisclosureItemAmountsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_019eb289-90e7-74cf-b453-72ef86a8f7a2" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_019eb289-90e7-7ca4-918f-67587dd27fbf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_019eb289-90e7-7ecc-80ff-0616bae0ffee" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_019eb289-90e7-7ca4-918f-67587dd27fbf" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_019eb289-90e7-7ecc-80ff-0616bae0ffee" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_019eb289-90e7-77b9-acc3-c214c7d9ee1a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CarryingReportedAmountFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_019eb289-90e7-7ecc-80ff-0616bae0ffee" xlink:to="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_019eb289-90e7-77b9-acc3-c214c7d9ee1a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_019eb289-90e7-78ab-9588-6e0719d6d88e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EstimateOfFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_019eb289-90e7-7ecc-80ff-0616bae0ffee" xlink:to="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_019eb289-90e7-78ab-9588-6e0719d6d88e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019eb289-90e7-7f92-bcfa-e0400ee1d8a4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_019eb289-90e7-7155-af86-25ed4a61478b" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019eb289-90e7-7f92-bcfa-e0400ee1d8a4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019eb289-90e7-7f92-bcfa-e0400ee1d8a4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019eb289-90e7-7f92-bcfa-e0400ee1d8a4" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019eb289-90e7-7f92-bcfa-e0400ee1d8a4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019eb289-90e7-7fe8-9aa8-f96e91927e92" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019eb289-90e7-7f92-bcfa-e0400ee1d8a4" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019eb289-90e7-7fe8-9aa8-f96e91927e92" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_019eb289-90e7-7b91-a125-eaa28813ceab" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019eb289-90e7-7fe8-9aa8-f96e91927e92" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_019eb289-90e7-7b91-a125-eaa28813ceab" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtFairValue_019eb289-90e7-7d42-b403-8f9800ed9423" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_019eb289-90e7-7579-a024-bfc963c0c76c" xlink:to="loc_us-gaap_LongTermDebtFairValue_019eb289-90e7-7d42-b403-8f9800ed9423" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.opc.com/role/DerivativeInstrumentsNarrativeDetails" xlink:type="simple" xlink:href="opc-20260630.xsd#DerivativeInstrumentsNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.opc.com/role/DerivativeInstrumentsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_019eb289-90e7-7f7c-9b2b-477dfe36542d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_019eb289-90e7-7060-80c0-4fd9c23bab57" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_019eb289-90e7-7f7c-9b2b-477dfe36542d" xlink:to="loc_us-gaap_DerivativeTable_019eb289-90e7-7060-80c0-4fd9c23bab57" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_019eb289-90e7-7d91-92fa-e0a7afe68283" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_019eb289-90e7-7060-80c0-4fd9c23bab57" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_019eb289-90e7-7d91-92fa-e0a7afe68283" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-7d91-92fa-e0a7afe68283_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_019eb289-90e7-7d91-92fa-e0a7afe68283" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-7d91-92fa-e0a7afe68283_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-7f5e-aef1-082103d666d0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_019eb289-90e7-7d91-92fa-e0a7afe68283" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-7f5e-aef1-082103d666d0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_019eb289-90e7-7389-b8bb-7dd79bc017e6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommodityContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-7f5e-aef1-082103d666d0" xlink:to="loc_us-gaap_CommodityContractMember_019eb289-90e7-7389-b8bb-7dd79bc017e6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet_019eb289-90e7-7740-87c2-7077224b0528" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_019eb289-90e7-7f7c-9b2b-477dfe36542d" xlink:to="loc_us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet_019eb289-90e7-7740-87c2-7077224b0528" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_NumberOfPartiesRequiredToPostCollateral_019eb289-90e7-7c42-9417-04119eba67eb" xlink:href="opc-20260630.xsd#opc_NumberOfPartiesRequiredToPostCollateral"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_019eb289-90e7-7f7c-9b2b-477dfe36542d" xlink:to="loc_opc_NumberOfPartiesRequiredToPostCollateral_019eb289-90e7-7c42-9417-04119eba67eb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralAlreadyPostedAggregateFairValue_019eb289-90e7-7f66-b75c-f284f7a8b837" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CollateralAlreadyPostedAggregateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_019eb289-90e7-7f7c-9b2b-477dfe36542d" xlink:to="loc_us-gaap_CollateralAlreadyPostedAggregateFairValue_019eb289-90e7-7f66-b75c-f284f7a8b837" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.opc.com/role/DerivativeInstrumentsScheduleofNotionalVolumeofNaturalGasDerivativesthatisExpectedtoSettleorMatureEachYearDetails" xlink:type="simple" xlink:href="opc-20260630.xsd#DerivativeInstrumentsScheduleofNotionalVolumeofNaturalGasDerivativesthatisExpectedtoSettleorMatureEachYearDetails"/>
  <link:definitionLink xlink:role="http://www.opc.com/role/DerivativeInstrumentsScheduleofNotionalVolumeofNaturalGasDerivativesthatisExpectedtoSettleorMatureEachYearDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_019eb289-90e7-7a7f-8786-983acb2728ef" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_019eb289-90e7-74f4-a16d-d438eb3ccbba" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_019eb289-90e7-7a7f-8786-983acb2728ef" xlink:to="loc_us-gaap_DerivativeTable_019eb289-90e7-74f4-a16d-d438eb3ccbba" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_019eb289-90e7-733f-8758-1508fa4147a3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_019eb289-90e7-74f4-a16d-d438eb3ccbba" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_019eb289-90e7-733f-8758-1508fa4147a3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-733f-8758-1508fa4147a3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_019eb289-90e7-733f-8758-1508fa4147a3" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-733f-8758-1508fa4147a3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-7b36-96eb-f60b9eeb8195" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_019eb289-90e7-733f-8758-1508fa4147a3" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-7b36-96eb-f60b9eeb8195" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_019eb289-90e7-7f8f-a546-c6546d610d71" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommodityContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-7b36-96eb-f60b9eeb8195" xlink:to="loc_us-gaap_CommodityContractMember_019eb289-90e7-7f8f-a546-c6546d610d71" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_DerivativeSettlementOrMaturityByPeriodAxis_019eb289-90e7-7b91-8abd-7fc510b8a991" xlink:href="opc-20260630.xsd#opc_DerivativeSettlementOrMaturityByPeriodAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_019eb289-90e7-74f4-a16d-d438eb3ccbba" xlink:to="loc_opc_DerivativeSettlementOrMaturityByPeriodAxis_019eb289-90e7-7b91-8abd-7fc510b8a991" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_DerivativeSettlementOrMaturityByPeriodDomain_019eb289-90e7-7b91-8abd-7fc510b8a991_default" xlink:href="opc-20260630.xsd#opc_DerivativeSettlementOrMaturityByPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_opc_DerivativeSettlementOrMaturityByPeriodAxis_019eb289-90e7-7b91-8abd-7fc510b8a991" xlink:to="loc_opc_DerivativeSettlementOrMaturityByPeriodDomain_019eb289-90e7-7b91-8abd-7fc510b8a991_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_DerivativeSettlementOrMaturityByPeriodDomain_019eb289-90e7-7dcc-8c63-2253e6ec3604" xlink:href="opc-20260630.xsd#opc_DerivativeSettlementOrMaturityByPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_opc_DerivativeSettlementOrMaturityByPeriodAxis_019eb289-90e7-7b91-8abd-7fc510b8a991" xlink:to="loc_opc_DerivativeSettlementOrMaturityByPeriodDomain_019eb289-90e7-7dcc-8c63-2253e6ec3604" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_SettlementOrMaturityPeriodRemainderOfCurrentFiscalYearMember_019eb289-90e7-73b4-b4f0-e1b158c634f4" xlink:href="opc-20260630.xsd#opc_SettlementOrMaturityPeriodRemainderOfCurrentFiscalYearMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_DerivativeSettlementOrMaturityByPeriodDomain_019eb289-90e7-7dcc-8c63-2253e6ec3604" xlink:to="loc_opc_SettlementOrMaturityPeriodRemainderOfCurrentFiscalYearMember_019eb289-90e7-73b4-b4f0-e1b158c634f4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_SettlementOrMaturityPeriodYearOneMember_019eb289-90e7-7111-a7dd-0d13f27355fa" xlink:href="opc-20260630.xsd#opc_SettlementOrMaturityPeriodYearOneMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_DerivativeSettlementOrMaturityByPeriodDomain_019eb289-90e7-7dcc-8c63-2253e6ec3604" xlink:to="loc_opc_SettlementOrMaturityPeriodYearOneMember_019eb289-90e7-7111-a7dd-0d13f27355fa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_SettlementOrMaturityPeriodYearTwoMember_019eb289-90e7-7676-9f97-8cfd633413b5" xlink:href="opc-20260630.xsd#opc_SettlementOrMaturityPeriodYearTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_DerivativeSettlementOrMaturityByPeriodDomain_019eb289-90e7-7dcc-8c63-2253e6ec3604" xlink:to="loc_opc_SettlementOrMaturityPeriodYearTwoMember_019eb289-90e7-7676-9f97-8cfd633413b5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_SettlementOrMaturityPeriodYearThreeMember_019eb289-90e7-7621-93d3-e5a6a9850f6a" xlink:href="opc-20260630.xsd#opc_SettlementOrMaturityPeriodYearThreeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_DerivativeSettlementOrMaturityByPeriodDomain_019eb289-90e7-7dcc-8c63-2253e6ec3604" xlink:to="loc_opc_SettlementOrMaturityPeriodYearThreeMember_019eb289-90e7-7621-93d3-e5a6a9850f6a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_SettlementOrMaturityPeriodYearFourMember_019eb289-90e7-784c-989b-4516637388b3" xlink:href="opc-20260630.xsd#opc_SettlementOrMaturityPeriodYearFourMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_DerivativeSettlementOrMaturityByPeriodDomain_019eb289-90e7-7dcc-8c63-2253e6ec3604" xlink:to="loc_opc_SettlementOrMaturityPeriodYearFourMember_019eb289-90e7-784c-989b-4516637388b3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_SettlementOrMaturityPeriodYearFiveMember_019eb289-90e7-7970-9662-b76ac1bfdbbc" xlink:href="opc-20260630.xsd#opc_SettlementOrMaturityPeriodYearFiveMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_DerivativeSettlementOrMaturityByPeriodDomain_019eb289-90e7-7dcc-8c63-2253e6ec3604" xlink:to="loc_opc_SettlementOrMaturityPeriodYearFiveMember_019eb289-90e7-7970-9662-b76ac1bfdbbc" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNonmonetaryNotionalAmountEnergyMeasure_019eb289-90e7-7e42-ad92-064377947be2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeNonmonetaryNotionalAmountEnergyMeasure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_019eb289-90e7-7a7f-8786-983acb2728ef" xlink:to="loc_us-gaap_DerivativeNonmonetaryNotionalAmountEnergyMeasure_019eb289-90e7-7e42-ad92-064377947be2" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.opc.com/role/DerivativeInstrumentsScheduleofFairValueofDerivativeInstrumentsNotDesignatedasHedgingDetails" xlink:type="simple" xlink:href="opc-20260630.xsd#DerivativeInstrumentsScheduleofFairValueofDerivativeInstrumentsNotDesignatedasHedgingDetails"/>
  <link:definitionLink xlink:role="http://www.opc.com/role/DerivativeInstrumentsScheduleofFairValueofDerivativeInstrumentsNotDesignatedasHedgingDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativesFairValueLineItems_019eb289-90e7-7b3e-a033-0d5bd37c1c4b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativesFairValueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_019eb289-90e7-7fea-b50b-1fb420544b72" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_019eb289-90e7-7b3e-a033-0d5bd37c1c4b" xlink:to="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_019eb289-90e7-7fea-b50b-1fb420544b72" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_019eb289-90e7-7d3f-b998-21d82ad92ac3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_019eb289-90e7-7fea-b50b-1fb420544b72" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_019eb289-90e7-7d3f-b998-21d82ad92ac3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-7d3f-b998-21d82ad92ac3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_019eb289-90e7-7d3f-b998-21d82ad92ac3" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-7d3f-b998-21d82ad92ac3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-7be1-a20e-b021493e64f8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_019eb289-90e7-7d3f-b998-21d82ad92ac3" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-7be1-a20e-b021493e64f8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_019eb289-90e7-71c5-bba7-c9a04665a4f0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommodityContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-7be1-a20e-b021493e64f8" xlink:to="loc_us-gaap_CommodityContractMember_019eb289-90e7-71c5-bba7-c9a04665a4f0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementOfFinancialPositionLocationBalanceAxis_019eb289-90e7-7578-afc7-ea44b9e681dc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementOfFinancialPositionLocationBalanceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_019eb289-90e7-7fea-b50b-1fb420544b72" xlink:to="loc_us-gaap_StatementOfFinancialPositionLocationBalanceAxis_019eb289-90e7-7578-afc7-ea44b9e681dc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueNetAbstract_019eb289-90e7-7180-a8e7-be751c2b0e9c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssetFairValueNetAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_019eb289-90e7-7b3e-a033-0d5bd37c1c4b" xlink:to="loc_us-gaap_DerivativeAssetFairValueNetAbstract_019eb289-90e7-7180-a8e7-be751c2b0e9c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_019eb289-90e7-7126-9953-224b5dedfc89" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeAssetFairValueNetAbstract_019eb289-90e7-7180-a8e7-be751c2b0e9c" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_019eb289-90e7-7126-9953-224b5dedfc89" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_019eb289-90e7-71df-a86b-1cebf44baa8d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssetFairValueGrossLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeAssetFairValueNetAbstract_019eb289-90e7-7180-a8e7-be751c2b0e9c" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_019eb289-90e7-71df-a86b-1cebf44baa8d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_019eb289-90e7-777f-a842-530806c254e0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeAssetFairValueNetAbstract_019eb289-90e7-7180-a8e7-be751c2b0e9c" xlink:to="loc_us-gaap_DerivativeAssets_019eb289-90e7-777f-a842-530806c254e0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueNetAbstract_019eb289-90e7-751b-8bd0-5545c7eefdcb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilityFairValueNetAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_019eb289-90e7-7b3e-a033-0d5bd37c1c4b" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueNetAbstract_019eb289-90e7-751b-8bd0-5545c7eefdcb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_019eb289-90e7-7c5b-9996-eb13137d661e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLiabilityFairValueNetAbstract_019eb289-90e7-751b-8bd0-5545c7eefdcb" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_019eb289-90e7-7c5b-9996-eb13137d661e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_019eb289-90e7-741d-9ee0-d2082a5b695f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLiabilityFairValueNetAbstract_019eb289-90e7-751b-8bd0-5545c7eefdcb" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_019eb289-90e7-741d-9ee0-d2082a5b695f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_019eb289-90e7-77ff-a6b1-9fb8f2d6607a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLiabilityFairValueNetAbstract_019eb289-90e7-751b-8bd0-5545c7eefdcb" xlink:to="loc_us-gaap_DerivativeLiabilities_019eb289-90e7-77ff-a6b1-9fb8f2d6607a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_DerivativeSubjectToMasterNettingArrangementOffsetNet_019eb289-90e7-7cd2-afde-6452b5fd2d0c" xlink:href="opc-20260630.xsd#opc_DerivativeSubjectToMasterNettingArrangementOffsetNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_019eb289-90e7-7b3e-a033-0d5bd37c1c4b" xlink:to="loc_opc_DerivativeSubjectToMasterNettingArrangementOffsetNet_019eb289-90e7-7cd2-afde-6452b5fd2d0c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_DerivativeSubjectToMasterNettingArrangementBeforeOffsetNet_019eb289-90e7-79aa-b8a4-36451444b3ff" xlink:href="opc-20260630.xsd#opc_DerivativeSubjectToMasterNettingArrangementBeforeOffsetNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_019eb289-90e7-7b3e-a033-0d5bd37c1c4b" xlink:to="loc_opc_DerivativeSubjectToMasterNettingArrangementBeforeOffsetNet_019eb289-90e7-79aa-b8a4-36451444b3ff" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet_019eb289-90e7-7442-9725-66795f317fc4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_019eb289-90e7-7b3e-a033-0d5bd37c1c4b" xlink:to="loc_us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet_019eb289-90e7-7442-9725-66795f317fc4" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.opc.com/role/DerivativeInstrumentsScheduleofFairValueofDerivativeInstrumentsNotDesignatedasHedgingDetails_1" xlink:type="simple" xlink:href="opc-20260630.xsd#DerivativeInstrumentsScheduleofFairValueofDerivativeInstrumentsNotDesignatedasHedgingDetails_1"/>
  <link:definitionLink xlink:role="http://www.opc.com/role/DerivativeInstrumentsScheduleofFairValueofDerivativeInstrumentsNotDesignatedasHedgingDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativesFairValueLineItems_019eb289-90e7-7b3e-a033-0d5bd37c1c4b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativesFairValueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_019eb289-90e7-7fea-b50b-1fb420544b72" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_019eb289-90e7-7b3e-a033-0d5bd37c1c4b" xlink:to="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_019eb289-90e7-7fea-b50b-1fb420544b72" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_019eb289-90e7-7d3f-b998-21d82ad92ac3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_019eb289-90e7-7fea-b50b-1fb420544b72" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_019eb289-90e7-7d3f-b998-21d82ad92ac3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-7d3f-b998-21d82ad92ac3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_019eb289-90e7-7d3f-b998-21d82ad92ac3" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-7d3f-b998-21d82ad92ac3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-7be1-a20e-b021493e64f8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_019eb289-90e7-7d3f-b998-21d82ad92ac3" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-7be1-a20e-b021493e64f8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_019eb289-90e7-71c5-bba7-c9a04665a4f0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommodityContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-7be1-a20e-b021493e64f8" xlink:to="loc_us-gaap_CommodityContractMember_019eb289-90e7-71c5-bba7-c9a04665a4f0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueNetAbstract_019eb289-90e7-7180-a8e7-be751c2b0e9c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssetFairValueNetAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_019eb289-90e7-7b3e-a033-0d5bd37c1c4b" xlink:to="loc_us-gaap_DerivativeAssetFairValueNetAbstract_019eb289-90e7-7180-a8e7-be751c2b0e9c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_019eb289-90e7-7126-9953-224b5dedfc89" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeAssetFairValueNetAbstract_019eb289-90e7-7180-a8e7-be751c2b0e9c" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_019eb289-90e7-7126-9953-224b5dedfc89" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_019eb289-90e7-71df-a86b-1cebf44baa8d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssetFairValueGrossLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeAssetFairValueNetAbstract_019eb289-90e7-7180-a8e7-be751c2b0e9c" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_019eb289-90e7-71df-a86b-1cebf44baa8d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_019eb289-90e7-777f-a842-530806c254e0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeAssetFairValueNetAbstract_019eb289-90e7-7180-a8e7-be751c2b0e9c" xlink:to="loc_us-gaap_DerivativeAssets_019eb289-90e7-777f-a842-530806c254e0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueNetAbstract_019eb289-90e7-751b-8bd0-5545c7eefdcb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilityFairValueNetAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_019eb289-90e7-7b3e-a033-0d5bd37c1c4b" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueNetAbstract_019eb289-90e7-751b-8bd0-5545c7eefdcb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_019eb289-90e7-7c5b-9996-eb13137d661e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLiabilityFairValueNetAbstract_019eb289-90e7-751b-8bd0-5545c7eefdcb" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_019eb289-90e7-7c5b-9996-eb13137d661e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_019eb289-90e7-741d-9ee0-d2082a5b695f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLiabilityFairValueNetAbstract_019eb289-90e7-751b-8bd0-5545c7eefdcb" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_019eb289-90e7-741d-9ee0-d2082a5b695f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_019eb289-90e7-77ff-a6b1-9fb8f2d6607a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLiabilityFairValueNetAbstract_019eb289-90e7-751b-8bd0-5545c7eefdcb" xlink:to="loc_us-gaap_DerivativeLiabilities_019eb289-90e7-77ff-a6b1-9fb8f2d6607a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_DerivativeSubjectToMasterNettingArrangementOffsetNet_019eb289-90e7-7cd2-afde-6452b5fd2d0c" xlink:href="opc-20260630.xsd#opc_DerivativeSubjectToMasterNettingArrangementOffsetNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_019eb289-90e7-7b3e-a033-0d5bd37c1c4b" xlink:to="loc_opc_DerivativeSubjectToMasterNettingArrangementOffsetNet_019eb289-90e7-7cd2-afde-6452b5fd2d0c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_DerivativeSubjectToMasterNettingArrangementBeforeOffsetNet_019eb289-90e7-79aa-b8a4-36451444b3ff" xlink:href="opc-20260630.xsd#opc_DerivativeSubjectToMasterNettingArrangementBeforeOffsetNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_019eb289-90e7-7b3e-a033-0d5bd37c1c4b" xlink:to="loc_opc_DerivativeSubjectToMasterNettingArrangementBeforeOffsetNet_019eb289-90e7-79aa-b8a4-36451444b3ff" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet_019eb289-90e7-7442-9725-66795f317fc4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_019eb289-90e7-7b3e-a033-0d5bd37c1c4b" xlink:to="loc_us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet_019eb289-90e7-7442-9725-66795f317fc4" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.opc.com/role/DerivativeInstrumentsScheduleofRealizedandUnrealizedGainsLossesonDerivativeInstrumentsDetails" xlink:type="simple" xlink:href="opc-20260630.xsd#DerivativeInstrumentsScheduleofRealizedandUnrealizedGainsLossesonDerivativeInstrumentsDetails"/>
  <link:definitionLink xlink:role="http://www.opc.com/role/DerivativeInstrumentsScheduleofRealizedandUnrealizedGainsLossesonDerivativeInstrumentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_019eb289-90e7-7505-bf56-61b9fd6e984d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeInstrumentsGainLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_019eb289-90e7-7622-b4ae-f964b55066a5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_019eb289-90e7-7505-bf56-61b9fd6e984d" xlink:to="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_019eb289-90e7-7622-b4ae-f964b55066a5" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_019eb289-90e7-7133-8029-d40466a82c25" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_019eb289-90e7-7622-b4ae-f964b55066a5" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_019eb289-90e7-7133-8029-d40466a82c25" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-7133-8029-d40466a82c25_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_019eb289-90e7-7133-8029-d40466a82c25" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-7133-8029-d40466a82c25_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-7a8c-bd33-0eb61517cd2e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_019eb289-90e7-7133-8029-d40466a82c25" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-7a8c-bd33-0eb61517cd2e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_019eb289-90e7-7723-9240-4a9d9a421ba0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommodityContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_019eb289-90e7-7a8c-bd33-0eb61517cd2e" xlink:to="loc_us-gaap_CommodityContractMember_019eb289-90e7-7723-9240-4a9d9a421ba0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeGainLossOnDerivativeNetAbstract_019eb289-90e7-7b89-b55b-88dc3f1deace" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeGainLossOnDerivativeNetAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_019eb289-90e7-7505-bf56-61b9fd6e984d" xlink:to="loc_us-gaap_DerivativeGainLossOnDerivativeNetAbstract_019eb289-90e7-7b89-b55b-88dc3f1deace" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeGainOnDerivative_019eb289-90e7-7b17-aad4-676c42eff12c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeGainOnDerivative"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeGainLossOnDerivativeNetAbstract_019eb289-90e7-7b89-b55b-88dc3f1deace" xlink:to="loc_us-gaap_DerivativeGainOnDerivative_019eb289-90e7-7b17-aad4-676c42eff12c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLossOnDerivative_019eb289-90e7-796e-bbb6-507ddfc661c0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLossOnDerivative"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeGainLossOnDerivativeNetAbstract_019eb289-90e7-7b89-b55b-88dc3f1deace" xlink:to="loc_us-gaap_DerivativeLossOnDerivative_019eb289-90e7-796e-bbb6-507ddfc661c0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeGainLossOnDerivativeNet_019eb289-90e7-70da-9ceb-2882a8f551b9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeGainLossOnDerivativeNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeGainLossOnDerivativeNetAbstract_019eb289-90e7-7b89-b55b-88dc3f1deace" xlink:to="loc_us-gaap_DerivativeGainLossOnDerivativeNet_019eb289-90e7-70da-9ceb-2882a8f551b9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossOnDerivatives_019eb289-90e7-754b-aea4-c0f856030b51" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnrealizedGainLossOnDerivatives"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeGainLossOnDerivativeNetAbstract_019eb289-90e7-7b89-b55b-88dc3f1deace" xlink:to="loc_us-gaap_UnrealizedGainLossOnDerivatives_019eb289-90e7-754b-aea4-c0f856030b51" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.opc.com/role/RevenueRecognitionNarrativeDetails" xlink:type="simple" xlink:href="opc-20260630.xsd#RevenueRecognitionNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.opc.com/role/RevenueRecognitionNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_019eb289-90e7-7590-b160-98d8ec2b5eb6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_019eb289-90e7-7a87-9411-afc3cbfe7864" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019eb289-90e7-7590-b160-98d8ec2b5eb6" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_019eb289-90e7-7a87-9411-afc3cbfe7864" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementScenarioAxis_019eb289-90e7-7d28-a034-d7f678b7858f" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_StatementScenarioAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_019eb289-90e7-7a87-9411-afc3cbfe7864" xlink:to="loc_srt_StatementScenarioAxis_019eb289-90e7-7d28-a034-d7f678b7858f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_019eb289-90e7-7d28-a034-d7f678b7858f_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementScenarioAxis_019eb289-90e7-7d28-a034-d7f678b7858f" xlink:to="loc_srt_ScenarioUnspecifiedDomain_019eb289-90e7-7d28-a034-d7f678b7858f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_019eb289-90e7-7efb-a646-a6d357737ffc" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementScenarioAxis_019eb289-90e7-7d28-a034-d7f678b7858f" xlink:to="loc_srt_ScenarioUnspecifiedDomain_019eb289-90e7-7efb-a646-a6d357737ffc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioForecastMember_019eb289-90e7-7c1b-83da-e47566afb299" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ScenarioForecastMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ScenarioUnspecifiedDomain_019eb289-90e7-7efb-a646-a6d357737ffc" xlink:to="loc_srt_ScenarioForecastMember_019eb289-90e7-7c1b-83da-e47566afb299" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_019eb289-90e7-79b9-b507-a949772fa12f" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_019eb289-90e7-7a87-9411-afc3cbfe7864" xlink:to="loc_srt_MajorCustomersAxis_019eb289-90e7-79b9-b507-a949772fa12f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_019eb289-90e7-79b9-b507-a949772fa12f_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_019eb289-90e7-79b9-b507-a949772fa12f" xlink:to="loc_srt_NameOfMajorCustomerDomain_019eb289-90e7-79b9-b507-a949772fa12f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_019eb289-90e7-7bca-9eec-8256ddf8d896" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_019eb289-90e7-79b9-b507-a949772fa12f" xlink:to="loc_srt_NameOfMajorCustomerDomain_019eb289-90e7-7bca-9eec-8256ddf8d896" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_CooperativeMembersMember_019eb289-90e7-7cbc-9c76-02573f7d3540" xlink:href="opc-20260630.xsd#opc_CooperativeMembersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_019eb289-90e7-7bca-9eec-8256ddf8d896" xlink:to="loc_opc_CooperativeMembersMember_019eb289-90e7-7cbc-9c76-02573f7d3540" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_NonMembersMember_019eb289-90e7-7e29-bd6d-1255bf9ab93c" xlink:href="opc-20260630.xsd#opc_NonMembersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_019eb289-90e7-7bca-9eec-8256ddf8d896" xlink:to="loc_opc_NonMembersMember_019eb289-90e7-7e29-bd6d-1255bf9ab93c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_019eb289-90e7-7c7f-93bc-cf306d76b664" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_019eb289-90e7-7a87-9411-afc3cbfe7864" xlink:to="loc_srt_ProductOrServiceAxis_019eb289-90e7-7c7f-93bc-cf306d76b664" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_019eb289-90e7-7c7f-93bc-cf306d76b664_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_019eb289-90e7-7c7f-93bc-cf306d76b664" xlink:to="loc_srt_ProductsAndServicesDomain_019eb289-90e7-7c7f-93bc-cf306d76b664_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_019eb289-90e7-7833-a295-05a953c9101d" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_019eb289-90e7-7c7f-93bc-cf306d76b664" xlink:to="loc_srt_ProductsAndServicesDomain_019eb289-90e7-7833-a295-05a953c9101d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_SaleOfBobbyCSmithJrDeferringMembersOutputMember_019eb289-90e7-74a3-8b3d-ed8ebbe4cba5" xlink:href="opc-20260630.xsd#opc_SaleOfBobbyCSmithJrDeferringMembersOutputMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_019eb289-90e7-7833-a295-05a953c9101d" xlink:to="loc_opc_SaleOfBobbyCSmithJrDeferringMembersOutputMember_019eb289-90e7-74a3-8b3d-ed8ebbe4cba5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_019eb289-90e7-7d9f-8d90-ff6c825f6b08" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_019eb289-90e7-7a87-9411-afc3cbfe7864" xlink:to="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_019eb289-90e7-7d9f-8d90-ff6c825f6b08" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReceivableTypeDomain_019eb289-90e7-7d9f-8d90-ff6c825f6b08_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReceivableTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_019eb289-90e7-7d9f-8d90-ff6c825f6b08" xlink:to="loc_us-gaap_ReceivableTypeDomain_019eb289-90e7-7d9f-8d90-ff6c825f6b08_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReceivableTypeDomain_019eb289-90e7-7487-9fd6-66ebc49d7f79" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReceivableTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_019eb289-90e7-7d9f-8d90-ff6c825f6b08" xlink:to="loc_us-gaap_ReceivableTypeDomain_019eb289-90e7-7487-9fd6-66ebc49d7f79" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_ReceivableFromU.S.GovernmentNuclearProductionTaxCreditMember_019eb289-90e7-7061-86e7-88dc071bcc27" xlink:href="opc-20260630.xsd#opc_ReceivableFromU.S.GovernmentNuclearProductionTaxCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReceivableTypeDomain_019eb289-90e7-7487-9fd6-66ebc49d7f79" xlink:to="loc_opc_ReceivableFromU.S.GovernmentNuclearProductionTaxCreditMember_019eb289-90e7-7061-86e7-88dc071bcc27" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PublicUtilityAxis_019eb289-90e7-74fe-933b-733655175334" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PublicUtilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_019eb289-90e7-7a87-9411-afc3cbfe7864" xlink:to="loc_us-gaap_PublicUtilityAxis_019eb289-90e7-74fe-933b-733655175334" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UtilityPlantDomain_019eb289-90e7-74fe-933b-733655175334_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UtilityPlantDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PublicUtilityAxis_019eb289-90e7-74fe-933b-733655175334" xlink:to="loc_us-gaap_UtilityPlantDomain_019eb289-90e7-74fe-933b-733655175334_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UtilityPlantDomain_019eb289-90e7-75fb-9aeb-02cc36cc9c2d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UtilityPlantDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PublicUtilityAxis_019eb289-90e7-74fe-933b-733655175334" xlink:to="loc_us-gaap_UtilityPlantDomain_019eb289-90e7-75fb-9aeb-02cc36cc9c2d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_VogtleNewUnitsMember_019eb289-90e7-7895-8f78-755de3429c96" xlink:href="opc-20260630.xsd#opc_VogtleNewUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_UtilityPlantDomain_019eb289-90e7-75fb-9aeb-02cc36cc9c2d" xlink:to="loc_opc_VogtleNewUnitsMember_019eb289-90e7-7895-8f78-755de3429c96" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_SmarrCombinedCycleProjectMember_019eb289-90e7-7459-8afc-69b21b4a453d" xlink:href="opc-20260630.xsd#opc_SmarrCombinedCycleProjectMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_UtilityPlantDomain_019eb289-90e7-75fb-9aeb-02cc36cc9c2d" xlink:to="loc_opc_SmarrCombinedCycleProjectMember_019eb289-90e7-7459-8afc-69b21b4a453d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_NumberOfElectricDistributionCooperativeMembers_019eb289-90e7-77fe-b623-950f3d3a2297" xlink:href="opc-20260630.xsd#opc_NumberOfElectricDistributionCooperativeMembers"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019eb289-90e7-7590-b160-98d8ec2b5eb6" xlink:to="loc_opc_NumberOfElectricDistributionCooperativeMembers_019eb289-90e7-77fe-b623-950f3d3a2297" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_NumberOfServicesProvided_019eb289-90e7-7ceb-90a2-e5aa25f4cfc6" xlink:href="opc-20260630.xsd#opc_NumberOfServicesProvided"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019eb289-90e7-7590-b160-98d8ec2b5eb6" xlink:to="loc_opc_NumberOfServicesProvided_019eb289-90e7-7ceb-90a2-e5aa25f4cfc6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_MarginsForInterestRatio_019eb289-90e7-71df-8ffd-f3c87ffb0e77" xlink:href="opc-20260630.xsd#opc_MarginsForInterestRatio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019eb289-90e7-7590-b160-98d8ec2b5eb6" xlink:to="loc_opc_MarginsForInterestRatio_019eb289-90e7-71df-8ffd-f3c87ffb0e77" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_MinimumMarginsToInterestRatio_019eb289-90e7-7aa3-baaf-323b1ca89a16" xlink:href="opc-20260630.xsd#opc_MinimumMarginsToInterestRatio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019eb289-90e7-7590-b160-98d8ec2b5eb6" xlink:to="loc_opc_MinimumMarginsToInterestRatio_019eb289-90e7-7aa3-baaf-323b1ca89a16" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerRefundLiability_019eb289-90e7-74b9-8bee-05378d5496f3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerRefundLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019eb289-90e7-7590-b160-98d8ec2b5eb6" xlink:to="loc_us-gaap_ContractWithCustomerRefundLiability_019eb289-90e7-74b9-8bee-05378d5496f3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetGross_019eb289-90e7-7dae-afdc-cc1657471bce" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerAssetGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019eb289-90e7-7590-b160-98d8ec2b5eb6" xlink:to="loc_us-gaap_ContractWithCustomerAssetGross_019eb289-90e7-7dae-afdc-cc1657471bce" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetGrossCurrent_019eb289-90e7-71f3-bac5-89bd25e672ea" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerAssetGrossCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019eb289-90e7-7590-b160-98d8ec2b5eb6" xlink:to="loc_us-gaap_ContractWithCustomerAssetGrossCurrent_019eb289-90e7-71f3-bac5-89bd25e672ea" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetGrossNoncurrent_019eb289-90e7-74c4-ba96-d9af48160829" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerAssetGrossNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019eb289-90e7-7590-b160-98d8ec2b5eb6" xlink:to="loc_us-gaap_ContractWithCustomerAssetGrossNoncurrent_019eb289-90e7-74c4-ba96-d9af48160829" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_RateManagementProgramAdditionalCollectionPeriod_019eb289-90e7-7d6f-a53c-31b50b214911" xlink:href="opc-20260630.xsd#opc_RateManagementProgramAdditionalCollectionPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019eb289-90e7-7590-b160-98d8ec2b5eb6" xlink:to="loc_opc_RateManagementProgramAdditionalCollectionPeriod_019eb289-90e7-7d6f-a53c-31b50b214911" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_RateManagementProgramBillingPeriod_019eb289-90e7-7627-b469-2382c7dca829" xlink:href="opc-20260630.xsd#opc_RateManagementProgramBillingPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019eb289-90e7-7590-b160-98d8ec2b5eb6" xlink:to="loc_opc_RateManagementProgramBillingPeriod_019eb289-90e7-7627-b469-2382c7dca829" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_RateManagementProgramBillingAmount_019eb289-90e7-799c-9de7-6d2260773397" xlink:href="opc-20260630.xsd#opc_RateManagementProgramBillingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019eb289-90e7-7590-b160-98d8ec2b5eb6" xlink:to="loc_opc_RateManagementProgramBillingAmount_019eb289-90e7-799c-9de7-6d2260773397" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_ElectricGenerationRevenueCumulativeAmountRecoveredFromMembers_019eb289-90e7-7dc8-ab41-d113d497ea6a" xlink:href="opc-20260630.xsd#opc_ElectricGenerationRevenueCumulativeAmountRecoveredFromMembers"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019eb289-90e7-7590-b160-98d8ec2b5eb6" xlink:to="loc_opc_ElectricGenerationRevenueCumulativeAmountRecoveredFromMembers_019eb289-90e7-7dc8-ab41-d113d497ea6a" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_RateManagementProgramAmountExpectedToBeCollected_019eb289-90e7-7530-bffd-877aa392c31a" xlink:href="opc-20260630.xsd#opc_RateManagementProgramAmountExpectedToBeCollected"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019eb289-90e7-7590-b160-98d8ec2b5eb6" xlink:to="loc_opc_RateManagementProgramAmountExpectedToBeCollected_019eb289-90e7-7530-bffd-877aa392c31a" xlink:type="arc" order="12"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.opc.com/role/RevenueRecognitionScheduleofSalestoMembersandSalestoNonMembersDetails" xlink:type="simple" xlink:href="opc-20260630.xsd#RevenueRecognitionScheduleofSalestoMembersandSalestoNonMembersDetails"/>
  <link:definitionLink xlink:role="http://www.opc.com/role/RevenueRecognitionScheduleofSalestoMembersandSalestoNonMembersDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_019eb289-90e7-72e3-91f3-3c3220a163c1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_019eb289-90e7-7fbd-9255-e633bd3a9a15" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019eb289-90e7-72e3-91f3-3c3220a163c1" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_019eb289-90e7-7fbd-9255-e633bd3a9a15" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_019eb289-90e7-7856-9938-4e3f55d38790" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_019eb289-90e7-7fbd-9255-e633bd3a9a15" xlink:to="loc_srt_MajorCustomersAxis_019eb289-90e7-7856-9938-4e3f55d38790" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_019eb289-90e7-7856-9938-4e3f55d38790_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_019eb289-90e7-7856-9938-4e3f55d38790" xlink:to="loc_srt_NameOfMajorCustomerDomain_019eb289-90e7-7856-9938-4e3f55d38790_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_019eb289-90e7-7e04-9f65-22e8b15f0550" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_019eb289-90e7-7856-9938-4e3f55d38790" xlink:to="loc_srt_NameOfMajorCustomerDomain_019eb289-90e7-7e04-9f65-22e8b15f0550" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_CooperativeMembersMember_019eb289-90e7-7af5-9697-cfd2af187882" xlink:href="opc-20260630.xsd#opc_CooperativeMembersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_019eb289-90e7-7e04-9f65-22e8b15f0550" xlink:to="loc_opc_CooperativeMembersMember_019eb289-90e7-7af5-9697-cfd2af187882" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_NonMembersMember_019eb289-90e7-7a4c-ab03-f84d5147904c" xlink:href="opc-20260630.xsd#opc_NonMembersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_019eb289-90e7-7e04-9f65-22e8b15f0550" xlink:to="loc_opc_NonMembersMember_019eb289-90e7-7a4c-ab03-f84d5147904c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_019eb289-90e7-79fc-84bf-b4a845e99b2d" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_019eb289-90e7-7fbd-9255-e633bd3a9a15" xlink:to="loc_srt_ProductOrServiceAxis_019eb289-90e7-79fc-84bf-b4a845e99b2d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_019eb289-90e7-79fc-84bf-b4a845e99b2d_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_019eb289-90e7-79fc-84bf-b4a845e99b2d" xlink:to="loc_srt_ProductsAndServicesDomain_019eb289-90e7-79fc-84bf-b4a845e99b2d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_019eb289-90e7-78c4-a7e8-7ba35e2ed5bb" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_019eb289-90e7-79fc-84bf-b4a845e99b2d" xlink:to="loc_srt_ProductsAndServicesDomain_019eb289-90e7-78c4-a7e8-7ba35e2ed5bb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_CapacityServicesMember_019eb289-90e7-75a0-bcbd-c0ec54df49f4" xlink:href="opc-20260630.xsd#opc_CapacityServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_019eb289-90e7-78c4-a7e8-7ba35e2ed5bb" xlink:to="loc_opc_CapacityServicesMember_019eb289-90e7-75a0-bcbd-c0ec54df49f4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_EnergyServicesMember_019eb289-90e7-7af5-938f-503a25d62b67" xlink:href="opc-20260630.xsd#opc_EnergyServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_019eb289-90e7-78c4-a7e8-7ba35e2ed5bb" xlink:to="loc_opc_EnergyServicesMember_019eb289-90e7-7af5-938f-503a25d62b67" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019eb289-90e7-733f-8fb3-2f7f9f10578d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019eb289-90e7-72e3-91f3-3c3220a163c1" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019eb289-90e7-733f-8fb3-2f7f9f10578d" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.opc.com/role/LeasesNarrativeDetails" xlink:type="simple" xlink:href="opc-20260630.xsd#LeasesNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.opc.com/role/LeasesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_opc_LeaseDisclosureLineItems_019eb289-90e7-726f-99d3-97f8107509da" xlink:href="opc-20260630.xsd#opc_LeaseDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_LeaseDisclosureTable_019eb289-90e7-7f24-ad89-cc722733b2e1" xlink:href="opc-20260630.xsd#opc_LeaseDisclosureTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_opc_LeaseDisclosureLineItems_019eb289-90e7-726f-99d3-97f8107509da" xlink:to="loc_opc_LeaseDisclosureTable_019eb289-90e7-7f24-ad89-cc722733b2e1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PublicUtilityAxis_019eb289-90e7-7b85-abba-05acea1040d3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PublicUtilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_opc_LeaseDisclosureTable_019eb289-90e7-7f24-ad89-cc722733b2e1" xlink:to="loc_us-gaap_PublicUtilityAxis_019eb289-90e7-7b85-abba-05acea1040d3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UtilityPlantDomain_019eb289-90e7-7b85-abba-05acea1040d3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UtilityPlantDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PublicUtilityAxis_019eb289-90e7-7b85-abba-05acea1040d3" xlink:to="loc_us-gaap_UtilityPlantDomain_019eb289-90e7-7b85-abba-05acea1040d3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UtilityPlantDomain_019eb289-90e7-73b5-8d49-d2c2d82a5067" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UtilityPlantDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PublicUtilityAxis_019eb289-90e7-7b85-abba-05acea1040d3" xlink:to="loc_us-gaap_UtilityPlantDomain_019eb289-90e7-73b5-8d49-d2c2d82a5067" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_SchererUnitNumber2Member_019eb289-90e7-7f75-99e8-529c553151b5" xlink:href="opc-20260630.xsd#opc_SchererUnitNumber2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_UtilityPlantDomain_019eb289-90e7-73b5-8d49-d2c2d82a5067" xlink:to="loc_opc_SchererUnitNumber2Member_019eb289-90e7-7f75-99e8-529c553151b5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_LeaseArrangementsAxis_019eb289-90e7-71dc-95df-47e2ef49e6b0" xlink:href="opc-20260630.xsd#opc_LeaseArrangementsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_opc_LeaseDisclosureTable_019eb289-90e7-7f24-ad89-cc722733b2e1" xlink:to="loc_opc_LeaseArrangementsAxis_019eb289-90e7-71dc-95df-47e2ef49e6b0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_LeaseArrangementsDomain_019eb289-90e7-71dc-95df-47e2ef49e6b0_default" xlink:href="opc-20260630.xsd#opc_LeaseArrangementsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_opc_LeaseArrangementsAxis_019eb289-90e7-71dc-95df-47e2ef49e6b0" xlink:to="loc_opc_LeaseArrangementsDomain_019eb289-90e7-71dc-95df-47e2ef49e6b0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_LeaseArrangementsDomain_019eb289-90e7-76c2-bc6a-81378d5c1a76" xlink:href="opc-20260630.xsd#opc_LeaseArrangementsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_opc_LeaseArrangementsAxis_019eb289-90e7-71dc-95df-47e2ef49e6b0" xlink:to="loc_opc_LeaseArrangementsDomain_019eb289-90e7-76c2-bc6a-81378d5c1a76" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_FinanceLeaseAgreementsWithTermsThroughDecember312027Member_019eb289-90e7-7630-b1f6-430e09deae6c" xlink:href="opc-20260630.xsd#opc_FinanceLeaseAgreementsWithTermsThroughDecember312027Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_LeaseArrangementsDomain_019eb289-90e7-76c2-bc6a-81378d5c1a76" xlink:to="loc_opc_FinanceLeaseAgreementsWithTermsThroughDecember312027Member_019eb289-90e7-7630-b1f6-430e09deae6c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_FinanceLeaseAgreementsWithTermsThroughJune302031Member_019eb289-90e7-758e-8f99-2fb93691813f" xlink:href="opc-20260630.xsd#opc_FinanceLeaseAgreementsWithTermsThroughJune302031Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_LeaseArrangementsDomain_019eb289-90e7-76c2-bc6a-81378d5c1a76" xlink:to="loc_opc_FinanceLeaseAgreementsWithTermsThroughJune302031Member_019eb289-90e7-758e-8f99-2fb93691813f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_OperatingLeaseAgreementsWithTermsThroughFebruary2042Member_019eb289-90e7-70ed-b606-715765173fcb" xlink:href="opc-20260630.xsd#opc_OperatingLeaseAgreementsWithTermsThroughFebruary2042Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_LeaseArrangementsDomain_019eb289-90e7-76c2-bc6a-81378d5c1a76" xlink:to="loc_opc_OperatingLeaseAgreementsWithTermsThroughFebruary2042Member_019eb289-90e7-70ed-b606-715765173fcb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019eb289-90e7-7cfc-93ee-e1c88741c14d" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_opc_LeaseDisclosureTable_019eb289-90e7-7f24-ad89-cc722733b2e1" xlink:to="loc_srt_RangeAxis_019eb289-90e7-7cfc-93ee-e1c88741c14d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019eb289-90e7-7cfc-93ee-e1c88741c14d_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019eb289-90e7-7cfc-93ee-e1c88741c14d" xlink:to="loc_srt_RangeMember_019eb289-90e7-7cfc-93ee-e1c88741c14d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019eb289-90e7-7558-a4dc-c6798c36a064" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019eb289-90e7-7cfc-93ee-e1c88741c14d" xlink:to="loc_srt_RangeMember_019eb289-90e7-7558-a4dc-c6798c36a064" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_019eb289-90e7-72b4-b5f0-dd49211eb857" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019eb289-90e7-7558-a4dc-c6798c36a064" xlink:to="loc_srt_MinimumMember_019eb289-90e7-72b4-b5f0-dd49211eb857" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019eb289-90e7-768f-bdff-12a29b9b2644" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019eb289-90e7-7558-a4dc-c6798c36a064" xlink:to="loc_srt_MaximumMember_019eb289-90e7-768f-bdff-12a29b9b2644" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseContractualTermAxis_019eb289-90e7-76e0-9986-89605a02cd2f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LeaseContractualTermAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_opc_LeaseDisclosureTable_019eb289-90e7-7f24-ad89-cc722733b2e1" xlink:to="loc_us-gaap_LeaseContractualTermAxis_019eb289-90e7-76e0-9986-89605a02cd2f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseContractualTermDomain_019eb289-90e7-76e0-9986-89605a02cd2f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LeaseContractualTermDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LeaseContractualTermAxis_019eb289-90e7-76e0-9986-89605a02cd2f" xlink:to="loc_us-gaap_LeaseContractualTermDomain_019eb289-90e7-76e0-9986-89605a02cd2f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseContractualTermDomain_019eb289-90e7-775d-bdcc-5907d8bf5bcc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LeaseContractualTermDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LeaseContractualTermAxis_019eb289-90e7-76e0-9986-89605a02cd2f" xlink:to="loc_us-gaap_LeaseContractualTermDomain_019eb289-90e7-775d-bdcc-5907d8bf5bcc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_OperatingLeaseAgreementsWithTermsThroughFebruary2042Member_019eb289-90e7-7be4-a4a2-b63cd677648a" xlink:href="opc-20260630.xsd#opc_OperatingLeaseAgreementsWithTermsThroughFebruary2042Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LeaseContractualTermDomain_019eb289-90e7-775d-bdcc-5907d8bf5bcc" xlink:to="loc_opc_OperatingLeaseAgreementsWithTermsThroughFebruary2042Member_019eb289-90e7-7be4-a4a2-b63cd677648a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_PercentageOfUndividedInterestPropertyPlantAndEquipment_019eb289-90e7-7277-9d6d-0048016ebd4d" xlink:href="opc-20260630.xsd#opc_PercentageOfUndividedInterestPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_LeaseDisclosureLineItems_019eb289-90e7-726f-99d3-97f8107509da" xlink:to="loc_opc_PercentageOfUndividedInterestPropertyPlantAndEquipment_019eb289-90e7-7277-9d6d-0048016ebd4d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_NumberOfFinanceLeases_019eb289-90e7-7b62-8ad8-4fb0b9bf8ea6" xlink:href="opc-20260630.xsd#opc_NumberOfFinanceLeases"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_LeaseDisclosureLineItems_019eb289-90e7-726f-99d3-97f8107509da" xlink:to="loc_opc_NumberOfFinanceLeases_019eb289-90e7-7b62-8ad8-4fb0b9bf8ea6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeFinanceLeaseRenewalTerm1_019eb289-90e7-788b-bb2f-fc727b4780f6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeFinanceLeaseRenewalTerm1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_LeaseDisclosureLineItems_019eb289-90e7-726f-99d3-97f8107509da" xlink:to="loc_us-gaap_LesseeFinanceLeaseRenewalTerm1_019eb289-90e7-788b-bb2f-fc727b4780f6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_NumberOfOperatingLeases_019eb289-90e7-7722-b723-74ffcf6944e7" xlink:href="opc-20260630.xsd#opc_NumberOfOperatingLeases"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_LeaseDisclosureLineItems_019eb289-90e7-726f-99d3-97f8107509da" xlink:to="loc_opc_NumberOfOperatingLeases_019eb289-90e7-7722-b723-74ffcf6944e7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_LesseeOperatingLeaseNumberOfRenewalOptions_019eb289-90e7-7b04-ac62-4176202d3e5c" xlink:href="opc-20260630.xsd#opc_LesseeOperatingLeaseNumberOfRenewalOptions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_LeaseDisclosureLineItems_019eb289-90e7-726f-99d3-97f8107509da" xlink:to="loc_opc_LesseeOperatingLeaseNumberOfRenewalOptions_019eb289-90e7-7b04-ac62-4176202d3e5c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseRenewalTerm_019eb289-90e7-7f85-bf43-ad3660a3ba47" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseRenewalTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_LeaseDisclosureLineItems_019eb289-90e7-726f-99d3-97f8107509da" xlink:to="loc_us-gaap_LesseeOperatingLeaseRenewalTerm_019eb289-90e7-7f85-bf43-ad3660a3ba47" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.opc.com/role/RegulatoryAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="opc-20260630.xsd#RegulatoryAssetsandLiabilitiesDetails"/>
  <link:definitionLink xlink:role="http://www.opc.com/role/RegulatoryAssetsandLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_opc_RegulatoryAssetsAndLiabilitiesLineItems_019eb289-90e7-7c3e-bb95-5f5623c20331" xlink:href="opc-20260630.xsd#opc_RegulatoryAssetsAndLiabilitiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_ScheduleOfRegulatoryAssetsAndLiabilitiesTable_019eb289-90e7-7626-a6ab-3c0cc65285c6" xlink:href="opc-20260630.xsd#opc_ScheduleOfRegulatoryAssetsAndLiabilitiesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_opc_RegulatoryAssetsAndLiabilitiesLineItems_019eb289-90e7-7c3e-bb95-5f5623c20331" xlink:to="loc_opc_ScheduleOfRegulatoryAssetsAndLiabilitiesTable_019eb289-90e7-7626-a6ab-3c0cc65285c6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryAssetAxis_019eb289-90e7-754f-97b2-17a4cb9ee413" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RegulatoryAssetAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_opc_ScheduleOfRegulatoryAssetsAndLiabilitiesTable_019eb289-90e7-7626-a6ab-3c0cc65285c6" xlink:to="loc_us-gaap_RegulatoryAssetAxis_019eb289-90e7-754f-97b2-17a4cb9ee413" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryAssetDomain_019eb289-90e7-754f-97b2-17a4cb9ee413_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RegulatoryAssetDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RegulatoryAssetAxis_019eb289-90e7-754f-97b2-17a4cb9ee413" xlink:to="loc_us-gaap_RegulatoryAssetDomain_019eb289-90e7-754f-97b2-17a4cb9ee413_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryAssetDomain_019eb289-90e7-7c35-b775-ee452f44706d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RegulatoryAssetDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RegulatoryAssetAxis_019eb289-90e7-754f-97b2-17a4cb9ee413" xlink:to="loc_us-gaap_RegulatoryAssetDomain_019eb289-90e7-7c35-b775-ee452f44706d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_PremiumAndLossOnReacquiredDebtMember_019eb289-90e7-7224-ad3b-c4e7015f2a2f" xlink:href="opc-20260630.xsd#opc_PremiumAndLossOnReacquiredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryAssetDomain_019eb289-90e7-7c35-b775-ee452f44706d" xlink:to="loc_opc_PremiumAndLossOnReacquiredDebtMember_019eb289-90e7-7224-ad3b-c4e7015f2a2f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_AmortizationOfFinancingLeasesMember_019eb289-90e7-7452-a7ca-77815fda2cf1" xlink:href="opc-20260630.xsd#opc_AmortizationOfFinancingLeasesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryAssetDomain_019eb289-90e7-7c35-b775-ee452f44706d" xlink:to="loc_opc_AmortizationOfFinancingLeasesMember_019eb289-90e7-7452-a7ca-77815fda2cf1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_UnamortizedDeferredOutageCostsNetMember_019eb289-90e7-78f3-aebc-225d2b0146d7" xlink:href="opc-20260630.xsd#opc_UnamortizedDeferredOutageCostsNetMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryAssetDomain_019eb289-90e7-7c35-b775-ee452f44706d" xlink:to="loc_opc_UnamortizedDeferredOutageCostsNetMember_019eb289-90e7-78f3-aebc-225d2b0146d7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_UnamortizedDeferredCoalFiredOutageCostsNetMember_019eb289-90e7-7e06-9517-916b331bec3a" xlink:href="opc-20260630.xsd#opc_UnamortizedDeferredCoalFiredOutageCostsNetMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_UnamortizedDeferredOutageCostsNetMember_019eb289-90e7-78f3-aebc-225d2b0146d7" xlink:to="loc_opc_UnamortizedDeferredCoalFiredOutageCostsNetMember_019eb289-90e7-7e06-9517-916b331bec3a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_UnamortizedDeferredNuclearRefuelingOutageCostsNetMember_019eb289-90e7-7c3f-a1e4-d755ddcdc890" xlink:href="opc-20260630.xsd#opc_UnamortizedDeferredNuclearRefuelingOutageCostsNetMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_UnamortizedDeferredOutageCostsNetMember_019eb289-90e7-78f3-aebc-225d2b0146d7" xlink:to="loc_opc_UnamortizedDeferredNuclearRefuelingOutageCostsNetMember_019eb289-90e7-7c3f-a1e4-d755ddcdc890" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetRetirementObligationCostsMember_019eb289-90e7-7c28-a290-cf45e203fa63" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetRetirementObligationCostsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryAssetDomain_019eb289-90e7-7c35-b775-ee452f44706d" xlink:to="loc_us-gaap_AssetRetirementObligationCostsMember_019eb289-90e7-7c28-a290-cf45e203fa63" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_UnamortizedDeferredDepreciationExpenseMember_019eb289-90e7-7344-b78f-6644155dcdca" xlink:href="opc-20260630.xsd#opc_UnamortizedDeferredDepreciationExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryAssetDomain_019eb289-90e7-7c35-b775-ee452f44706d" xlink:to="loc_opc_UnamortizedDeferredDepreciationExpenseMember_019eb289-90e7-7344-b78f-6644155dcdca" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_JointlyOwnedUtilityPlantDeferredChargesRelatedToVogtleUnitsNo.3AndNo.4TrainingCostsMember_019eb289-90e7-771d-b5cb-6a9d89aab3db" xlink:href="opc-20260630.xsd#opc_JointlyOwnedUtilityPlantDeferredChargesRelatedToVogtleUnitsNo.3AndNo.4TrainingCostsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryAssetDomain_019eb289-90e7-7c35-b775-ee452f44706d" xlink:to="loc_opc_JointlyOwnedUtilityPlantDeferredChargesRelatedToVogtleUnitsNo.3AndNo.4TrainingCostsMember_019eb289-90e7-771d-b5cb-6a9d89aab3db" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_InterestRateOptionCostMember_019eb289-90e7-709b-9e73-a4ce4d56b347" xlink:href="opc-20260630.xsd#opc_InterestRateOptionCostMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryAssetDomain_019eb289-90e7-7c35-b775-ee452f44706d" xlink:to="loc_opc_InterestRateOptionCostMember_019eb289-90e7-709b-9e73-a4ce4d56b347" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_DeferredEffectOnNetMarginForEnergyFacilitiesMember_019eb289-90e7-706d-9509-9743c5c91619" xlink:href="opc-20260630.xsd#opc_DeferredEffectOnNetMarginForEnergyFacilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryAssetDomain_019eb289-90e7-7c35-b775-ee452f44706d" xlink:to="loc_opc_DeferredEffectOnNetMarginForEnergyFacilitiesMember_019eb289-90e7-706d-9509-9743c5c91619" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_InventoryAdjustmentsMember_019eb289-90e7-7766-bec4-7362586d993c" xlink:href="opc-20260630.xsd#opc_InventoryAdjustmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryAssetDomain_019eb289-90e7-7c35-b775-ee452f44706d" xlink:to="loc_opc_InventoryAdjustmentsMember_019eb289-90e7-7766-bec4-7362586d993c" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_AccumulatedRetirementCostsOtherObligationMember_019eb289-90e7-7612-9042-92d66c8e662a" xlink:href="opc-20260630.xsd#opc_AccumulatedRetirementCostsOtherObligationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryAssetDomain_019eb289-90e7-7c35-b775-ee452f44706d" xlink:to="loc_opc_AccumulatedRetirementCostsOtherObligationMember_019eb289-90e7-7612-9042-92d66c8e662a" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_NaturalGasHedgesMember_019fb14c-d92b-7307-a600-834bb9fb025f" xlink:href="opc-20260630.xsd#opc_NaturalGasHedgesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryAssetDomain_019eb289-90e7-7c35-b775-ee452f44706d" xlink:to="loc_opc_NaturalGasHedgesMember_019fb14c-d92b-7307-a600-834bb9fb025f" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_OtherRegulatoryAssetsMember_019eb289-90e7-7f4e-b9b9-9e0f7dbd1712" xlink:href="opc-20260630.xsd#opc_OtherRegulatoryAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryAssetDomain_019eb289-90e7-7c35-b775-ee452f44706d" xlink:to="loc_opc_OtherRegulatoryAssetsMember_019eb289-90e7-7f4e-b9b9-9e0f7dbd1712" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryLiabilityAxis_019eb289-90e7-754a-9034-7d06fd675155" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RegulatoryLiabilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_opc_ScheduleOfRegulatoryAssetsAndLiabilitiesTable_019eb289-90e7-7626-a6ab-3c0cc65285c6" xlink:to="loc_us-gaap_RegulatoryLiabilityAxis_019eb289-90e7-754a-9034-7d06fd675155" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryLiabilityDomain_019eb289-90e7-754a-9034-7d06fd675155_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RegulatoryLiabilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RegulatoryLiabilityAxis_019eb289-90e7-754a-9034-7d06fd675155" xlink:to="loc_us-gaap_RegulatoryLiabilityDomain_019eb289-90e7-754a-9034-7d06fd675155_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryLiabilityDomain_019eb289-90e7-7f8a-a6e8-a630f101fc55" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RegulatoryLiabilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RegulatoryLiabilityAxis_019eb289-90e7-754a-9034-7d06fd675155" xlink:to="loc_us-gaap_RegulatoryLiabilityDomain_019eb289-90e7-7f8a-a6e8-a630f101fc55" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_DeferredEffectsOnNetMarginForEnergyFacilitiesMember_019eb289-90e7-7fbc-8e87-66a8619dc5df" xlink:href="opc-20260630.xsd#opc_DeferredEffectsOnNetMarginForEnergyFacilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryLiabilityDomain_019eb289-90e7-7f8a-a6e8-a630f101fc55" xlink:to="loc_opc_DeferredEffectsOnNetMarginForEnergyFacilitiesMember_019eb289-90e7-7fbc-8e87-66a8619dc5df" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_MajorMaintenanceSinkingFundMember_019eb289-90e7-789a-87df-82ec52f746f3" xlink:href="opc-20260630.xsd#opc_MajorMaintenanceSinkingFundMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryLiabilityDomain_019eb289-90e7-7f8a-a6e8-a630f101fc55" xlink:to="loc_opc_MajorMaintenanceSinkingFundMember_019eb289-90e7-789a-87df-82ec52f746f3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_DeferredDebtServiceAdderMember_019eb289-90e7-7293-8281-3f2e34341225" xlink:href="opc-20260630.xsd#opc_DeferredDebtServiceAdderMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryLiabilityDomain_019eb289-90e7-7f8a-a6e8-a630f101fc55" xlink:to="loc_opc_DeferredDebtServiceAdderMember_019eb289-90e7-7293-8281-3f2e34341225" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetRetirementObligationCostsMember_019eb289-90e7-7706-81d3-b8d3f39903c1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetRetirementObligationCostsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryLiabilityDomain_019eb289-90e7-7f8a-a6e8-a630f101fc55" xlink:to="loc_us-gaap_AssetRetirementObligationCostsMember_019eb289-90e7-7706-81d3-b8d3f39903c1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_RevenueDeferralPlanMember_019eb289-90e7-76a9-8fcb-3e451ad8984b" xlink:href="opc-20260630.xsd#opc_RevenueDeferralPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryLiabilityDomain_019eb289-90e7-7f8a-a6e8-a630f101fc55" xlink:to="loc_opc_RevenueDeferralPlanMember_019eb289-90e7-76a9-8fcb-3e451ad8984b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_OtherRevenueDeferralPlanMember_019eb289-90e7-79d5-b3f2-ae35985bdcbd" xlink:href="opc-20260630.xsd#opc_OtherRevenueDeferralPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryLiabilityDomain_019eb289-90e7-7f8a-a6e8-a630f101fc55" xlink:to="loc_opc_OtherRevenueDeferralPlanMember_019eb289-90e7-79d5-b3f2-ae35985bdcbd" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_NaturalGasHedgesMember_019eb289-90e7-7204-a1c9-076296cb0dec" xlink:href="opc-20260630.xsd#opc_NaturalGasHedgesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryLiabilityDomain_019eb289-90e7-7f8a-a6e8-a630f101fc55" xlink:to="loc_opc_NaturalGasHedgesMember_019eb289-90e7-7204-a1c9-076296cb0dec" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_DeferralNuclearProductionTaxMember_019eb289-90e7-7135-8c37-a2506bbaf5a6" xlink:href="opc-20260630.xsd#opc_DeferralNuclearProductionTaxMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryLiabilityDomain_019eb289-90e7-7f8a-a6e8-a630f101fc55" xlink:to="loc_opc_DeferralNuclearProductionTaxMember_019eb289-90e7-7135-8c37-a2506bbaf5a6" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_OtherRegulatoryLiabilitiesMember_019eb289-90e7-7d56-999a-970b3515b034" xlink:href="opc-20260630.xsd#opc_OtherRegulatoryLiabilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryLiabilityDomain_019eb289-90e7-7f8a-a6e8-a630f101fc55" xlink:to="loc_opc_OtherRegulatoryLiabilitiesMember_019eb289-90e7-7d56-999a-970b3515b034" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_JointlyOwnedUtilityPlantNameAxis_019eb289-90e7-7572-bec9-724b3eaaeffe" xlink:href="opc-20260630.xsd#opc_JointlyOwnedUtilityPlantNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_opc_ScheduleOfRegulatoryAssetsAndLiabilitiesTable_019eb289-90e7-7626-a6ab-3c0cc65285c6" xlink:to="loc_opc_JointlyOwnedUtilityPlantNameAxis_019eb289-90e7-7572-bec9-724b3eaaeffe" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_JointlyOwnedUtilityPlantNameDomain_019eb289-90e7-7572-bec9-724b3eaaeffe_default" xlink:href="opc-20260630.xsd#opc_JointlyOwnedUtilityPlantNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_opc_JointlyOwnedUtilityPlantNameAxis_019eb289-90e7-7572-bec9-724b3eaaeffe" xlink:to="loc_opc_JointlyOwnedUtilityPlantNameDomain_019eb289-90e7-7572-bec9-724b3eaaeffe_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_JointlyOwnedUtilityPlantNameDomain_019eb289-90e7-75d4-b79a-0f37bdbf04d2" xlink:href="opc-20260630.xsd#opc_JointlyOwnedUtilityPlantNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_opc_JointlyOwnedUtilityPlantNameAxis_019eb289-90e7-7572-bec9-724b3eaaeffe" xlink:to="loc_opc_JointlyOwnedUtilityPlantNameDomain_019eb289-90e7-75d4-b79a-0f37bdbf04d2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_AshpondAndOtherMember_019eb289-90e7-7434-89d8-4c28f20d2642" xlink:href="opc-20260630.xsd#opc_AshpondAndOtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_JointlyOwnedUtilityPlantNameDomain_019eb289-90e7-75d4-b79a-0f37bdbf04d2" xlink:to="loc_opc_AshpondAndOtherMember_019eb289-90e7-7434-89d8-4c28f20d2642" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_PlantVogtleMember_019eb289-90e7-726a-b8e9-710716eba0fd" xlink:href="opc-20260630.xsd#opc_PlantVogtleMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_JointlyOwnedUtilityPlantNameDomain_019eb289-90e7-75d4-b79a-0f37bdbf04d2" xlink:to="loc_opc_PlantVogtleMember_019eb289-90e7-726a-b8e9-710716eba0fd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_PlantWansleyMember_019eb289-90e7-757e-8a4a-38f7b450d37a" xlink:href="opc-20260630.xsd#opc_PlantWansleyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_JointlyOwnedUtilityPlantNameDomain_019eb289-90e7-75d4-b79a-0f37bdbf04d2" xlink:to="loc_opc_PlantWansleyMember_019eb289-90e7-757e-8a4a-38f7b450d37a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_DeferredChargesRelatedToVogtleUnitsMember_019eb289-90e7-7cf1-9134-c96a1c188b75" xlink:href="opc-20260630.xsd#opc_DeferredChargesRelatedToVogtleUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_JointlyOwnedUtilityPlantNameDomain_019eb289-90e7-75d4-b79a-0f37bdbf04d2" xlink:to="loc_opc_DeferredChargesRelatedToVogtleUnitsMember_019eb289-90e7-7cf1-9134-c96a1c188b75" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_TASmithEnergyFacilityMember_019eb289-90e7-7e9e-8e3f-1f75554a61d1" xlink:href="opc-20260630.xsd#opc_TASmithEnergyFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_JointlyOwnedUtilityPlantNameDomain_019eb289-90e7-75d4-b79a-0f37bdbf04d2" xlink:to="loc_opc_TASmithEnergyFacilityMember_019eb289-90e7-7e9e-8e3f-1f75554a61d1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_BCSmithEnergyFacilityMember_019eb289-90e7-7e69-b8a3-28ae131a2de3" xlink:href="opc-20260630.xsd#opc_BCSmithEnergyFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_JointlyOwnedUtilityPlantNameDomain_019eb289-90e7-75d4-b79a-0f37bdbf04d2" xlink:to="loc_opc_BCSmithEnergyFacilityMember_019eb289-90e7-7e69-b8a3-28ae131a2de3" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_HawkRoadMember_019eb289-90e7-7c4b-b2cb-dbff963d5c15" xlink:href="opc-20260630.xsd#opc_HawkRoadMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_JointlyOwnedUtilityPlantNameDomain_019eb289-90e7-75d4-b79a-0f37bdbf04d2" xlink:to="loc_opc_HawkRoadMember_019eb289-90e7-7c4b-b2cb-dbff963d5c15" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019eb289-90e7-7d14-9309-f19022ba07b7" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_opc_ScheduleOfRegulatoryAssetsAndLiabilitiesTable_019eb289-90e7-7626-a6ab-3c0cc65285c6" xlink:to="loc_srt_RangeAxis_019eb289-90e7-7d14-9309-f19022ba07b7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019eb289-90e7-7d14-9309-f19022ba07b7_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019eb289-90e7-7d14-9309-f19022ba07b7" xlink:to="loc_srt_RangeMember_019eb289-90e7-7d14-9309-f19022ba07b7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019eb289-90e7-793a-82ee-41ea743137fc" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019eb289-90e7-7d14-9309-f19022ba07b7" xlink:to="loc_srt_RangeMember_019eb289-90e7-793a-82ee-41ea743137fc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_019eb289-90e7-7231-81f3-e2400361b1ea" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019eb289-90e7-793a-82ee-41ea743137fc" xlink:to="loc_srt_MinimumMember_019eb289-90e7-7231-81f3-e2400361b1ea" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019eb289-90e7-78e5-8bb4-764a03401613" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019eb289-90e7-793a-82ee-41ea743137fc" xlink:to="loc_srt_MaximumMember_019eb289-90e7-78e5-8bb4-764a03401613" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryAssetsNoncurrent_019eb289-90e7-7767-b2a5-8e17cd468df6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RegulatoryAssetsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_RegulatoryAssetsAndLiabilitiesLineItems_019eb289-90e7-7c3e-bb95-5f5623c20331" xlink:to="loc_us-gaap_RegulatoryAssetsNoncurrent_019eb289-90e7-7767-b2a5-8e17cd468df6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryLiabilityNoncurrent_019eb289-90e7-7a31-aaac-52c2d3fa55e0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RegulatoryLiabilityNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_RegulatoryAssetsAndLiabilitiesLineItems_019eb289-90e7-7c3e-bb95-5f5623c20331" xlink:to="loc_us-gaap_RegulatoryLiabilityNoncurrent_019eb289-90e7-7a31-aaac-52c2d3fa55e0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetRegulatoryAssets_019eb289-90e7-7aed-aa34-d61111a5369f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetRegulatoryAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_RegulatoryAssetsAndLiabilitiesLineItems_019eb289-90e7-7c3e-bb95-5f5623c20331" xlink:to="loc_us-gaap_NetRegulatoryAssets_019eb289-90e7-7aed-aa34-d61111a5369f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryAssetAmortizationPeriod_019eb289-90e7-7895-8b11-db252a12f342" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RegulatoryAssetAmortizationPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_RegulatoryAssetsAndLiabilitiesLineItems_019eb289-90e7-7c3e-bb95-5f5623c20331" xlink:to="loc_us-gaap_RegulatoryAssetAmortizationPeriod_019eb289-90e7-7895-8b11-db252a12f342" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_OperatingLicenseExpectedExtensionPeriod_019eb289-90e7-7ddd-acc4-b52b77d48cc7" xlink:href="opc-20260630.xsd#opc_OperatingLicenseExpectedExtensionPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_RegulatoryAssetsAndLiabilitiesLineItems_019eb289-90e7-7c3e-bb95-5f5623c20331" xlink:to="loc_opc_OperatingLicenseExpectedExtensionPeriod_019eb289-90e7-7ddd-acc4-b52b77d48cc7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_OperatingLicensePeriod_019eb289-90e7-731a-aad1-dc03cd6a03f1" xlink:href="opc-20260630.xsd#opc_OperatingLicensePeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_RegulatoryAssetsAndLiabilitiesLineItems_019eb289-90e7-7c3e-bb95-5f5623c20331" xlink:to="loc_opc_OperatingLicensePeriod_019eb289-90e7-731a-aad1-dc03cd6a03f1" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryLiabilityAmortizationPeriod_019eb289-90e7-7a5e-892e-6cf7b85e685e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RegulatoryLiabilityAmortizationPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_RegulatoryAssetsAndLiabilitiesLineItems_019eb289-90e7-7c3e-bb95-5f5623c20331" xlink:to="loc_us-gaap_RegulatoryLiabilityAmortizationPeriod_019eb289-90e7-7a5e-892e-6cf7b85e685e" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.opc.com/role/DebtDepartmentofEnergyLoanGuaranteeDetails" xlink:type="simple" xlink:href="opc-20260630.xsd#DebtDepartmentofEnergyLoanGuaranteeDetails"/>
  <link:definitionLink xlink:role="http://www.opc.com/role/DebtDepartmentofEnergyLoanGuaranteeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_019eb289-90e7-7b19-a2d2-3714509a0a30" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_019eb289-90e7-7f85-9d2b-18ad789c7f51" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019eb289-90e7-7b19-a2d2-3714509a0a30" xlink:to="loc_us-gaap_DebtInstrumentTable_019eb289-90e7-7f85-9d2b-18ad789c7f51" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019eb289-90e7-756c-a46e-de4373ffafab" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019eb289-90e7-7f85-9d2b-18ad789c7f51" xlink:to="loc_us-gaap_DebtInstrumentAxis_019eb289-90e7-756c-a46e-de4373ffafab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019eb289-90e7-756c-a46e-de4373ffafab_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019eb289-90e7-756c-a46e-de4373ffafab" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019eb289-90e7-756c-a46e-de4373ffafab_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019eb289-90e7-7d5a-9461-e1d90354cd57" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019eb289-90e7-756c-a46e-de4373ffafab" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019eb289-90e7-7d5a-9461-e1d90354cd57" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_DebtFromFederalFinancingBankMember_019eb289-90e7-7a9b-bd88-03d09ead3b4b" xlink:href="opc-20260630.xsd#opc_DebtFromFederalFinancingBankMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019eb289-90e7-7d5a-9461-e1d90354cd57" xlink:to="loc_opc_DebtFromFederalFinancingBankMember_019eb289-90e7-7a9b-bd88-03d09ead3b4b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_019eb289-90e7-7e4b-b0a2-8715de856062" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019eb289-90e7-7f85-9d2b-18ad789c7f51" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_019eb289-90e7-7e4b-b0a2-8715de856062" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019eb289-90e7-7e4b-b0a2-8715de856062_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019eb289-90e7-7e4b-b0a2-8715de856062" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019eb289-90e7-7e4b-b0a2-8715de856062_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019eb289-90e7-751c-af65-6b9e32212b83" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019eb289-90e7-7e4b-b0a2-8715de856062" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019eb289-90e7-751c-af65-6b9e32212b83" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebtMember_019eb289-90e7-7415-a452-e3aa76478586" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019eb289-90e7-751c-af65-6b9e32212b83" xlink:to="loc_us-gaap_SecuredDebtMember_019eb289-90e7-7415-a452-e3aa76478586" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsByNatureAxis_019eb289-90e7-7331-9caa-d834879f619e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GuaranteeObligationsByNatureAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019eb289-90e7-7f85-9d2b-18ad789c7f51" xlink:to="loc_us-gaap_GuaranteeObligationsByNatureAxis_019eb289-90e7-7331-9caa-d834879f619e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_019eb289-90e7-7331-9caa-d834879f619e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GuaranteeObligationsNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_019eb289-90e7-7331-9caa-d834879f619e" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_019eb289-90e7-7331-9caa-d834879f619e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_019eb289-90e7-7c34-be11-f93b11051475" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GuaranteeObligationsNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_019eb289-90e7-7331-9caa-d834879f619e" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_019eb289-90e7-7c34-be11-f93b11051475" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialGuaranteeMember_019eb289-90e7-75fe-a8b1-9596b4a3c849" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancialGuaranteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_019eb289-90e7-7c34-be11-f93b11051475" xlink:to="loc_us-gaap_FinancialGuaranteeMember_019eb289-90e7-75fe-a8b1-9596b4a3c849" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_LineOfCreditFacilityMaximumBorrowingCapacityDesignatedForCapitalizedInterest_019eb289-90e7-785c-a1b9-e75728dd0a7e" xlink:href="opc-20260630.xsd#opc_LineOfCreditFacilityMaximumBorrowingCapacityDesignatedForCapitalizedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019eb289-90e7-7b19-a2d2-3714509a0a30" xlink:to="loc_opc_LineOfCreditFacilityMaximumBorrowingCapacityDesignatedForCapitalizedInterest_019eb289-90e7-785c-a1b9-e75728dd0a7e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_019eb289-90e7-784a-8a63-119cbf53527c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RepaymentsOfLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019eb289-90e7-7b19-a2d2-3714509a0a30" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_019eb289-90e7-784a-8a63-119cbf53527c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_019eb289-90e7-766d-a849-b00ddfdba517" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019eb289-90e7-7b19-a2d2-3714509a0a30" xlink:to="loc_us-gaap_LongTermDebt_019eb289-90e7-766d-a849-b00ddfdba517" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.opc.com/role/DebtRuralUtilitiesServiceGuaranteedLoansDetails" xlink:type="simple" xlink:href="opc-20260630.xsd#DebtRuralUtilitiesServiceGuaranteedLoansDetails"/>
  <link:definitionLink xlink:role="http://www.opc.com/role/DebtRuralUtilitiesServiceGuaranteedLoansDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_019eb289-90e7-71c7-87ee-7b93b79a9f5f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_019eb289-90e7-7da0-abef-2b624f6b2ae9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019eb289-90e7-71c7-87ee-7b93b79a9f5f" xlink:to="loc_us-gaap_DebtInstrumentTable_019eb289-90e7-7da0-abef-2b624f6b2ae9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019eb289-90e7-74db-a8e7-d91ff834a909" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019eb289-90e7-7da0-abef-2b624f6b2ae9" xlink:to="loc_us-gaap_DebtInstrumentAxis_019eb289-90e7-74db-a8e7-d91ff834a909" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019eb289-90e7-74db-a8e7-d91ff834a909_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019eb289-90e7-74db-a8e7-d91ff834a909" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019eb289-90e7-74db-a8e7-d91ff834a909_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019eb289-90e7-7bab-8aba-01f1b52921a1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019eb289-90e7-74db-a8e7-d91ff834a909" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019eb289-90e7-7bab-8aba-01f1b52921a1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_DebtFromFederalFinancingBankMember_019eb289-90e7-7107-a3ac-9d1e1add22e6" xlink:href="opc-20260630.xsd#opc_DebtFromFederalFinancingBankMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019eb289-90e7-7bab-8aba-01f1b52921a1" xlink:to="loc_opc_DebtFromFederalFinancingBankMember_019eb289-90e7-7107-a3ac-9d1e1add22e6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsByNatureAxis_019eb289-90e7-76f6-b704-c298eecc7319" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GuaranteeObligationsByNatureAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019eb289-90e7-7da0-abef-2b624f6b2ae9" xlink:to="loc_us-gaap_GuaranteeObligationsByNatureAxis_019eb289-90e7-76f6-b704-c298eecc7319" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_019eb289-90e7-76f6-b704-c298eecc7319_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GuaranteeObligationsNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_019eb289-90e7-76f6-b704-c298eecc7319" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_019eb289-90e7-76f6-b704-c298eecc7319_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_019eb289-90e7-75db-844a-e609a0679a81" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GuaranteeObligationsNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_019eb289-90e7-76f6-b704-c298eecc7319" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_019eb289-90e7-75db-844a-e609a0679a81" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_DebtFromFederalFinancingBankRuralUtilitiesServiceGuaranteedLoansMember_019eb289-90e7-7888-a6b6-3083f07e9a2b" xlink:href="opc-20260630.xsd#opc_DebtFromFederalFinancingBankRuralUtilitiesServiceGuaranteedLoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_019eb289-90e7-75db-844a-e609a0679a81" xlink:to="loc_opc_DebtFromFederalFinancingBankRuralUtilitiesServiceGuaranteedLoansMember_019eb289-90e7-7888-a6b6-3083f07e9a2b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_019eb289-90e7-7958-b28a-710b9f3cc3f1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019eb289-90e7-7da0-abef-2b624f6b2ae9" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_019eb289-90e7-7958-b28a-710b9f3cc3f1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019eb289-90e7-7958-b28a-710b9f3cc3f1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019eb289-90e7-7958-b28a-710b9f3cc3f1" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019eb289-90e7-7958-b28a-710b9f3cc3f1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019eb289-90e7-7c53-b032-9ba8f6187d74" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019eb289-90e7-7958-b28a-710b9f3cc3f1" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019eb289-90e7-7c53-b032-9ba8f6187d74" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebtMember_019eb289-90e7-7897-920e-1677ed24f882" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019eb289-90e7-7c53-b032-9ba8f6187d74" xlink:to="loc_us-gaap_SecuredDebtMember_019eb289-90e7-7897-920e-1677ed24f882" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_019fb156-759c-7f69-a246-2e4119c16152" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019eb289-90e7-7c53-b032-9ba8f6187d74" xlink:to="loc_us-gaap_CommercialPaperMember_019fb156-759c-7f69-a246-2e4119c16152" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetAcquisitionAxis_019fb152-71b4-7e71-a697-28ef9e31db7b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019eb289-90e7-7da0-abef-2b624f6b2ae9" xlink:to="loc_us-gaap_AssetAcquisitionAxis_019fb152-71b4-7e71-a697-28ef9e31db7b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetAcquisitionDomain_019fb152-71b4-7e71-a697-28ef9e31db7b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetAcquisitionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AssetAcquisitionAxis_019fb152-71b4-7e71-a697-28ef9e31db7b" xlink:to="loc_us-gaap_AssetAcquisitionDomain_019fb152-71b4-7e71-a697-28ef9e31db7b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetAcquisitionDomain_019fb152-71b4-7082-bf59-ff9d5c4dd59c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetAcquisitionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AssetAcquisitionAxis_019fb152-71b4-7e71-a697-28ef9e31db7b" xlink:to="loc_us-gaap_AssetAcquisitionDomain_019fb152-71b4-7082-bf59-ff9d5c4dd59c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_WashingtonAndBacontonAcquisitionMember_019fb152-cd28-723d-b38d-52441761f457" xlink:href="opc-20260630.xsd#opc_WashingtonAndBacontonAcquisitionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetAcquisitionDomain_019fb152-71b4-7082-bf59-ff9d5c4dd59c" xlink:to="loc_opc_WashingtonAndBacontonAcquisitionMember_019fb152-cd28-723d-b38d-52441761f457" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationTypeAxis_019fb153-fd24-74fb-94df-ebdd02cf1dfa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019eb289-90e7-7da0-abef-2b624f6b2ae9" xlink:to="loc_us-gaap_ReclassificationTypeAxis_019fb153-fd24-74fb-94df-ebdd02cf1dfa" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationTypeDomain_019fb153-fd24-74fb-94df-ebdd02cf1dfa_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ReclassificationTypeAxis_019fb153-fd24-74fb-94df-ebdd02cf1dfa" xlink:to="loc_us-gaap_ReclassificationTypeDomain_019fb153-fd24-74fb-94df-ebdd02cf1dfa_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationTypeDomain_019fb153-fd24-7b56-b093-ffe5e7213785" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ReclassificationTypeAxis_019fb153-fd24-74fb-94df-ebdd02cf1dfa" xlink:to="loc_us-gaap_ReclassificationTypeDomain_019fb153-fd24-7b56-b093-ffe5e7213785" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationOtherMember_019fb154-2fef-7a7c-892e-28d044bb6dd4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationOtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationTypeDomain_019fb153-fd24-7b56-b093-ffe5e7213785" xlink:to="loc_us-gaap_ReclassificationOtherMember_019fb154-2fef-7a7c-892e-28d044bb6dd4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtTypeAxis_019fb154-5b3c-786c-ad60-cdb32dc032ba" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShortTermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019eb289-90e7-7da0-abef-2b624f6b2ae9" xlink:to="loc_us-gaap_ShortTermDebtTypeAxis_019fb154-5b3c-786c-ad60-cdb32dc032ba" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_019fb154-5b3c-786c-ad60-cdb32dc032ba_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShortTermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_019fb154-5b3c-786c-ad60-cdb32dc032ba" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_019fb154-5b3c-786c-ad60-cdb32dc032ba_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_019fb154-5b3c-7aa5-b9be-8daa228e10db" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShortTermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_019fb154-5b3c-786c-ad60-cdb32dc032ba" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_019fb154-5b3c-7aa5-b9be-8daa228e10db" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_019fb154-7e25-7f07-a700-650c723b4234" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtTypeDomain_019fb154-5b3c-7aa5-b9be-8daa228e10db" xlink:to="loc_us-gaap_CommercialPaperMember_019fb154-7e25-7f07-a700-650c723b4234" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_019f6f7c-6045-7dc7-8f94-6a64a00acb5b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsequentEventTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019eb289-90e7-7da0-abef-2b624f6b2ae9" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_019f6f7c-6045-7dc7-8f94-6a64a00acb5b" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_019f6f7c-6045-7dc7-8f94-6a64a00acb5b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_019f6f7c-6045-7dc7-8f94-6a64a00acb5b" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_019f6f7c-6045-7dc7-8f94-6a64a00acb5b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_019f6f7c-6045-74aa-bca6-6d3afd4e5d71" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_019f6f7c-6045-7dc7-8f94-6a64a00acb5b" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_019f6f7c-6045-74aa-bca6-6d3afd4e5d71" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_019f6f7c-765d-7177-a1be-01c351a418d0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsequentEventMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_019f6f7c-6045-74aa-bca6-6d3afd4e5d71" xlink:to="loc_us-gaap_SubsequentEventMember_019f6f7c-765d-7177-a1be-01c351a418d0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfDebt_019eb289-90e7-7672-9ab6-b5d7e2473711" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromIssuanceOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019eb289-90e7-71c7-87ee-7b93b79a9f5f" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfDebt_019eb289-90e7-7672-9ab6-b5d7e2473711" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermBorrowings_019fb153-a14d-75b7-811a-36db8230e09f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShortTermBorrowings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019eb289-90e7-71c7-87ee-7b93b79a9f5f" xlink:to="loc_us-gaap_ShortTermBorrowings_019fb153-a14d-75b7-811a-36db8230e09f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_019fb155-33b8-7bd1-adc3-ea2e0e425e35" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019eb289-90e7-71c7-87ee-7b93b79a9f5f" xlink:to="loc_us-gaap_LongTermDebt_019fb155-33b8-7bd1-adc3-ea2e0e425e35" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.opc.com/role/DebtRuralUtilitiesServiceEmpoweringRuralAmericaNewERALoanDetails" xlink:type="simple" xlink:href="opc-20260630.xsd#DebtRuralUtilitiesServiceEmpoweringRuralAmericaNewERALoanDetails"/>
  <link:definitionLink xlink:role="http://www.opc.com/role/DebtRuralUtilitiesServiceEmpoweringRuralAmericaNewERALoanDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_019fb181-57eb-7479-89d6-935144a81248" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_019fb181-57eb-7620-b555-e14c1742882b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019fb181-57eb-7479-89d6-935144a81248" xlink:to="loc_us-gaap_DebtInstrumentTable_019fb181-57eb-7620-b555-e14c1742882b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019fb182-1524-7193-b7db-860103eb4d9c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019fb181-57eb-7620-b555-e14c1742882b" xlink:to="loc_us-gaap_DebtInstrumentAxis_019fb182-1524-7193-b7db-860103eb4d9c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019fb182-1524-7193-b7db-860103eb4d9c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019fb182-1524-7193-b7db-860103eb4d9c" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019fb182-1524-7193-b7db-860103eb4d9c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019fb182-1524-7f21-89fe-50661dacca12" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019fb182-1524-7193-b7db-860103eb4d9c" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019fb182-1524-7f21-89fe-50661dacca12" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_RuralUtilitiesServiceEmpoweringRuralAmericaNewERALoanMember_019fce50-c4a8-7ed2-9753-e1e70618ab3d" xlink:href="opc-20260630.xsd#opc_RuralUtilitiesServiceEmpoweringRuralAmericaNewERALoanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019fb182-1524-7f21-89fe-50661dacca12" xlink:to="loc_opc_RuralUtilitiesServiceEmpoweringRuralAmericaNewERALoanMember_019fce50-c4a8-7ed2-9753-e1e70618ab3d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_019fb182-1524-7ab8-8157-6285f8bec5e8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019fb181-57eb-7620-b555-e14c1742882b" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_019fb182-1524-7ab8-8157-6285f8bec5e8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019fb182-1524-7ab8-8157-6285f8bec5e8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019fb182-1524-7ab8-8157-6285f8bec5e8" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019fb182-1524-7ab8-8157-6285f8bec5e8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019fb182-1524-70ce-95ca-0065fca7a001" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019fb182-1524-7ab8-8157-6285f8bec5e8" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019fb182-1524-70ce-95ca-0065fca7a001" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxableMunicipalBondsMember_019fd283-a6e1-77de-86da-056f32364de2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TaxableMunicipalBondsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019fb182-1524-70ce-95ca-0065fca7a001" xlink:to="loc_us-gaap_TaxableMunicipalBondsMember_019fd283-a6e1-77de-86da-056f32364de2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_019fd283-e2e6-7542-a78e-8953b97d1fc2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019fb182-1524-70ce-95ca-0065fca7a001" xlink:to="loc_us-gaap_CommercialPaperMember_019fd283-e2e6-7542-a78e-8953b97d1fc2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_019fb182-1524-778c-b8dc-be9878325614" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsequentEventTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019fb181-57eb-7620-b555-e14c1742882b" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_019fb182-1524-778c-b8dc-be9878325614" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_019fb182-1524-778c-b8dc-be9878325614_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_019fb182-1524-778c-b8dc-be9878325614" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_019fb182-1524-778c-b8dc-be9878325614_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_019fb182-1524-776f-b35f-3aa360623f4f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_019fb182-1524-778c-b8dc-be9878325614" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_019fb182-1524-776f-b35f-3aa360623f4f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_019fb182-1524-719d-9743-06693f783b3d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsequentEventMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_019fb182-1524-776f-b35f-3aa360623f4f" xlink:to="loc_us-gaap_SubsequentEventMember_019fb182-1524-719d-9743-06693f783b3d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationTypeAxis_019fb182-1524-7a08-aed4-9c6d3914a6d0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019fb181-57eb-7620-b555-e14c1742882b" xlink:to="loc_us-gaap_ReclassificationTypeAxis_019fb182-1524-7a08-aed4-9c6d3914a6d0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationTypeDomain_019fb182-1524-7a08-aed4-9c6d3914a6d0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ReclassificationTypeAxis_019fb182-1524-7a08-aed4-9c6d3914a6d0" xlink:to="loc_us-gaap_ReclassificationTypeDomain_019fb182-1524-7a08-aed4-9c6d3914a6d0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationTypeDomain_019fb182-1524-705a-a0e8-15cf9d2e2281" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ReclassificationTypeAxis_019fb182-1524-7a08-aed4-9c6d3914a6d0" xlink:to="loc_us-gaap_ReclassificationTypeDomain_019fb182-1524-705a-a0e8-15cf9d2e2281" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationOtherMember_019fb182-1524-782c-9fd8-2cb663c92f4f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationOtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationTypeDomain_019fb182-1524-705a-a0e8-15cf9d2e2281" xlink:to="loc_us-gaap_ReclassificationOtherMember_019fb182-1524-782c-9fd8-2cb663c92f4f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtTypeAxis_019fd283-e2e6-7393-874a-ccee07fa9f7c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShortTermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019fb181-57eb-7620-b555-e14c1742882b" xlink:to="loc_us-gaap_ShortTermDebtTypeAxis_019fd283-e2e6-7393-874a-ccee07fa9f7c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_019fd283-e2e6-7393-874a-ccee07fa9f7c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShortTermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_019fd283-e2e6-7393-874a-ccee07fa9f7c" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_019fd283-e2e6-7393-874a-ccee07fa9f7c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_019fd283-e2e6-775f-9939-ee8f230ef5ad" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShortTermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_019fd283-e2e6-7393-874a-ccee07fa9f7c" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_019fd283-e2e6-775f-9939-ee8f230ef5ad" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_019fd283-e2e6-7f5a-9e7c-53ba551b1fbb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtTypeDomain_019fd283-e2e6-775f-9939-ee8f230ef5ad" xlink:to="loc_us-gaap_CommercialPaperMember_019fd283-e2e6-7f5a-9e7c-53ba551b1fbb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_019fb182-1524-7084-8b28-bda299654147" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019fb181-57eb-7479-89d6-935144a81248" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_019fb182-1524-7084-8b28-bda299654147" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_019fce55-138b-70c6-b558-b2414f99424b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RepaymentsOfLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019fb181-57eb-7479-89d6-935144a81248" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_019fce55-138b-70c6-b558-b2414f99424b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtExtinguishmentCosts_019fce52-7323-7180-b9d7-205316e92072" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsOfDebtExtinguishmentCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019fb181-57eb-7479-89d6-935144a81248" xlink:to="loc_us-gaap_PaymentsOfDebtExtinguishmentCosts_019fce52-7323-7180-b9d7-205316e92072" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfDebt_019fb182-1524-7f1c-b06b-1ecfcef5b382" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromIssuanceOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019fb181-57eb-7479-89d6-935144a81248" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfDebt_019fb182-1524-7f1c-b06b-1ecfcef5b382" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_019fb182-1524-7584-9910-10d9447e78fc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019fb181-57eb-7479-89d6-935144a81248" xlink:to="loc_us-gaap_LongTermDebt_019fb182-1524-7584-9910-10d9447e78fc" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermBorrowings_019fd283-e2e6-76ba-8978-dab111c0e432" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShortTermBorrowings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019fb181-57eb-7479-89d6-935144a81248" xlink:to="loc_us-gaap_ShortTermBorrowings_019fd283-e2e6-76ba-8978-dab111c0e432" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.opc.com/role/DebtCFCTermLoanDetails" xlink:type="simple" xlink:href="opc-20260630.xsd#DebtCFCTermLoanDetails"/>
  <link:definitionLink xlink:role="http://www.opc.com/role/DebtCFCTermLoanDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_opc_ScheduleOfDebtInstrumentsLineItems_019fd28a-44d2-7483-998b-35e304021d51" xlink:href="opc-20260630.xsd#opc_ScheduleOfDebtInstrumentsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_ScheduleOfDebtInstrumentsTable_019fd28a-44d2-77f9-8f1a-10462a2d1e94" xlink:href="opc-20260630.xsd#opc_ScheduleOfDebtInstrumentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_opc_ScheduleOfDebtInstrumentsLineItems_019fd28a-44d2-7483-998b-35e304021d51" xlink:to="loc_opc_ScheduleOfDebtInstrumentsTable_019fd28a-44d2-77f9-8f1a-10462a2d1e94" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019fd28a-44d2-7c90-9eee-673fcbd3554b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_opc_ScheduleOfDebtInstrumentsTable_019fd28a-44d2-77f9-8f1a-10462a2d1e94" xlink:to="loc_us-gaap_DebtInstrumentAxis_019fd28a-44d2-7c90-9eee-673fcbd3554b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019fd28a-44d2-7c90-9eee-673fcbd3554b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019fd28a-44d2-7c90-9eee-673fcbd3554b" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019fd28a-44d2-7c90-9eee-673fcbd3554b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019fd28a-44d2-7d38-996d-835b16a20efb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019fd28a-44d2-7c90-9eee-673fcbd3554b" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019fd28a-44d2-7d38-996d-835b16a20efb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_CFCTermLoanMember_019fd28a-44d2-7747-8b19-75a002195444" xlink:href="opc-20260630.xsd#opc_CFCTermLoanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019fd28a-44d2-7d38-996d-835b16a20efb" xlink:to="loc_opc_CFCTermLoanMember_019fd28a-44d2-7747-8b19-75a002195444" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_019fd28a-8bc3-7fca-aaa3-107b7e310daf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsequentEventTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_opc_ScheduleOfDebtInstrumentsTable_019fd28a-44d2-77f9-8f1a-10462a2d1e94" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_019fd28a-8bc3-7fca-aaa3-107b7e310daf" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_019fd28a-8bc3-7fca-aaa3-107b7e310daf_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_019fd28a-8bc3-7fca-aaa3-107b7e310daf" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_019fd28a-8bc3-7fca-aaa3-107b7e310daf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_019fd28a-8bc3-7335-9ffc-81586c4ee3b7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_019fd28a-8bc3-7fca-aaa3-107b7e310daf" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_019fd28a-8bc3-7335-9ffc-81586c4ee3b7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_019fd28a-8bc3-7548-ae46-a79c5b12242b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsequentEventMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_019fd28a-8bc3-7335-9ffc-81586c4ee3b7" xlink:to="loc_us-gaap_SubsequentEventMember_019fd28a-8bc3-7548-ae46-a79c5b12242b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationTypeAxis_019fd28b-fa1d-71e3-93d5-8bd5dc1c3fe9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_opc_ScheduleOfDebtInstrumentsTable_019fd28a-44d2-77f9-8f1a-10462a2d1e94" xlink:to="loc_us-gaap_ReclassificationTypeAxis_019fd28b-fa1d-71e3-93d5-8bd5dc1c3fe9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationTypeDomain_019fd28b-fa1d-71e3-93d5-8bd5dc1c3fe9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ReclassificationTypeAxis_019fd28b-fa1d-71e3-93d5-8bd5dc1c3fe9" xlink:to="loc_us-gaap_ReclassificationTypeDomain_019fd28b-fa1d-71e3-93d5-8bd5dc1c3fe9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationTypeDomain_019fd28b-fa1d-7b8f-8cf9-4935e37090a6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ReclassificationTypeAxis_019fd28b-fa1d-71e3-93d5-8bd5dc1c3fe9" xlink:to="loc_us-gaap_ReclassificationTypeDomain_019fd28b-fa1d-7b8f-8cf9-4935e37090a6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationOtherMember_019fd28b-fa1d-7684-8cf0-ccacb82cd08a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationOtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationTypeDomain_019fd28b-fa1d-7b8f-8cf9-4935e37090a6" xlink:to="loc_us-gaap_ReclassificationOtherMember_019fd28b-fa1d-7684-8cf0-ccacb82cd08a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtTypeAxis_019fd28b-fa1d-7df8-8024-a942cd209f5b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShortTermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_opc_ScheduleOfDebtInstrumentsTable_019fd28a-44d2-77f9-8f1a-10462a2d1e94" xlink:to="loc_us-gaap_ShortTermDebtTypeAxis_019fd28b-fa1d-7df8-8024-a942cd209f5b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_019fd28b-fa1d-7df8-8024-a942cd209f5b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShortTermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_019fd28b-fa1d-7df8-8024-a942cd209f5b" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_019fd28b-fa1d-7df8-8024-a942cd209f5b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_019fd28b-fa1d-7594-9a3f-0e99764b6675" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShortTermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_019fd28b-fa1d-7df8-8024-a942cd209f5b" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_019fd28b-fa1d-7594-9a3f-0e99764b6675" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_019fd28b-fa1d-7d95-b308-56e4e4b82f45" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtTypeDomain_019fd28b-fa1d-7594-9a3f-0e99764b6675" xlink:to="loc_us-gaap_CommercialPaperMember_019fd28b-fa1d-7d95-b308-56e4e4b82f45" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_019fd28b-fa1d-70c1-b4fb-a40b506929b4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_opc_ScheduleOfDebtInstrumentsTable_019fd28a-44d2-77f9-8f1a-10462a2d1e94" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_019fd28b-fa1d-70c1-b4fb-a40b506929b4" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019fd28b-fa1d-70c1-b4fb-a40b506929b4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019fd28b-fa1d-70c1-b4fb-a40b506929b4" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019fd28b-fa1d-70c1-b4fb-a40b506929b4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019fd28b-fa1d-72ed-911e-20c639490477" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019fd28b-fa1d-70c1-b4fb-a40b506929b4" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019fd28b-fa1d-72ed-911e-20c639490477" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_019fd28b-fa1d-7e26-8bc1-2f1bd90ae477" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019fd28b-fa1d-72ed-911e-20c639490477" xlink:to="loc_us-gaap_CommercialPaperMember_019fd28b-fa1d-7e26-8bc1-2f1bd90ae477" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfDebt_019fd28a-44d2-75a3-a32d-ccc21b1b2733" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromIssuanceOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_ScheduleOfDebtInstrumentsLineItems_019fd28a-44d2-7483-998b-35e304021d51" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfDebt_019fd28a-44d2-75a3-a32d-ccc21b1b2733" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermBorrowings_019fd28b-fa1d-7b08-b196-a0fa036170e8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShortTermBorrowings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_ScheduleOfDebtInstrumentsLineItems_019fd28a-44d2-7483-998b-35e304021d51" xlink:to="loc_us-gaap_ShortTermBorrowings_019fd28b-fa1d-7b08-b196-a0fa036170e8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_019fd28b-fa1d-791d-a49a-9c1ce0d9812c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_ScheduleOfDebtInstrumentsLineItems_019fd28a-44d2-7483-998b-35e304021d51" xlink:to="loc_us-gaap_LongTermDebt_019fd28b-fa1d-791d-a49a-9c1ce0d9812c" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.opc.com/role/DebtCreditFacilitiesDetails" xlink:type="simple" xlink:href="opc-20260630.xsd#DebtCreditFacilitiesDetails"/>
  <link:definitionLink xlink:role="http://www.opc.com/role/DebtCreditFacilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_opc_ScheduleOfDebtInstrumentsLineItems_019eb289-90e7-71ee-a1cf-ce2fd7f34b60" xlink:href="opc-20260630.xsd#opc_ScheduleOfDebtInstrumentsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_ScheduleOfDebtInstrumentsTable_019eb289-90e7-7145-abbd-c06ae8a2b967" xlink:href="opc-20260630.xsd#opc_ScheduleOfDebtInstrumentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_opc_ScheduleOfDebtInstrumentsLineItems_019eb289-90e7-71ee-a1cf-ce2fd7f34b60" xlink:to="loc_opc_ScheduleOfDebtInstrumentsTable_019eb289-90e7-7145-abbd-c06ae8a2b967" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_019eb289-90e7-7dc5-b9c4-efb8ca9a908e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_opc_ScheduleOfDebtInstrumentsTable_019eb289-90e7-7145-abbd-c06ae8a2b967" xlink:to="loc_us-gaap_CreditFacilityAxis_019eb289-90e7-7dc5-b9c4-efb8ca9a908e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_019eb289-90e7-7dc5-b9c4-efb8ca9a908e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_019eb289-90e7-7dc5-b9c4-efb8ca9a908e" xlink:to="loc_us-gaap_CreditFacilityDomain_019eb289-90e7-7dc5-b9c4-efb8ca9a908e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_019eb289-90e7-77db-bc22-77f4c6e54b19" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_019eb289-90e7-7dc5-b9c4-efb8ca9a908e" xlink:to="loc_us-gaap_CreditFacilityDomain_019eb289-90e7-77db-bc22-77f4c6e54b19" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_019eb289-90e7-7f6f-8efa-fbdaffe38f73" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_019eb289-90e7-77db-bc22-77f4c6e54b19" xlink:to="loc_us-gaap_LineOfCreditMember_019eb289-90e7-7f6f-8efa-fbdaffe38f73" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LetterOfCreditMember_019eb289-90e7-761d-81af-f7e147c48b2b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LetterOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_019eb289-90e7-77db-bc22-77f4c6e54b19" xlink:to="loc_us-gaap_LetterOfCreditMember_019eb289-90e7-761d-81af-f7e147c48b2b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_019eb289-90e7-79bb-874e-ecd28492c6d1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_019eb289-90e7-77db-bc22-77f4c6e54b19" xlink:to="loc_us-gaap_CommercialPaperMember_019eb289-90e7-79bb-874e-ecd28492c6d1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019eb289-90e7-7e46-aba3-a8c274e767a2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_opc_ScheduleOfDebtInstrumentsTable_019eb289-90e7-7145-abbd-c06ae8a2b967" xlink:to="loc_us-gaap_DebtInstrumentAxis_019eb289-90e7-7e46-aba3-a8c274e767a2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019eb289-90e7-7e46-aba3-a8c274e767a2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019eb289-90e7-7e46-aba3-a8c274e767a2" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019eb289-90e7-7e46-aba3-a8c274e767a2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019eb289-90e7-7533-94f8-489975aa2906" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019eb289-90e7-7e46-aba3-a8c274e767a2" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019eb289-90e7-7533-94f8-489975aa2906" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_CreditAgreementMember_019eb289-90e7-7839-ace3-da53b436f061" xlink:href="opc-20260630.xsd#opc_CreditAgreementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019eb289-90e7-7533-94f8-489975aa2906" xlink:to="loc_opc_CreditAgreementMember_019eb289-90e7-7839-ace3-da53b436f061" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_019eb289-90e7-7487-bee3-81902c489c84" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_opc_ScheduleOfDebtInstrumentsTable_019eb289-90e7-7145-abbd-c06ae8a2b967" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_019eb289-90e7-7487-bee3-81902c489c84" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019eb289-90e7-7487-bee3-81902c489c84_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019eb289-90e7-7487-bee3-81902c489c84" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019eb289-90e7-7487-bee3-81902c489c84_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019eb289-90e7-7722-8cf0-aa076b2d8a6e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019eb289-90e7-7487-bee3-81902c489c84" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019eb289-90e7-7722-8cf0-aa076b2d8a6e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_019eb289-90e7-7175-b4b9-61b40248cd26" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019eb289-90e7-7722-8cf0-aa076b2d8a6e" xlink:to="loc_us-gaap_LineOfCreditMember_019eb289-90e7-7175-b4b9-61b40248cd26" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDemandObligationMember_019eb289-90e7-7fea-aaca-a859d0471c31" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_VariableRateDemandObligationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019eb289-90e7-7722-8cf0-aa076b2d8a6e" xlink:to="loc_us-gaap_VariableRateDemandObligationMember_019eb289-90e7-7fea-aaca-a859d0471c31" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_019eb289-90e7-7512-be9c-0c02308ae741" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_ScheduleOfDebtInstrumentsLineItems_019eb289-90e7-71ee-a1cf-ce2fd7f34b60" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_019eb289-90e7-7512-be9c-0c02308ae741" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_LineOfCreditFacilityNumberOfFacilities_019eb289-90e7-7bae-8ad8-181eb7bc3df6" xlink:href="opc-20260630.xsd#opc_LineOfCreditFacilityNumberOfFacilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_ScheduleOfDebtInstrumentsLineItems_019eb289-90e7-71ee-a1cf-ce2fd7f34b60" xlink:to="loc_opc_LineOfCreditFacilityNumberOfFacilities_019eb289-90e7-7bae-8ad8-181eb7bc3df6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity_019eb289-90e7-712e-ac16-d70c72896a8e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_ScheduleOfDebtInstrumentsLineItems_019eb289-90e7-71ee-a1cf-ce2fd7f34b60" xlink:to="loc_us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity_019eb289-90e7-712e-ac16-d70c72896a8e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCredit_019eb289-90e7-7772-a5e8-cc87c90af4ce" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_opc_ScheduleOfDebtInstrumentsLineItems_019eb289-90e7-71ee-a1cf-ce2fd7f34b60" xlink:to="loc_us-gaap_LineOfCredit_019eb289-90e7-7772-a5e8-cc87c90af4ce" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.opc.com/role/SmarrCombinedCycleProjectDetails" xlink:type="simple" xlink:href="opc-20260630.xsd#SmarrCombinedCycleProjectDetails"/>
  <link:definitionLink xlink:role="http://www.opc.com/role/SmarrCombinedCycleProjectDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PublicUtilitiesGeneralDisclosuresLineItems_019eb289-90e7-76fb-9fe5-e3ca07e14a64" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PublicUtilitiesGeneralDisclosuresLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PublicUtilitiesGeneralDisclosuresTable_019eb289-90e7-70df-ab1b-53dcc55999d5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PublicUtilitiesGeneralDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PublicUtilitiesGeneralDisclosuresLineItems_019eb289-90e7-76fb-9fe5-e3ca07e14a64" xlink:to="loc_us-gaap_PublicUtilitiesGeneralDisclosuresTable_019eb289-90e7-70df-ab1b-53dcc55999d5" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PublicUtilityAxis_019eb289-90e7-7830-bbee-2172c5143db1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PublicUtilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_PublicUtilitiesGeneralDisclosuresTable_019eb289-90e7-70df-ab1b-53dcc55999d5" xlink:to="loc_us-gaap_PublicUtilityAxis_019eb289-90e7-7830-bbee-2172c5143db1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UtilityPlantDomain_019eb289-90e7-7830-bbee-2172c5143db1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UtilityPlantDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PublicUtilityAxis_019eb289-90e7-7830-bbee-2172c5143db1" xlink:to="loc_us-gaap_UtilityPlantDomain_019eb289-90e7-7830-bbee-2172c5143db1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UtilityPlantDomain_019eb289-90e7-78ac-bcb8-6707433a0c74" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UtilityPlantDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PublicUtilityAxis_019eb289-90e7-7830-bbee-2172c5143db1" xlink:to="loc_us-gaap_UtilityPlantDomain_019eb289-90e7-78ac-bcb8-6707433a0c74" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_TwoUnitCombinedCycleGenerationFacilityInMonroeCountyGeorgiaMember_019eb289-90e7-71a0-95d1-d133b767c0e7" xlink:href="opc-20260630.xsd#opc_TwoUnitCombinedCycleGenerationFacilityInMonroeCountyGeorgiaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_UtilityPlantDomain_019eb289-90e7-78ac-bcb8-6707433a0c74" xlink:to="loc_opc_TwoUnitCombinedCycleGenerationFacilityInMonroeCountyGeorgiaMember_019eb289-90e7-71a0-95d1-d133b767c0e7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_PublicUtilitiesDevelopmentAndConstructionOfGenerationFacilityGeneratingCapacityMegawatts_019eb289-90e7-7a6e-ac89-7da2d9fe75e1" xlink:href="opc-20260630.xsd#opc_PublicUtilitiesDevelopmentAndConstructionOfGenerationFacilityGeneratingCapacityMegawatts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PublicUtilitiesGeneralDisclosuresLineItems_019eb289-90e7-76fb-9fe5-e3ca07e14a64" xlink:to="loc_opc_PublicUtilitiesDevelopmentAndConstructionOfGenerationFacilityGeneratingCapacityMegawatts_019eb289-90e7-7a6e-ac89-7da2d9fe75e1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_PublicUtilitiesDevelopmentAndConstructionOfGenerationFacilityNumberOfUnits_019eb289-90e7-7a86-8e51-fb0550616d43" xlink:href="opc-20260630.xsd#opc_PublicUtilitiesDevelopmentAndConstructionOfGenerationFacilityNumberOfUnits"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PublicUtilitiesGeneralDisclosuresLineItems_019eb289-90e7-76fb-9fe5-e3ca07e14a64" xlink:to="loc_opc_PublicUtilitiesDevelopmentAndConstructionOfGenerationFacilityNumberOfUnits_019eb289-90e7-7a86-8e51-fb0550616d43" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_PublicUtilitiesDevelopmentAndConstructionOfGenerationFacilityBudget_019eb289-90e7-7c03-8172-e4aa16a25df3" xlink:href="opc-20260630.xsd#opc_PublicUtilitiesDevelopmentAndConstructionOfGenerationFacilityBudget"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PublicUtilitiesGeneralDisclosuresLineItems_019eb289-90e7-76fb-9fe5-e3ca07e14a64" xlink:to="loc_opc_PublicUtilitiesDevelopmentAndConstructionOfGenerationFacilityBudget_019eb289-90e7-7c03-8172-e4aa16a25df3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_PublicUtilitiesDevelopmentAndConstructionOfGenerationFacilityCostsIncurred_019eb289-90e7-78f7-a914-6a6d7f556f4c" xlink:href="opc-20260630.xsd#opc_PublicUtilitiesDevelopmentAndConstructionOfGenerationFacilityCostsIncurred"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PublicUtilitiesGeneralDisclosuresLineItems_019eb289-90e7-76fb-9fe5-e3ca07e14a64" xlink:to="loc_opc_PublicUtilitiesDevelopmentAndConstructionOfGenerationFacilityCostsIncurred_019eb289-90e7-78f7-a914-6a6d7f556f4c" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.opc.com/role/TalbotCombustionTurbineUnitNo7Details" xlink:type="simple" xlink:href="opc-20260630.xsd#TalbotCombustionTurbineUnitNo7Details"/>
  <link:definitionLink xlink:role="http://www.opc.com/role/TalbotCombustionTurbineUnitNo7Details" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PublicUtilitiesGeneralDisclosuresLineItems_019eb289-90e7-7f2f-8692-947861cdb028" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PublicUtilitiesGeneralDisclosuresLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PublicUtilitiesGeneralDisclosuresTable_019eb289-90e7-7dce-95ba-bdbe322dbc86" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PublicUtilitiesGeneralDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PublicUtilitiesGeneralDisclosuresLineItems_019eb289-90e7-7f2f-8692-947861cdb028" xlink:to="loc_us-gaap_PublicUtilitiesGeneralDisclosuresTable_019eb289-90e7-7dce-95ba-bdbe322dbc86" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PublicUtilityAxis_019eb289-90e7-743d-8f81-853eabcae13d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PublicUtilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_PublicUtilitiesGeneralDisclosuresTable_019eb289-90e7-7dce-95ba-bdbe322dbc86" xlink:to="loc_us-gaap_PublicUtilityAxis_019eb289-90e7-743d-8f81-853eabcae13d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UtilityPlantDomain_019eb289-90e7-743d-8f81-853eabcae13d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UtilityPlantDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PublicUtilityAxis_019eb289-90e7-743d-8f81-853eabcae13d" xlink:to="loc_us-gaap_UtilityPlantDomain_019eb289-90e7-743d-8f81-853eabcae13d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UtilityPlantDomain_019eb289-90e7-71e6-a4b8-0e5d8e1b4d7c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UtilityPlantDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PublicUtilityAxis_019eb289-90e7-743d-8f81-853eabcae13d" xlink:to="loc_us-gaap_UtilityPlantDomain_019eb289-90e7-71e6-a4b8-0e5d8e1b4d7c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_CombinedTurbineUnitFacilityInTalbotCountyGeorgiaMember_019eb289-90e7-7f4a-95c0-1675b3be37f7" xlink:href="opc-20260630.xsd#opc_CombinedTurbineUnitFacilityInTalbotCountyGeorgiaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_UtilityPlantDomain_019eb289-90e7-71e6-a4b8-0e5d8e1b4d7c" xlink:to="loc_opc_CombinedTurbineUnitFacilityInTalbotCountyGeorgiaMember_019eb289-90e7-7f4a-95c0-1675b3be37f7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_PublicUtilitiesDevelopmentAndConstructionOfGenerationFacilityGeneratingCapacityMegawatts_019eb289-90e7-7737-ba8b-b22d3e8b7e44" xlink:href="opc-20260630.xsd#opc_PublicUtilitiesDevelopmentAndConstructionOfGenerationFacilityGeneratingCapacityMegawatts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PublicUtilitiesGeneralDisclosuresLineItems_019eb289-90e7-7f2f-8692-947861cdb028" xlink:to="loc_opc_PublicUtilitiesDevelopmentAndConstructionOfGenerationFacilityGeneratingCapacityMegawatts_019eb289-90e7-7737-ba8b-b22d3e8b7e44" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_PublicUtilitiesDevelopmentAndConstructionOfGenerationFacilityBudget_019eb289-90e7-7975-9a77-b529dce19fc1" xlink:href="opc-20260630.xsd#opc_PublicUtilitiesDevelopmentAndConstructionOfGenerationFacilityBudget"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PublicUtilitiesGeneralDisclosuresLineItems_019eb289-90e7-7f2f-8692-947861cdb028" xlink:to="loc_opc_PublicUtilitiesDevelopmentAndConstructionOfGenerationFacilityBudget_019eb289-90e7-7975-9a77-b529dce19fc1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_PublicUtilitiesDevelopmentAndConstructionOfGenerationFacilityCostsIncurred_019eb289-90e7-76a8-8ad4-0818c9750c03" xlink:href="opc-20260630.xsd#opc_PublicUtilitiesDevelopmentAndConstructionOfGenerationFacilityCostsIncurred"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PublicUtilitiesGeneralDisclosuresLineItems_019eb289-90e7-7f2f-8692-947861cdb028" xlink:to="loc_opc_PublicUtilitiesDevelopmentAndConstructionOfGenerationFacilityCostsIncurred_019eb289-90e7-76a8-8ad4-0818c9750c03" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fasb.org/srt/role/srt-eedm/ExtensibleEnumerationLists" xlink:type="simple" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-roles-2026.xsd#eedm1"/>
  <link:definitionLink xlink:role="http://fasb.org/srt/role/srt-eedm/ExtensibleEnumerationLists" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsAbstract"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_PublicUtilitiesPropertyPlantAndEquipmentPlantInServiceNet_019eb289-8f50-79f0-ba31-5d09af2488ad" xlink:href="opc-20260630.xsd#opc_PublicUtilitiesPropertyPlantAndEquipmentPlantInServiceNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract" xlink:to="loc_opc_PublicUtilitiesPropertyPlantAndEquipmentPlantInServiceNet_019eb289-8f50-79f0-ba31-5d09af2488ad" xlink:type="arc" order="101"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesCurrentAbstract"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent" xlink:type="arc" order="41"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesNoncurrentAbstract" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesNoncurrentAbstract"/>
    <link:loc xlink:type="locator" xlink:label="loc_opc_OtherCapitalizationObligationsNoncurrent_019eb289-8f50-779d-bff4-f0e4a2bf5000" xlink:href="opc-20260630.xsd#opc_OtherCapitalizationObligationsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract" xlink:to="loc_opc_OtherCapitalizationObligationsNoncurrent_019eb289-8f50-779d-bff4-f0e4a2bf5000" xlink:type="arc" order="91"/>
  </link:definitionLink>
</link:linkbase>
