Time-domain solver for post-flutter limit-cycle oscillations of thin plates ("flags"), coupling a geometrically-nonlinear ANCF shell FEM to an unsteady vortex lattice method.
Authors: Saurabh Khimesra, Ashish Hol Demo video: https://youtu.be/YLkvCXEkd9A
MATLAB, no compiled dependencies. Two cases are included: a single sheet, and two sheets separated by a nondimensional gap.
- What it solves
- Requirements
- Repository layout
- Running a case
- Parameters
- Formulation
- Outputs
- Troubleshooting
- References
- License
- Structure - thin shell discretised with the absolute nodal coordinate formulation (ANCF), 9 DOF per node, 36 per four-node element. Large rotations and large displacements are handled without small-angle assumptions.
- Fluid - unsteady vortex lattice method. Bound vortex rings on the plate, a shed wake that convects with the local induced velocity, and an unsteady Bernoulli pressure recovered on each panel.
- Coupling - the added-mass part of the fluid load is computed explicitly and
moved onto the inertia side of the structural equation, which is what keeps the
scheme stable at mass ratios where a plain staggered exchange diverges. Set with
coupling_flag(single-sheet case).
Time integration is an Euler predictor-corrector scheme
(cores/solver/structure/solve_structure.m), with alpha_v blending the implicit and
explicit updates. solve_structure_simple_implicit.m and
solve_structure_PredictorCorrector_method.m are kept alongside it as alternatives.
No MathWorks toolboxes are required. The code uses maxNumCompThreads(core_num)
rather than parfor, so the Parallel Computing Toolbox is not needed. GUI.fig is a
GUIDE app - it still runs on current releases, but GUIDE itself has been removed from
MATLAB, so the layout can no longer be edited.
The solver depends on six MATLAB Central submissions. Run
get_toolboxesfrom the repository root once and it fetches all six, unpacks each into both cases
under the folder name that add_pathes.m expects, and applies the TriStream patch
below. They are not vendored here because two of the six ship without any license
text, so redistributing them would not be sound; .gitignore keeps the downloads
out of git.
| Folder name expected | Submission | Used by |
|---|---|---|
Meshing_a_plate_using_four_noded_elements / Plate_Mesh |
Meshing a plate using four noded elements (KSSV) | mesh generation |
Sparse_sub_access / FEM_sparse |
Sparse sub access (B. Luong) | global matrix assembly |
Vectorized_Multi-Dimensional_Matrix_Multiplication / mntimes |
Vectorized multi-dimensional matrix multiplication (D. Koblick) | element-wise kernels |
TriStream |
TriStream (M. Wolinsky) | streamline plots |
quiver5 |
Quiver 5 (B. Dano) | velocity field plots |
mmwrite |
mmwrite (M. Richert) | movie export |
The two cases were written at different times and expect different folder names for
the same submission, which is why get_toolboxes writes each one twice. The last
three rows are only needed for plotting and movies - the solver itself runs without
them. mpgwrite is not fetched: it is reached only when movie_format = 'mpeg', and
the default 'wmv' path uses mmwrite.
ToolBoxes/toolboxes.pdf lists the same set with screenshots.
single_sheet/
GUI.m, GUI.fig entry point
add_pathes.m addpath list (edit to match your ToolBoxes folder names)
cores/
exe.m main time-marching script
initializing.m default figure/font settings
plot_data.m post-processing and figure export
version_check.m guards param_setting against the solver version
reduce_mat_file.m shrinks saved .mat results
solver/
fluid/ panels, wake, induced velocity, fluid force (8 files)
structure/ shape functions, elements, stiffness, time stepping (9 files)
solve_energy.m energy and work-rate balance
solve_mode.m modal analysis
initial_values.m
functions/
fluid/ vortex-ring kernels, pressure interpolation
structure/ strain/curvature derivatives, system residual
ToolBoxes/ <- third-party submissions go here
save/
param_setting.m all run parameters
fig/ exported figures (.fig/.pdf), fig/modes/ for mode shapes
double_sheets/ same structure; ToolBoxes/ sits at the case root, not under cores/
- Run
get_toolboxesonce from the repository root. cdintosingle_sheetordouble_sheets.- Edit
save/param_setting.m. - Run
GUIfrom the command window (or openGUI.fig), then use Parameters -> exe -> plot.
To run headless, skip the GUI and call exe directly - it calls add_pathes and
param_setting itself.
version_check.m compares exe_ver against param_ver and warns on a mismatch, so
keep the two in step if you copy a parameter file between the cases (single sheet is
at version 12.0, double sheets at 1.0 - they are not interchangeable).
For a first run, cut End_Time to 1-2 and keep the default mesh. A full
End_Time = 30 run at Nx = 15, Ny = 10 takes hours.
Everything lives in save/param_setting.m. Defaults as committed:
%% single_sheet End_Time = 30; % nondimensional analysis time d_t = 1.5e-3; % nondimensional time step core_num = 8; % computational threads alpha_v = 0.5; % 1: implicit, 0: explicit coupling_flag = 1; % 1: strong coupling (explicit added mass), 0: weak (staggered) Ma = 1.0; % mass ratio M* Ua = 25; % nondimensional flow velocity U* Nx = 15; % elements along the chord Ny = 10; % elements along the span thick = 1e-3; % nondimensional thickness Width = 1.0; % aspect ratio H* = H/L mode_num = 5;
%% double_sheets End_Time = 20; d_t = 1.0e-3; core_num = 6; Ua = 15.0; theta_a_vec = 0e-1*[0 10]; % material damping, per sheet
The initial disturbance is a half-sine body force applied over the first 0.2 of nondimensional time,
q_in_norm = @(time)( 0.5*sin(pi*time/0.2).*(time < 0.2) );
which excites the plate without the numerical shock that an impulsive initial velocity
(dt_rz_end) produces.
With
plus the geometric ratios
where
Structure. After discretisation the semi-discrete system is
where
Fluid. Enforcing no-penetration at the panel collocation points gives, for a frozen geometry and wake,
and the wake nodes convect as
Added mass. The fluid load depends on the structural acceleration. Writing that part out explicitly,
and folding Qf_p_mat_global block assembled in
calc_fluid_force.m and applied in solve_structure.m; calc_fluid_force_strong.m
and calc_fluid_force_weak.m hold the two variants. Without it, runs at
Energy check. solve_energy.m accumulates kinetic energy
save/fig/work_rate.fig) is the quickest way to tell whether a run is
physically meaningful or being driven by coupling error.
Written to save/ and save/fig/:
displacement.fig,displacement_mid_span.fig- tip and mid-span time historiesdisp_vel_mid_span_phase_plane.fig- phase portrait, shows the limit cyclesnapshot.fig,snapshot_mid_span.fig- deformed shapes through one cycleVelocity_field.fig,u/v/Unorm_distribution_0.fig- UVLM induced velocity fieldwork_rate.fig- energy balancealpha_vs_CL.fig- lift coefficient against angle of attackfig/modes/mode_*.fig- mode shapes fromsolve_mode.mdata.wmv- animation, ifmmwriteis installed
reduce_mat_file.m strips the per-step history out of a saved result when the .mat
gets unwieldy.
Diverging or NaN after a few steps. Check coupling_flag = 1 first - weak coupling
is not stable at the default mass ratio. Then reduce d_t, then coarsen the wake.
Undefined function on the first run. The submissions have not been fetched yet -
run get_toolboxes from the repository root. Re-run it with get_toolboxes('force')
to replace what is already there.
Wake blows up visually. Usually d_t too large relative to the panel size, or a
wake that has been left to grow unbounded over a long run.
tsearch undefined in TriStream. tsearch was removed from MATLAB. Patch
TriStream.m:
line 49: -x=x(:)'; y=y(:)'; x0=x0(:)'; y0=y0(:)'; u=u(:)'; v=v(:)'; +x=x(:)'; y=y(:)'; x0=x0(:)'; y0=y0(:)'; u=double(u(:)'); v=double(v(:)'); line 63: -TRI = tsearch(x,y,tri',Xbeg,Ybeg); +TRI = tsearchn([x.' y.'], tri',[Xbeg.' Ybeg.']);
This is also what NOTE.pdf contains.
Garbled characters in the comments. Sources are UTF-8 and the derivation comments carry Greek letters and integral signs. R2020a and later read UTF-8 by default; on an older release set the encoding explicitly or those characters come through as mojibake.
- A. Yamano et al., Mechanical Engineering Journal 8(1), 2021. doi:10.1299/mej.20-00459
- A. Yamano, M. Chiba, Int. J. Structural Stability and Dynamics 22(14), 2022. doi:10.1142/S0219455422501632
- A. Yamano et al., Journal of Sound and Vibration 478, 2020. doi:10.1016/j.jsv.2020.115359
- C. Forster, W. A. Wall, E. Ramm, Comput. Methods Appl. Mech. Eng. 196(7), 2007. doi:10.1016/j.cma.2006.09.002
- P. Causin, J. F. Gerbeau, F. Nobile, Comput. Methods Appl. Mech. Eng. 194, 2005. doi:10.1016/j.cma.2004.12.005
- J. Katz, A. Plotkin, Low-Speed Aerodynamics, 2nd ed., Cambridge University Press, 2001.
- R. Murua, R. Palacios, J. M. R. Graham, Progress in Aerospace Sciences 55, 2012. doi:10.1016/j.paerosci.2012.06.001
- A. A. Shabana, Computational Continuum Mechanics, Cambridge University Press, 2008.
- M. Chen et al., Journal of Fluids and Structures 45, 2014. doi:10.1016/j.jfluidstructs.2013.11.020
MIT, see LICENSE. The MATLAB Central submissions listed under Requirements are covered by their own licenses and are not redistributed here.
Stating these plainly, because they are all visible the moment you open the source.
The work predates this repository. The solver was written in 2022 - NOTE.pdf
still carries its original May 2022 timestamp - and this repository was created later,
when several older projects were consolidated into one place. The commit dates are the
consolidation, not the development.
This is old code. GUI.fig was last saved in GUIDE in November 2017. GUIDE has
since been removed from MATLAB; the app still runs, but it will not open in App
Designer and it is not going to be ported.
The method is not new. The ANCF shell formulation and its UVLM coupling follow references 1-3; the added-mass treatment follows the partitioned-FSI stability literature in references 4-5. What is here is the implementation and the numerical experiments, not a new scheme.
NOTE.pdf is not a paper. It is a one-page working note from 2022 holding the
TriStream patch reproduced in Troubleshooting. There is no
manuscript in this repository - the demo video is the
write-up.
The third-party submissions are fetched, not vendored. Two of the six ship with
no license text at all, so the repository carries get_toolboxes instead of copies.
CI runs it on every push and fails if any addpath in either case is left dangling.
The figures in save/fig are committed as-is from the runs in the demo video.
Nothing regenerates them, and there is no test suite - the energy balance in
work_rate.fig is the only correctness check the code performs on itself.