modifysu2cfg(inputfile, outputfile, varargin)
% MODIFYSU2CFG is designed to modify and/or add Option lines.
% For example, to swap Mach number or boundary inlet conditions.
% MODIFYSU2CFG('turb_NACA0012.cfg',...
% 'test_config.cfg', ...
% 'MESH_FILENAME', 'test_grid.su2',...
% 'AoA', AoA, ...
% 'REYNOLDS_NUMBER', 3*10^6,...
% 'MACH_NUMBER',0.15,...
% 'FREESTREAM_TURBULENCEINTENSITY',0.001,...
% 'FREESTREAM_TURB2LAMVISCRATIO', 100.0,...
% 'KIND_TURB_MODEL', 'SST');
%
% It will copy turb_NACA0012.cfg to test_config.cfg with changed options for
% MESH_FILENAME, AoA, etc.
%
% All the options must be pared with OptionName and OptionValue, if
% OptionValue are number with size [1,1], it can be left as number;
% otherwise, it can only be character sequence. For Matlab tradition, the
% function can be use as command line tools as:
%
% MODIFYSU2CFG turb_NACA0012.cfg test_config.cfg OptionName OptValue
%
% All the arguments will be regarded as string automatically.
% See SU2 homepages for more information, http://su2.stanford.edu/
Cite As
Qin CHEN (2024). modifysu2cfg(inputfile, outputfile, varargin) (https://www.mathworks.com/matlabcentral/fileexchange/48275-modifysu2cfg-inputfile-outputfile-varargin), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Aerospace > Aerospace Blockset > Guidance, Navigation, and Control (GNC) >
- Engineering > Mechanical Engineering > Computational Fluid Dynamics (CFD) >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |