AeroTimeStepInfo

class sharpy.utils.datastructures.AeroTimeStepInfo(dimensions, dimensions_star)[source]

Aerodynamic Time step class.

Contains the relevant aerodynamic attributes for a single time step. All variables should be expressed in G FoR unless otherwise stated.

ct_dimensions

Pointer to dimensions to interface the C++ library uvlmlib`

ct_dimensions_star

Pointer to dimensions_star to interface the C++ library uvlmlib`

dimensions

Matrix defining the dimensions of the vortex grid on solid surfaces [num_surf x chordwise panels x spanwise panels]

Type

np.ndarray

dimensions_star

Matrix defining the dimensions of the vortex grid on wakes [num_surf x streamwise panels x spanwise panels]

Type

np.ndarray

n_surf

Number of aerodynamic surfaces on solid bodies. Each aerodynamic surface on solid bodies will have an associted wake.

Type

int

zeta

Location of solid grid vertices [n_surf][3 x (chordwise nodes + 1) x (spanwise nodes + 1)]

Type

list(np.ndarray

zeta_dot

Time derivative of zeta

Type

list(np.ndarray)

normals

Normal direction to panels at the panel center [n_surf][3 x chordwise nodes x spanwise nodes]

Type

list(np.ndarray)

forces

Forces not associated to time derivatives on grid vertices [n_surf][3 x (chordwise nodes + 1) x (spanwise nodes + 1)]

Type

list(np.ndarray)

dynamic_forces

Forces associated to time derivatives on grid vertices [n_surf][3 x (chordwise nodes + 1) x (spanwise nodes + 1)]

Type

list(np.ndarray)

zeta_star

Location of wake grid vertices [n_surf][3 x (streamwise nodes + 1) x (spanwise nodes + 1)]

Type

list(np.ndarray

u_ext

Background flow velocity on solid grid nodes [n_surf][3 x (chordwise nodes + 1) x (spanwise nodes + 1)]

Type

list(np.ndarray)

u_ext_star

Background flow velocity on wake grid nodes [n_surf][3 x (streamwise nodes + 1) x (spanwise nodes + 1)]

Type

list(np.ndarray)

gamma

Circulation associated to solid panels [n_surf][3 x chordwise nodes x spanwise nodes]

Type

list(np.ndarray)

gamma_star

Circulation associated to wake panels [n_surf][3 x streamwise nodes x spanwise nodes]

Type

list(np.ndarray)

gamma_dot

Time derivative of gamma

Type

list(np.ndarray)

inertial_steady_forces

Total aerodynamic steady forces in G FoR [n_surf x 6]

Type

list(np.ndarray)

body_steady_forces

Total aerodynamic steady forces in A FoR [n_surf x 6]

Type

list(np.ndarray)

inertial_unsteady_forces

Total aerodynamic unsteady forces in G FoR [n_surf x 6]

Type

list(np.ndarray)

body_unsteady_forces

Total aerodynamic unsteady forces in A FoR [n_surf x 6]

Type

list(np.ndarray)

postproc_cell

Variables associated to cells to be postprocessed

Type

dict

postproc_node

Variables associated to nodes to be postprocessed

Type

dict

in_global_AFoR

True if the variables are stored in the global A FoR. False if they are stored in the local A FoR of each body. Always True for single-body simulations. Currently not used.

Type

bool

control_surface_deflection

Deflection of the control surfaces, in rad and if fitted.

Type

np.ndarray

Parameters
  • dimensions (np.ndarray) – Matrix defining the dimensions of the vortex grid on solid surfaces [num_surf x chordwise panels x spanwise panels]

  • dimensions_star (np.ndarray) – Matrix defining the dimensions of the vortex grid on wakes [num_surf x streamwise panels x spanwise panels]

copy()[source]

Returns a copy of a deepcopy of a AeroTimeStepInfo

generate_ctypes_pointers()[source]

Generates the pointers to aerodynamic variables used to interface the C++ library uvlmlib

remove_ctypes_pointers()[source]

Removes the pointers to aerodynamic variables used to interface the C++ library uvlmlib