Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

The-Cobalt-Develop-Team/phosphorus-legacy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phosphorus - A Physics Engine for Movement Analysis

We provide json method to describe some fields, just like this:

{
// To start a comment
    "fields":[{
        "E":xxx, //(F1=Eq)
        "g":xxx, //(F2=mg)
        "EDeg":xxx, //(0-360)
        "gDeg":xxx
    }],
    "magFields":[{
        "B":xxx, //(F=qvB)
        "deg":xxx //(in/out)
    }],
    "object":{
        "m":xxx,
        "q":xxx,
        "posX":xxx,
        "posY":xxx,
        "v0":xxx,
        "v0Deg":xxx
    },
    "simulation":{ // Start analysis
        "step":xxx, // s -- analysis step
        "sStep":xxx, // s -- output step, specify output in how many steps.
        "count":xxx // specify how many times the program will be executed.
    }
}

We use extern JSON Library for json resolving, Thanks for their support.

We use toolchain as follows: Lex(GNU FLex 2.6.4), Yacc(GNU Bison 3.8.2), Matplotlib, GNU C Compiler(13.2.1, must 11 above), Python(3.11.6, must 3 above), CMake(3.28.2, must 3.16.3 above), ninja(1.11.1)

Let's introduce the methods:

  1. Force mixing F1=Fx1+Fy1; F2=Fx2+Fy2; F1+F2=F

The Program use SI, so please check your parameters before you use this program.

About

A Physics Engine for movement analysis

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages