Python vessel simulation environment
Project description
MCSimPython
Vessel simulator used in master project and master thesis of M. Kongshaug, H. Mo and J. Hygen. The project is developed at Norwegian University of Science and Technology, Institue of Marine Technology.
The python package is not complete and there is no guarantee for the validity of the vessel models.
Structure
All code implementation is found in the src
directory. The python package is structured as follows:
src/MCSimPython/simulator/
Simulation Models. Python Path:=MCSimPython.simulator
csad.py
: Simulation models for C/S Arctic Drillshipgunnerus.py
: Simulation models for R/V Gunnerus
src/MCSimPython/waves/
Wave kinematics, wave spectra, and wave loads. Python Path :=MCSimPython.waves
src/MCSimPython/guidance/
Reference Models. Python path:=MCSimPython.guidance
(in development)filter.py
: A third order reference filter.path_param
: Waypoint path parameterization.
src/MCSimPython/observers/
Observers :MCSimPython.observer
(in development)nonlinobs.py
: Nonlinear observers (only 3DOF nonlinobs w/ wavefiltering atm)
src/MCSimPython/control
Controllers :MCSimPython.control
(in development)basic.py
: Simple PD and PID controllersbackstepping.py
: A simple backstepping controller (no bias compensation).
How to use MCSimPython
- Clone the GitHub repository to your local computer.
- Create a virtual environment
py -m venv name-of-venv
- Activate virtual environment
name-of-venv\scripts\activate
- Update pip and setuptools:
py -m pip install --upgrade pip setuptools
- Install the python package locally as an editable:
pip install -e .
- Verify that the python package
MCSimPython
has been installed properly by running a demo script, or simply
(venv) C:\path\to\dir> python
>>> import MCSimPython
>>>
Demos
Demonstration of how the individual components of the python package can be used is given in demos
. Some demos of combination of the different components are also given here.
Visualization
RVG 6DOF model in beam sea
RVG 6DOF model in multidirectional sea
CSAD 6DOF model in multidirectional sea
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
MCSimPython-0.0.13.tar.gz
(4.2 MB
view hashes)
Built Distribution
Close
Hashes for MCSimPython-0.0.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9e3dfdbeb4e5a2b6ff68f36a9226f0a1be4ae9e8d4b55ee7d79b013704dd6c2 |
|
MD5 | 3ce6ca6164c54a4b0dd08ada9f38f06d |
|
BLAKE2b-256 | 27ffed987b1ac1c3129eb1ddd403dc495631bda91ad89679bbb8e895b18c1ea4 |