GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - SaurabhKhimesra/uvlm-ancf-fsi-solver: Strongly coupled fluid–structure interaction (FSI) solver for thin flapping sheets using ANCF-FEM and UVLM with explicit added-mass stabilization and robust partitioned coupling.

BranchesTags
Open more actions menu

Latest commit

 

History

14 Commits
14 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
double_sheets
double_sheets
 
 
single_sheet
single_sheet
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
NOTE.pdf
NOTE.pdf
 
 
README.md
README.md
 
 
get_toolboxes.m
get_toolboxes.m
 
 

Repository files navigation

Fluid-Structure Interaction of Thin Flapping Plates (ANCF shell + UVLM)

CI

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.


Contents

  • What it solves
  • Requirements
  • Repository layout
  • Running a case
  • Parameters
  • Formulation
  • Outputs
  • Troubleshooting
  • References
  • License

What it solves

  • 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.


Requirements

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_toolboxes

from 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.


Repository layout

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/

Running a case

  1. Run get_toolboxes once from the repository root.
  2. cd into single_sheet or double_sheets.
  3. Edit save/param_setting.m.
  4. Run GUI from the command window (or open GUI.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.


Parameters

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.

Nondimensional groups

With $L$ the plate length, $H$ the width, $h$ the thickness, $U_\infty$ the free-stream speed, $E$ Young's modulus and $I = H h^3 / 12$:

$$M^* = \frac{\rho_f L}{\rho_m h}, \qquad U^* = \sqrt{\frac{\rho_m h L^2 H U_\infty^2}{E I}}$$

plus the geometric ratios

$$H^* = H/L, \qquad h^* = h/L, \qquad D^* = D/L$$

where $D$ is the gap between the two sheets in the double-sheet case.


Formulation

Structure. After discretisation the semi-discrete system is

$$M \ddot{q} + C \dot{q} + f_{int}(q) = f_{ext} + f_f(q, \dot{q}, \Gamma, t)$$

where $q$ collects the ANCF nodal coordinates (position and slope vectors) and $f_{int}$ carries the geometric nonlinearity through the strain and curvature terms.

Fluid. Enforcing no-penetration at the panel collocation points gives, for a frozen geometry and wake,

$$A(q)\Gamma = b(q, \dot{q}, \Gamma^w)$$

and the wake nodes convect as $x^w_{n+1} = x^w_n + \Delta t \cdot u(x^w_n)$. Pressure comes from the unsteady Bernoulli equation and is integrated to nodal forces.

Added mass. The fluid load depends on the structural acceleration. Writing that part out explicitly,

$$f_f \approx f_f^{(0)} - M_a \ddot{q}$$

and folding $M_a$ into the left-hand side gives an effective inertia $(M + M_a)$. In the code this is the 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 $M^* \sim 1$ diverge within a few hundred steps.

Energy check. solve_energy.m accumulates kinetic energy $T = \tfrac{1}{2}\dot{q}^\top M \dot{q}$, strain energy, damping dissipation and the fluid work rate $P_f = f_f^\top \dot{q}$ each step. Plotting the residual of that balance (save/fig/work_rate.fig) is the quickest way to tell whether a run is physically meaningful or being driven by coupling error.


Outputs

Written to save/ and save/fig/:

  • displacement.fig, displacement_mid_span.fig - tip and mid-span time histories
  • disp_vel_mid_span_phase_plane.fig - phase portrait, shows the limit cycle
  • snapshot.fig, snapshot_mid_span.fig - deformed shapes through one cycle
  • Velocity_field.fig, u/v/Unorm_distribution_0.fig - UVLM induced velocity field
  • work_rate.fig - energy balance
  • alpha_vs_CL.fig - lift coefficient against angle of attack
  • fig/modes/mode_*.fig - mode shapes from solve_mode.m
  • data.wmv - animation, if mmwrite is installed

reduce_mat_file.m strips the per-step history out of a saved result when the .mat gets unwieldy.


Troubleshooting

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.


References

  1. A. Yamano et al., Mechanical Engineering Journal 8(1), 2021. doi:10.1299/mej.20-00459
  2. A. Yamano, M. Chiba, Int. J. Structural Stability and Dynamics 22(14), 2022. doi:10.1142/S0219455422501632
  3. A. Yamano et al., Journal of Sound and Vibration 478, 2020. doi:10.1016/j.jsv.2020.115359
  4. C. Forster, W. A. Wall, E. Ramm, Comput. Methods Appl. Mech. Eng. 196(7), 2007. doi:10.1016/j.cma.2006.09.002
  5. P. Causin, J. F. Gerbeau, F. Nobile, Comput. Methods Appl. Mech. Eng. 194, 2005. doi:10.1016/j.cma.2004.12.005
  6. J. Katz, A. Plotkin, Low-Speed Aerodynamics, 2nd ed., Cambridge University Press, 2001.
  7. R. Murua, R. Palacios, J. M. R. Graham, Progress in Aerospace Sciences 55, 2012. doi:10.1016/j.paerosci.2012.06.001
  8. A. A. Shabana, Computational Continuum Mechanics, Cambridge University Press, 2008.
  9. M. Chen et al., Journal of Fluids and Structures 45, 2014. doi:10.1016/j.jfluidstructs.2013.11.020

License

MIT, see LICENSE. The MATLAB Central submissions listed under Requirements are covered by their own licenses and are not redistributed here.


Notes on this repository

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.

About

Strongly coupled fluid–structure interaction (FSI) solver for thin flapping sheets using ANCF-FEM and UVLM with explicit added-mass stabilization and robust partitioned coupling.

Topics

aeroelasticityancfcomputational-mechanicsfinite-element-methodfluid-structure-interactionflutterfsimatlabuvlmvortex-lattice-method

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.