ProteusDS floating solar platform generation script.
Project description
ProteusDS Solar Platform Generator
This repository contains a CLI tool, pds-solar-gen
, that generates floating solar platforms for
DSA's ProteusDS. The goal of this tool is to reduce the tediousness of writing ProteusDS simulation
files for large floating solar platforms.
This tool generates a series of simulation files containing the specifications and parameters of individual floats, the connections between them, and/or thrusters to drive the platform. It does not generate the ProteusDS executable (.PDSi), summary (.PDSp) files, or the custom meshes for the individual floats.
This tool is designed to be used per the following workflow:
- Open ProteusDS and save a blank simulation
- Copy the "config.yaml" into the simulation folder and edit as necessary
- Open a command terminal or Anaconda prompt, "cd" to the current working folder, and run
pds-solar-gen generate <n_rows> <n_cols> config.yaml .
- This will generate an array of the entered rows and columns and save the files in the current working folder
- Reopen the simulation executable
- Run the simulation to allow the array to settle
- When the initial simulation has completed, export the results to a new simulation
- In the new simulation, edit environment and simulation time parameters in the ProteusDS GUI as desired
- Run the new simulation
Usage
To use this tool, you must first have Conda (Anaconda or Miniconda) and Git installed on your local machine.
-
Pip install the repository from the github repository:
pip install "git+https://github.com/jmcvey3/pds-solar-gen.git@main#egg=pds-solar-gen"
-
Run the tool with:
pds-solar-gen generate <nrows> <ncols> <path/to/config_file.yaml> <path/to/simulation/folder>
Full usage instructions can be obtained using the --help
flag:
>>> pds-solar-gen generate --help
Usage: pds-solar-gen generate [OPTIONS] NROWS NCOLS CONFIG_FILE OUTPUT_PATH
╭─ Arguments ─────────────────────────────────────────────────────────────────────────────────────────────╮
│ * nrows INT Number of rows, i.e. rows of solar panels, to create for the platform. Dictates number│
│ of long and small floats to use. │
│ [default: 3] │
│ [required] │
│ * ncols INT Number of columns, i.e. columns of solar panels, to create for the platform. Dictates │
│ number of main floats and solar panels, in the platform to create. │
│ [default: 3] │
│ [required] │
│ * config_file PATH Path to the configuration file that that should be used to generate the array. │
│ [default: config.yaml] │
│ [required] │
│ * output_path PATH Path to the folder that the generation simulation files should be saved. │
│ [default: pds_sim] │
│ [required] │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────╮
│ --help Show this message and exit. │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Setting Thruster Locations
There are several thruster parameters than can be edited in the yaml configuration file ("config.yaml").
- The thruster model
- Number of thrusters
- Thruster location
- Thruster angle
- RPM setpoint
The thruster model is specified via the name
and body
keys.
Currently the Blue Robotics T200 and T500 are programmed into the
sourcecode, with the default set to use 4 BlueRobotics T200
thrusters.
To add thrusters,
-
First set
n
to the total number in use. -
Next, pair the thruster with the float you plan to attach it to in
float_pairs
. The keys should be in numerical order, starting from "0", and the items are the float names, either "Small_Float#", "Main_Float#", or "Long_Float#", where "#" is the float number. -
To locate the thrusters in space, set the distance in cartesian coordinates (x, y, z) from the center of the float to the thruster in
float_location
. These are ordered in the same order asfloat_pairs
. For a small float, setting a thruster at the edge of its shorter side is [0, -0.2, 0.16]. Note that +Z is down in ProteusDS. -
Set the angle you want each thruster to point towards with
angle
. Setting this to 90 means that the thruster is facing along the +Y axis (the row axis) in ProteusDS, directing thrust in the -Y direction. -
Finally, we can set the
RPM
setpoint. This ultimately determines the thruster speed. ProteusDS uses the thrust and torque coefficients in the thruster library file to determine speed from RPM.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pds_solar_gen-0.1.1.tar.gz
.
File metadata
- Download URL: pds_solar_gen-0.1.1.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef9ee945eed288ee1bee1fcc587b8486b784ca8738d6e299fb758d45f2d79f2f |
|
MD5 | 65b9cb069cfc354416a4d73e5988b903 |
|
BLAKE2b-256 | 372ef5f7e05e2297324a32a27dc089ea76de5a47fe17953e86e0a53922002506 |
File details
Details for the file pds_solar_gen-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: pds_solar_gen-0.1.1-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f6a630f190709e259686ceda4a4a0588b9898b1ee794e09900bf23c5076dd8a |
|
MD5 | 73ea41286ff99c2802d2fd1ff64f146f |
|
BLAKE2b-256 | 60b2bd2800fc6d51d02efd39de1cc153924f23939d09f0fea3f8df02efa06c3c |