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.2.tar.gz
.
File metadata
- Download URL: pds_solar_gen-0.1.2.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 | 18f503d19f629f12f1681f2b2dddb542127f127f858d7bc1809ef33021ad4f65 |
|
MD5 | 4e3b11d8403b495e9060a90cc354cce7 |
|
BLAKE2b-256 | 60cc3904ae0ccf756623c885821f6f5acb5c6cd6e6ccddc001a3e9baee36f99d |
File details
Details for the file pds_solar_gen-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: pds_solar_gen-0.1.2-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 | 510c8dd95794790e7f77bd925f3b00ca9a7531fe1725528afe9b591c395f243b |
|
MD5 | 09f0646cd529ac6d688dbc84258b2455 |
|
BLAKE2b-256 | 1f42b97706686e30f0dd9aff70aeeac1eeb0f6c708f69afb9e18021d2ffc5318 |