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.3.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.3-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tidye-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 d5af9d4cab93170ceeed22e10b1644099b93debd0b45de563a111a23274a29d9
MD5 43ce74e20f116d45a6edfe4ad0eaa388
BLAKE2b-256 4dd279d809e91b0efbb4ec748f396a0816c157ad6078849d1304d1cac23a4d6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tidye-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c94bbe4ce0d99a138b4d32660de388aa11cf260f1445bc1775f2cb0dcc3bd799
MD5 aa462a0a1f0dabb7554da5d58f87ef38
BLAKE2b-256 fb96f7b5f01c1e7c379dfc1c7da91f1b6d86cb142eddfe8443a89c1dc779fe4a

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