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.0.tar.gz (4.3 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.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tidye-0.1.0.tar.gz
  • Upload date:
  • Size: 4.3 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.0.tar.gz
Algorithm Hash digest
SHA256 b55d435e3604a09517a64da5f834e294ee95370d135a6a65d30370233f70136c
MD5 87fbd26e89a99dbf8b11fce3caf3e8b9
BLAKE2b-256 2a20918c50f389b15f55a893ff48a8b951ad3d422516e7df1e8d1e9ac5b1dc34

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tidye-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27211aa58fdb110b367c8e8ef53c3d083b5de001e12ebe868317e9aa38df36e7
MD5 a745a1455ed565ffa9b053df37cfb4e4
BLAKE2b-256 2fa84fc2ecd7c98a2241e5dd6789d91866b2430a6c1477b51c73b9caeaba209e

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