Giter VIP home page Giter VIP logo

threeparticle's Introduction

threeParticle

제한된 3입자계 문제를 시뮬레이션하기 위한 코드입니다.

3입자계 문제

3입자계 문제는 세 입자가 3차원 공간에서 서로 중력을 작용하며 운동하는 상황을 다루는 문제입니다. 2차 미분 방정식 9개를 풀어야 하는 문제로 일반적인 해를 구하기 힘듭니다. 단순화시킨 경우에는 풀이가 가능한데, 이러한 경우를 제한적 3입자계 문제라고 합니다. 3개의 입자 중 특별이 무거운 주체 입자 2개와 제 3입자 1개로 이루어졌다고 가정합니다. 주체입자는 질량중심을 중심으로 동일 평면에서 원운동을 한다고 가정합니다.

라그랑주점

img.png

img.png

potential.py

상황에 맞게 알파 값을 변경시키면서 실행시키시면 됩니다. 등고선 그림이나 3D 입체로 나타내실 수 있습니다.

주의사항

특정 위치에서 퍼텐셜이 지나치게 낮으면 전체 값이 보이지 않습니다. 코드에서 potential을 계산하는 부분에서 max함수로 최솟값을 지정한 부분을 수정해가며, 가장 잘 보이는 값을 찾으시면 됩니다.

트로이 소행성

img.png

간략화된 운동방정식에 초기값을 설정하여 궤도를 그려볼 수 있습니다.

img.png

퍼텐셜 그림과 함께 그릴 수 있습니다.

더 알아보기

자세한 수식의 유도 과정이나 결과의 해석은 아래 pdf를 확인하세요.

pdf

threeparticle's People

Watchers

Chaehwan Seol avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.