MATLAB Usage
MATLAB can use simbl through MATLAB's built-in Python interface.
Setup
First, make sure simbl is installed in a Python environment:
In MATLAB, point pyenv to that Python executable. For example, if simbl is
installed in the dev conda environment:
Then import the package:
Examples
This example solves an isothermal Mach 5 Falkner-Skan profile, maps the similarity coordinate to physical \(y\), and plots \(u/u_e\) and \(T/T_e\).
For swept flows, pass sweep_angle in the inputs and select
falkner_skan_cooke in the solver options. The FSC solution includes the
crossflow profile solution.g, which is \(w/w_e\). This example also maps
the profiles to physical \(y\) for comparison with CFD or experimental data.
Field Names
The common solver output fields are summarized in the Run Solver workflow page.
For density under the constant-pressure boundary-layer approximation, use
rho_rhoe = 1.0 ./ temp in MATLAB, where temp is \(T/T_e\).