Unsteady simulations
Last updated
Last updated
For unsteady simulations the APM Solver assumes that the wake is free, i.e. the wake is allowed to deform and interact with itself and the body. The following options in the .conf file are changed:
dt
- the time step size in seconds
N_timesteps
- the number of timesteps
output_frequency
- the results output frequency
Two of the three options are identical to the ones for steady simulations, however, their values differ. The time step, dt
, should be selected such as to allow proper development of the wake. As an initial estimate dt
should be selected as the time it takes the flow to travel one chord length. If the airspeed is norm_V_ref=10
m/s and the c_ref=1
m, dt
should be approximately 0.1s. The number of time steps N_timesteps
should be sufficiently high to allow the aerodynamic loads to stabilise. The output_frequency
option instructs APM how often to output results.
If the output_frequency option is equal to 10, the APM Solver will output results every 10 timesteps. The values for airspeed and chord are arbitrary and are used for illustrative purposes.
The image above shows an unsteady simulation of a NACA4412 wing with custom .motion file. The structure of an example .motion file is shown below:
Below is an example MATLAB file which can be used to generate a .motion file.
Custom motion can be specified, if required, during unsteady simulations. If a .motion file is created in the current working directory the APM solver will ignore the dt
and N_timesteps
options specified in the .conf file and will use the time step and number of time steps specified in the .motion file. The unsteady motion file contains 10 variable per row - ,,,,,,,,, and . The variables represent the velocity components, rotational rates, and kinematic angles at each time step. An example motion is a sinusoidal motion with a variation of the angle of attack given by:
where is the frequency of the motion and is the amplitude of the angle of attack. The and variables can be determined from the equation for :