modifysu2cfg(inputf​ile, outputfile, varargin)

Version 1.0.0.0 (2.94 KB) by Qin CHEN
Modify SU2_CFD configuration file.
172 Downloads
Updated 27 Oct 2014

View License

% 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
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0