Bring your codes new vitality

This is a place where people can share and explain their codes and wisdom with others!

Codes in Detail

The codes would be make easily for learning. You are sure to be inspired by the coding tricks-tips.

Re-Usable

Codes cost us much time, but would be used only once. Share them and bring the codes new vitality!

Find Happiness

Happiness lies in rendering help to others. Join our communities and make new friends.

Mesh Format for HAMS by MATLAB

Mesh Format for HAMS by MATLAB

Hongzhong Zhu

Mesh format for HAMS. the nodes, panel distribution should be generated in advance.

A Simple Cylinder Mesh Generator for Panel Method by MATLAB

A Simple Cylinder Mesh Generator for Panel Method by MATLAB

Hongzhong Zhu

Meshing a cylinder surface and definition of the panel distribution are provided.

ESC Calibration and Speed Adjustment from Serial Port by Arduino

ESC Calibration and Speed Adjustment from Serial Port by Arduino

Hongzhong Zhu

Arduino sketch to calibrate an Electrical Speed Controllers (ESC) and test a brushless motor

Ship's MMG (Maneuvering Model Group) Model by Simulink

Ship’s MMG (Maneuvering Model Group) Model by Simulink

Hongzhong Zhu

MMG model; single-rudder-single-propeller; maneuvering; Simulink

A Motion Visualization Method for Floating Bodies by ParaView

Hongzhong Zhu

body motion visualization by MATLAB and paraVIEW. stl files of the original body should be provided.

Add Simulink Library Blocks to Model by MATLAB codes

Add Simulink Library Blocks to Model by MATLAB codes

Hongzhong Zhu

Add Simulink library blocks to model by MATLAB codes. Modeling of a flexible body is demonstrated.

Drivetrain Damper for Wind Turbine

Drivetrain Damper for Wind Turbine

Hongzhong Zhu

Drivetrain modeling, band-pass filter, disturbance observer-based method, state-space-based method

Model of Ship and Ship Towing System

Model of Ship and Ship Towing System

Hongzhong Zhu

ship model, ship towing system, course stability, maneuvering and seakeeping theories

Hybrid Wind-Wave Energy Converter

Hybrid Wind-Wave Energy Converter

Hongzhong Zhu

semisubmersible; aero-hydro-servo response; WECs applied for stabilizing FOWT

Floating Type Shrouded Wind Turbine

Floating Type Shrouded Wind Turbine

Hongzhong Zhu

Codes about experimental study and numerical model of a floating shrouded wind turbine.