物理系统作为对象:计算物理教育的结构对应关系
Physical Systems as Objects: A Structural Correspondence for Computational Physics Education
AI总结:
探讨物理系统与面向对象编程中对象的结构对应,指出明确此对应可为计算物理教学提供基础,介绍围绕对应原则的开源Python框架Ollin及示例,证明可跨物理领域保持相同表示结构。
摘要:
物理系统和面向对象编程(OOP)范式中的对象具有共同组织结构:身份、状态和支配定律。我们认为明确这种结构对应而非将其作为科学软件中的隐性知识,为计算物理教学提供自然通用基础。此对应独立于编程语言和数学形式主义,通过Ollin框架及示例说明可跨物理领域保持相同表示结构。
英文摘要:
Physical systems and objects in the object-oriented programming (OOP) paradigm share a common organizational structure: identity, state, and governing laws. We argue that making this structural correspondence explicit, rather than leaving it as tacit knowledge embedded in scientific software, provides a natural and general basis for teaching computational physics. The correspondence is independent of both programming language and mathematical formalism, applying equally to differential equations, eigenvalue problems, and variational principles. To illustrate this idea, we present Ollin, an open-source Python framework for computational physics education organized around the correspondence principle. Four examples spanning mechanics, celestial mechanics, quantum mechanics, and variational optics demonstrate that the same representational structure can be preserved across diverse physical domains. In each case, the class definition serves as the physical model, its attributes encode the state and physical parameters of the system, and its methods encode the governing laws, regardless of whether those laws are integrated, diagonalized, or optimized. More broadly, the correspondence principle provides a conceptual framework for relating the organization of physical models to the organization of code.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。