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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tidye-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 e0e12ac793d9ba9fbcb89965ac08a44609e14f9ce2dc8081769f5c635c3f6532
MD5 27924249a48d4da2d55af239f83d9106
BLAKE2b-256 f2b81dca112d7e1b94091ccfc0884e683aab43db16b5ef6e155275a965a7faef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tidye-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0a7e91a74c0b9ed3faef8ac660eaf99d3245d133e098710cf7ac69ea8464958d
MD5 ab39c2eefe23864d1eae8b301f438eb0
BLAKE2b-256 5ebbd2b07ff69f61318a847abbe2183b776224185fc823ecb935bbb17f7852fa

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