<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>MOC on Yogesh SN</title><link>http://yogeshsn.com.np/references/moc/</link><description>Recent content in MOC on Yogesh SN</description><generator>Hugo -- 0.148.0</generator><language>en-us</language><lastBuildDate>Thu, 15 Jan 2026 15:00:04 +0545</lastBuildDate><atom:link href="http://yogeshsn.com.np/references/moc/index.xml" rel="self" type="application/rss+xml"/><item><title>MOC Transient Analysis</title><link>http://yogeshsn.com.np/references/moc/htr_moc_v6_technical_documentation_extended/</link><pubDate>Thu, 15 Jan 2026 15:00:04 +0545</pubDate><guid>http://yogeshsn.com.np/references/moc/htr_moc_v6_technical_documentation_extended/</guid><description>&lt;h3 id="as-a-hydropower-enginner-i-used-moc-equations-programmed-in-python-to-perform-transient-analysis">As a hydropower enginner, I used MOC equations (programmed in python) to perform Transient Analysis.&lt;/h3>
&lt;h2 id="contents">Contents&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="#technical-documentation--version-600">Technical Documentation — Version 6.0.0&lt;/a>&lt;/li>
&lt;li>&lt;a href="#1-introduction">1. Introduction&lt;/a>
&lt;ul>
&lt;li>&lt;a href="#11-what-the-software-does">1.1 What the software does&lt;/a>&lt;/li>
&lt;li>&lt;a href="#12-why-this-matters">1.2 Why this matters&lt;/a>&lt;/li>
&lt;li>&lt;a href="#13-what-the-software-can-and-cannot-do">1.3 What the software can and cannot do&lt;/a>&lt;/li>
&lt;li>&lt;a href="#14-the-reference-model-used-in-this-document">1.4 The reference model used in this document&lt;/a>&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;a href="#2-water-hammer-and-surge-in-plain-words">2. Water hammer and surge in plain words&lt;/a>
&lt;ul>
&lt;li>&lt;a href="#21-water-hammer">2.1 Water hammer&lt;/a>&lt;/li>
&lt;li>&lt;a href="#22-negative-pressures">2.2 Negative pressures&lt;/a>&lt;/li>
&lt;li>&lt;a href="#23-surge-mass-oscillation">2.3 Surge (mass oscillation)&lt;/a>&lt;/li>
&lt;li>&lt;a href="#24-load-rejection-and-load-acceptance">2.4 Load rejection and load acceptance&lt;/a>&lt;/li>
&lt;li>&lt;a href="#25-why-the-method-of-characteristics">2.5 Why the Method of Characteristics&lt;/a>&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;a href="#3-software-overview">3. Software overview&lt;/a>
&lt;ul>
&lt;li>&lt;a href="#31-architecture">3.1 Architecture&lt;/a>&lt;/li>
&lt;li>&lt;a href="#32-data-flow">3.2 Data flow&lt;/a>&lt;/li>
&lt;li>&lt;a href="#33-installation-and-start">3.3 Installation and start&lt;/a>&lt;/li>
&lt;li>&lt;a href="#34-using-the-engine-without-the-window">3.4 Using the engine without the window&lt;/a>&lt;/li>
&lt;li>&lt;a href="#35-version-6-in-one-paragraph">3.5 Version 6 in one paragraph&lt;/a>&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;a href="#4-the-mathematics">4. The mathematics&lt;/a>
&lt;ul>
&lt;li>&lt;a href="#41-the-two-equations-of-unsteady-pipe-flow">4.1 The two equations of unsteady pipe flow&lt;/a>&lt;/li>
&lt;li>&lt;a href="#42-characteristic-equations">4.2 Characteristic equations&lt;/a>&lt;/li>
&lt;li>&lt;a href="#43-wave-speed">4.3 Wave speed&lt;/a>&lt;/li>
&lt;li>&lt;a href="#44-friction">4.4 Friction&lt;/a>&lt;/li>
&lt;li>&lt;a href="#45-non-circular-tunnels">4.5 Non-circular tunnels&lt;/a>&lt;/li>
&lt;li>&lt;a href="#46-effective-area-of-an-inclined-surge-pipe">4.6 Effective area of an inclined surge pipe&lt;/a>&lt;/li>
&lt;li>&lt;a href="#47-pressure-from-head">4.7 Pressure from head&lt;/a>&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;a href="#5-the-numerical-method">5. The numerical method&lt;/a>
&lt;ul>
&lt;li>&lt;a href="#51-the-grid">5.1 The grid&lt;/a>&lt;/li>
&lt;li>&lt;a href="#52-automatic-time-step-reduction">5.2 Automatic time-step reduction&lt;/a>&lt;/li>
&lt;li>&lt;a href="#53-one-time-step-in-eight-actions">5.3 One time step in eight actions&lt;/a>&lt;/li>
&lt;li>&lt;a href="#54-surge-level-update">5.4 Surge level update&lt;/a>&lt;/li>
&lt;li>&lt;a href="#55-how-accurate-is-the-time-step-grid-convergence">5.5 How accurate is the time step? (grid convergence)&lt;/a>&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;a href="#6-component-and-boundary-condition-models">6. Component and boundary-condition models&lt;/a>
&lt;ul>
&lt;li>&lt;a href="#61-reservoirs">6.1 Reservoirs&lt;/a>&lt;/li>
&lt;li>&lt;a href="#62-pipes">6.2 Pipes&lt;/a>&lt;/li>
&lt;li>&lt;a href="#63-pipe-junction-bend-change-of-diameter-minor-loss">6.3 Pipe junction (bend, change of diameter, minor loss)&lt;/a>&lt;/li>
&lt;li>&lt;a href="#64-surge-chamber">6.4 Surge chamber&lt;/a>&lt;/li>
&lt;li>&lt;a href="#65-manifold">6.5 Manifold&lt;/a>&lt;/li>
&lt;li>&lt;a href="#66-turbine">6.6 Turbine&lt;/a>&lt;/li>
&lt;li>&lt;a href="#67-tailrace">6.7 Tailrace&lt;/a>&lt;/li>
&lt;li>&lt;a href="#68-valve">6.8 Valve&lt;/a>&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;a href="#7-gate-events-and-initial-conditions">7. Gate events and initial conditions&lt;/a>
&lt;ul>
&lt;li>&lt;a href="#71-gate-opening-%CF%84t">7.1 Gate opening τ(t)&lt;/a>&lt;/li>
&lt;li>&lt;a href="#72-why-the-initial-state-matters">7.2 Why the initial state matters&lt;/a>&lt;/li>
&lt;li>&lt;a href="#73-how-the-initial-state-is-built">7.3 How the initial state is built&lt;/a>&lt;/li>
&lt;li>&lt;a href="#74-partial-gate-events-start-in-equilibrium">7.4 Partial-gate events start in equilibrium&lt;/a>&lt;/li>
&lt;li>&lt;a href="#75-automatic-steady-state-check">7.5 Automatic steady-state check&lt;/a>&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;a href="#8-input-reference">8. Input reference&lt;/a>
&lt;ul>
&lt;li>&lt;a href="#81-order-of-components">8.1 Order of components&lt;/a>&lt;/li>
&lt;li>&lt;a href="#82-reservoirs">8.2 Reservoirs&lt;/a>&lt;/li>
&lt;li>&lt;a href="#83-pipe">8.3 Pipe&lt;/a>&lt;/li>
&lt;li>&lt;a href="#84-pipe-junction">8.4 Pipe junction&lt;/a>&lt;/li>
&lt;li>&lt;a href="#85-surge-chamber">8.5 Surge chamber&lt;/a>&lt;/li>
&lt;li>&lt;a href="#86-manifold">8.6 Manifold&lt;/a>&lt;/li>
&lt;li>&lt;a href="#87-turbine">8.7 Turbine&lt;/a>&lt;/li>
&lt;li>&lt;a href="#88-valve">8.8 Valve&lt;/a>&lt;/li>
&lt;li>&lt;a href="#89-simulation-settings">8.9 Simulation settings&lt;/a>&lt;/li>
&lt;li>&lt;a href="#810-how-long-should-the-simulation-be">8.10 How long should the simulation be?&lt;/a>&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;a href="#9-output-reference">9. Output reference&lt;/a>
&lt;ul>
&lt;li>&lt;a href="#91-time-series">9.1 Time series&lt;/a>&lt;/li>
&lt;li>&lt;a href="#92-spatial-results">9.2 Spatial results&lt;/a>&lt;/li>
&lt;li>&lt;a href="#93-component-analysis-per-pipe">9.3 Component analysis (per pipe)&lt;/a>&lt;/li>
&lt;li>&lt;a href="#94-messages">9.4 Messages&lt;/a>&lt;/li>
&lt;li>&lt;a href="#95-files-you-can-export-from-the-window">9.5 Files you can export from the window&lt;/a>&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;a href="#10-user-guide">10. User guide&lt;/a>
&lt;ul>
&lt;li>&lt;a href="#101-the-window">10.1 The window&lt;/a>&lt;/li>
&lt;li>&lt;a href="#102-step-by-step-workflow">10.2 Step-by-step workflow&lt;/a>&lt;/li>
&lt;li>&lt;a href="#103-what-the-run-buttons-do">10.3 What the run buttons do&lt;/a>&lt;/li>
&lt;li>&lt;a href="#104-reading-the-plots">10.4 Reading the plots&lt;/a>&lt;/li>
&lt;li>&lt;a href="#105-exports">10.5 Exports&lt;/a>&lt;/li>
&lt;li>&lt;a href="#106-good-habits">10.6 Good habits&lt;/a>&lt;/li>
&lt;li>&lt;a href="#107-common-mistakes">10.7 Common mistakes&lt;/a>&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;a href="#11-worked-example-the-reference-model">11. Worked example: the reference model&lt;/a>
&lt;ul>
&lt;li>&lt;a href="#111-setting-up">11.1 Setting up&lt;/a>&lt;/li>
&lt;li>&lt;a href="#112-initial-state">11.2 Initial state&lt;/a>&lt;/li>
&lt;li>&lt;a href="#113-component-analysis">11.3 Component analysis&lt;/a>&lt;/li>
&lt;li>&lt;a href="#114-load-rejection">11.4 Load rejection&lt;/a>&lt;/li>
&lt;li>&lt;a href="#115-load-acceptance">11.5 Load acceptance&lt;/a>&lt;/li>
&lt;li>&lt;a href="#116-worst-case-envelope">11.6 Worst-case envelope&lt;/a>&lt;/li>
&lt;li>&lt;a href="#117-head-against-time-at-selected-points">11.7 Head against time at selected points&lt;/a>&lt;/li>
&lt;li>&lt;a href="#118-what-the-results-tell-the-designer">11.8 What the results tell the designer&lt;/a>&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;a href="#12-sensitivity-studies">12. Sensitivity studies&lt;/a>
&lt;ul>
&lt;li>&lt;a href="#121-orifice-diameter">12.1 Orifice diameter&lt;/a>&lt;/li>
&lt;li>&lt;a href="#122-closing-time">12.2 Closing time&lt;/a>&lt;/li>
&lt;li>&lt;a href="#123-tunnel-wave-speed">12.3 Tunnel wave speed&lt;/a>&lt;/li>
&lt;li>&lt;a href="#124-time-step">12.4 Time step&lt;/a>&lt;/li>
&lt;li>&lt;a href="#125-a-short-list-of-design-hints-from-the-studies">12.5 A short list of design hints from the studies&lt;/a>&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;a href="#13-verification-and-validation">13. Verification and validation&lt;/a>
&lt;ul>
&lt;li>&lt;a href="#131-steady-state-before-the-event">13.1 Steady state before the event&lt;/a>&lt;/li>
&lt;li>&lt;a href="#132-joukowsky-check">13.2 Joukowsky check&lt;/a>&lt;/li>
&lt;li>&lt;a href="#133-surge-period">13.3 Surge period&lt;/a>&lt;/li>
&lt;li>&lt;a href="#134-thoma-stability-check">13.4 Thoma stability check&lt;/a>&lt;/li>
&lt;li>&lt;a href="#135-the-version-5-defect-before-and-after">13.5 The version 5 defect: before and after&lt;/a>&lt;/li>
&lt;li>&lt;a href="#136-built-in-presets">13.6 Built-in presets&lt;/a>&lt;/li>
&lt;li>&lt;a href="#137-what-is-not-validated">13.7 What is not validated&lt;/a>&lt;/li>
&lt;li>&lt;a href="#138-regression-test">13.8 Regression test&lt;/a>&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;a href="#14-assumptions-limitations-and-good-practice">14. Assumptions, limitations and good practice&lt;/a>
&lt;ul>
&lt;li>&lt;a href="#141-physical-assumptions">14.1 Physical assumptions&lt;/a>&lt;/li>
&lt;li>&lt;a href="#142-software-limitations">14.2 Software limitations&lt;/a>&lt;/li>
&lt;li>&lt;a href="#143-checklist-before-you-trust-a-result">14.3 Checklist before you trust a result&lt;/a>&lt;/li>
&lt;li>&lt;a href="#144-troubleshooting">14.4 Troubleshooting&lt;/a>&lt;/li>
&lt;li>&lt;a href="#145-planned-improvements-suggestions">14.5 Planned improvements (suggestions)&lt;/a>&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;a href="#appendix-a-nomenclature">Appendix A. Nomenclature&lt;/a>&lt;/li>
&lt;li>&lt;a href="#appendix-b-glossary">Appendix B. Glossary&lt;/a>&lt;/li>
&lt;li>&lt;a href="#appendix-c-reference-configuration-json">Appendix C. Reference configuration (JSON)&lt;/a>&lt;/li>
&lt;li>&lt;a href="#appendix-d-result-dictionary-keys">Appendix D. Result dictionary keys&lt;/a>&lt;/li>
&lt;li>&lt;a href="#appendix-e-change-log-version-5--version-6">Appendix E. Change log, version 5 → version 6&lt;/a>&lt;/li>
&lt;li>&lt;a href="#appendix-f-quick-start-cheat-sheet">Appendix F. Quick-start cheat sheet&lt;/a>&lt;/li>
&lt;li>&lt;a href="#appendix-g-references">Appendix G. References&lt;/a>&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h1 id="1-introduction">1. Introduction&lt;/h1>
&lt;h2 id="11-what-the-software-does">1.1 What the software does&lt;/h2>
&lt;p>Hydropower plants move a lot of water through long tunnels and pipes. When the turbine gate moves quickly, the water cannot stop or start at once. This creates two kinds of fast changes:&lt;/p></description></item></channel></rss>