HAWC2Visualization

HAWC2Visualization is a graphical HAWC2 simulation visualizer, programmed in Python by Mads M. Pedersen (DTU Wind Energy, mmpe@dtu.dk).

The program have two main features

In both cases you can save images and videos

Download

Download page

Short guide

Open “Hawc2Visualization.exe” after installing

Structure visualization

  1. Set the path to Hawc2 (version 12.3beta or newer) in "Hawc2 path"
  2. Set the "Model path" to the folder of your model
  3. Select the htc file you want to visualize
  4. Click on Load

Simulation visualization

  1. Add the visualization command to the "simulation" section of your htc file, e.g:
    "visualization ./visualization/example.hdf5;"
    You can also specify start and stop time:
    "visualization ./visualization/example.hdf5 10 20;"
  2. Run the simulation using Hawc2 version 12.3beta or newer
  3. Goto the "Simulation visualization" tab in the visualization program
  4. Set the path to the hdf5-file, e.g. "PATH_TO_MODEL/visualization/example.hdf5;"
  5. Click on Load

Set visualization dimensions

The program uses the chord, thickness and a standard profile to draw the blades. All other structures are drawn as cylinders where the diameter is estimated from the information of inertia.

For bodies with fictitious inertia values, e.g. the shaft, the diameter can be specified by adding a visualization_profile section to the body section after the "c2def" section.


Cylinder example:

begin visualization_profile;
  type cylinder;
  nsec 2; nr of visualization sections
  sec 0 6; z, diameter
  sec 1 4; z, diameter
end visualization_profile;

Cube example:

begin visualization_profile;
  type cube;
  nsec 2; nr of visualization sections
  sec 0 6 4; z, width, height
  sec 1 6 4; z, width, height
end visualization_profile;

Note that the z value is scaled according to the z maximum value, i.e. 0 is the start position of the body and max(z) is the end position