build_initbuf.m
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This file is part of NS2DDV. %
% %
% Copyright(C) 2011-2018 C. Calgaro (caterina.calgaro@math.univ-lille1.fr) %
% E. Creusé (emmanuel.creuse@math.univ-lille1.fr) %
% T. Goudon (thierry.goudon@inria.fr) %
% A. Mouton (alexandre.mouton@math.univ-lille1.fr) %
% %
% NS2DDV is free software: you can redistribute it and/or modify it under the terms %
% of the GNU General Public License as published by the Free Software Foundation, %
% either version 3 of the License, or (at your option) any later version. %
% %
% NS2DDV is distributed in the hope that it will be useful, but WITHOUT ANY %
% WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A %
% PARTICULAR PURPOSE. See the GNU General Public License for more details. %
% %
% You should have received a copy of the GNU General Public License along with %
% NS2DDV. If not, see <http://www.gnu.org/licenses/>. %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function[usrbuf] = build_initbuf(answers)
usrbuf = {};
l = 1;
usrbuf{l} = '';
l = l+1;
usrbuf{l} = '% Initialization with external data';
l = l+1;
usrbuf{l} = '%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%';
l = l+1;
usrbuf{l} = '% Use a third-party file to initialize the simulation';
l = l+1;
usrbuf{l} = '% Allowed formats: '''', ''xxx.h5'', ''xxx.mat''';
l = l+1;
usrbuf{l} = '% If '''' (default value) is selected, the simulation will be initialized with the test case parameters';
l = l+1;
usrbuf{l} = '% If a valid file is selected, some domain and physical parameters above will be ignored.';
l = l+1;
usrbuf{l} = 'PARAMETERS.INIT_FILE = '''';';
l = l+1;
usrbuf{l} = '% Build a new mesh at initialization (ignored if PARAMETERS.INIT_FILE = '''')';
l = l+1;
usrbuf{l} = '% Allowed values: ''YES'' or ''NO'' (default)';
l = l+1;
usrbuf{l} = 'PARAMETERS.REMESH = ''NO'';';
l = l+1;
usrbuf{l} = '% Use domain parameters from the third-party initialization file or PARAMETERS.DOMAIN.XXX';
l = l+1;
usrbuf{l} = '% (ignored if PARAMETERS.INIT_FILE = '''' or PARAMETERS.REMESH = ''NO'')';
l = l+1;
usrbuf{l} = '% ''EXT_FILE'' The domain geometry parameters are imposed by the contents of PARAMETERS.INIT_FILE';
l = l+1;
usrbuf{l} = '% ''CURRENT_FILE'' Use the variables PARAMETERS.DOMAIN.XXX above';
l = l+1;
usrbuf{l} = 'PARAMETERS.WHICH_GEOMETRY = ''EXT_FILE'';';
l = l+1;
usrbuf{l} = '% Reset time variable if a third-party file is used to initialize the simulation (ignored if PARAMETERS.INIT_FILE = '''')';
l = l+1;
usrbuf{l} = '% Allowed values: ''YES'' (default) or ''NO''';
l = l+1;
usrbuf{l} = 'PARAMETERS.RESET_TIME = ''YES'';';
l = l+1;
end