BumpVelocityField

class sharpy.generators.bumpvelocityfield.BumpVelocityField[source]

Bump Velocity Field Generator

BumpVelocityField is a class inherited from BaseGenerator

The BumpVelocityField class generates a bump-shaped gust profile velocity field, and the profile has the characteristics specified by the user.

To call this generator, the generator_id = BumpVelocityField shall be used. This is parsed as the value for the velocity_field_generator key in the desired aerodynamic solver’s settings.

The resultant velocity, $w_g$, is calculated as follows:

\[w_g = \frac{w_0}{4}\left( 1 + \cos(\frac{(x - x_0)}{H_x} \right)\left( 1 + \cos(\frac{(y - y_0)}{H_y} \right)\]

Notes

For now, only simulations where the inertial FoR is fixed are supported.

The settings that this solver accepts are given by a dictionary, with the following key-value pairs:

Name Type Description Default
gust_intensity float Intensity of the gust None
x0 float x location of the centre of the bump 0.0
y0 float y location of the centre of the bump 0.0
hx float Gust gradient in the x direction 1.0
hy float Gust gradient in the y direction 1.0
relative_motion bool When true the gust will move at the prescribed velocity False
u_inf float Free stream velocity None
u_inf_direction list(float) Free stream velocity direction <sphinx.ext.autodoc.importer._MockObject object at 0x7f261178d908>