Skip to main content

Tidal simulation with multiple moons (for Emily)

Project description

tidye - Tidal simulation with multiple moons in Python

PyPI Version Python Version PyPI Downloads MIT License

The tidye simulator calculates tidal interactions between a planet and one or more moons.

Installation

The easiest way to install the package is to download it from PyPI using pip. Note that tidye depends on Python 3.9 or newer; please ensure that you have a semi-recent version of Python installed before proceeding.

Run the following command in a shell (a UNIX-like environment is assumed):

$ pip install tidye

The package has a few external dependencies besides Python itself. If you wish to sandbox your installation inside a virtual environment, you may choose to use virtualenvwrapper or a similar utility to do so.

When successfully installed, a program called tidye will be placed on your PATH. See the Usage section below for details about how to use this program.

Usage

The tidye program is a command-line interface for simulating tidal forces.

At any time, you can use the -h or --help flags to see a summary of options that the program accepts.

$ tidye -h
usage: tidye [-h] [-d DURATION] file

Simulate lunar tides from a provided configuration file.

positional arguments:
  file                  Path to config file (e.g., config.json)

optional arguments:
  -h, --help            show this help message and exit
  -d DURATION, --duration DURATION
                        Simulation duration (defaults to two full orbits)

Typical usage is tidye <config_file>, where <config_file> is the path to a file describing the configuration of the planet and moons that you wish to simulate. For an example config file, see the sample_config.json included in the repository, or check the example below:

{
  "planet": {
    "mass": 1000
  },
  "moons": [
    {
      "mass": 100,
      "orbital_radius": 300,
      "orbital_period": 1
    },
    {
      "mass": 200,
      "orbital_radius": 500,
      "orbital_period": 2,
      "orbital_phase": 0.5
    },
    {
      "mass": 150,
      "orbital_radius": 400,
      "geostationary": true
    }
  ]
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tidye-0.1.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tidye-0.1.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file tidye-0.1.1.tar.gz.

File metadata

  • Download URL: tidye-0.1.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.1 Darwin/24.3.0

File hashes

Hashes for tidye-0.1.1.tar.gz
Algorithm Hash digest
SHA256 cb87e4822e23cb5aa080e50dd60a85516fe31b2a2ea9a74797a088f140850fd5
MD5 6b655ee9be4503c7ea11ee04a212fc84
BLAKE2b-256 7fdbc4b507105460407bfd5e050467f7b6263b52404d4d19b8f1e2c2b0629e98

See more details on using hashes here.

File details

Details for the file tidye-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: tidye-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.1 Darwin/24.3.0

File hashes

Hashes for tidye-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 db96f03deb585c1af320094cb60cdd62d819ba1872d1c6dc0e3c513c3ac6deae
MD5 cb546ddf5473c95cf8ecce12aab6da2f
BLAKE2b-256 82fb0753499988193def2edaddb5e6aec4f0ae17cb9d9e995ecace233f829b3b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page