Login   Register  
PHP Classes

File: examples/case-studies/science/physics/orbital_simulation/orbital_simulation-GR.md

Recommend this page to a friend!
  Classes of ASCOOS CMS   Ascoos OS   examples/case-studies/science/physics/orbital_simulation/orbital_simulation-GR.md   Download  
File: examples/case-studies/science/physics/orbital_simulation/orbital_simulation-GR.md
Role: Documentation
Content typex: text/markdown
Description: Documentation
Class: Ascoos OS
A PHP Web 5.0 Kernel for decentralized web and IoT
Author: By
Last change:
Date: 24 days ago
Size: 3,917 bytes
 

Contents

Class file image Download

??????????? ??????? ?????????

???? ? ?????? ?????????? ??????? ??? ?? Ascoos OS ?????? ?? ???????????? ???? ???????? ?? ??????? ?????? ???? ??? ?? ??. ?????????? ??????? ??????? ????????? ??? ?????????? ?? ???????????? ?? JSON, ??? ?? ??????????? ???????.

??????

  • ??????????? ????????? ?????????
  • ??????????? ????????? ??? ????????? ?????????
  • ?????????? ?????????? ?? ??? ?????
  • ????????? ????????? ???????????
  • ?????????? ???????? ?? JSON

?????? ??????? ??? Ascoos OS

  • TPhysicsHandler ??????????? ??????? (????????, ???????? ?.??.)
  • TArrayGraphHandler ?????????? ?????????? ?? ??? ????????????? ?????
  • TEventHandler ????????? ?????????
  • TErrorMessageHandler ?????????? ????????? ??? ??????????

???? ???????

? ????????? ????????? ?? ??? ?????? PHP: - orbital_simulation.php

???????????? ??? ?? ??????: ????????????, ??????????, ????????? ??? ??????????.

??????????????

  1. PHP ? 8.2
  2. ????????????? ?? Ascoos OS ? ?? AWES 26

??? ?????????

  1. ????????? ?? ??????? ?????????? ??? ?????????? (?????, ??????, ??????? G).
  2. ???????????? ? ???????? ???????? ?? ??? ????: `v = ?(GM / r)`
  3. ???????????? ? ???????? ????????: `K = ½ m v²`
  4. ???????????? ? ???????? ????????: `U = -GMm / r`
  5. ????????????? ??????? ?? ??? ?????
  6. ???????????? ?????? ???????????
  7. ???????????? ??????? ?? JSON
  8. ??????????? ?????? ???? ???????

?????????? ??????

$orbitalVelocity = $physicsHandler->OrbitalVelocity($G, $earthMass, $orbitalRadius); $kineticEnergy = $physicsHandler->KineticEnergy($satelliteMass, $orbitalVelocity); $potentialEnergy = -$G $earthMass $satelliteMass / $orbitalRadius; $graphHandler->setArray([ ['label' => 'Orbital Velocity (m/s)', 'value' => $orbitalVelocity], ['label' => 'Kinetic Energy (J)', 'value' => $kineticEnergy], ['label' => 'Potential Energy (J)', 'value' => $potentialEnergy] ], ['label', 'value']); $graphHandler->createLineChart($outputPath . '/orbital_simulation.png'); 

??????????? ??????????

Orbital Simulation Complete. Orbital Velocity: 7672.598648 m/s Kinetic Energy: 29440800000 J Potential Energy: -58881600000 J 

?????

??????????

???????? ?? ??????????? ??? ??????????? ?? ??????????? ???????, ????????? ???? ? ????????????? ?? ???? ??????. ????? ?? CONTRIBUTING.md ??? ???????.

????? ??????

???? ? ?????? ?????????? ??? ??? Ascoos General License (AGL). ????? ?? LICENSE.md.