Рет қаралды 13,361
here is the matlab code that was used in this video :
tic
clc; clear;
%% Changing the input parameters
Length = 25;
Height = 10;
% creating new journal file
fid = fopen('base journal.wbjn','r');
f = fread(fid,'*char')';
fclose(fid);
f = strrep(f,'Length' , num2str(Length));
f = strrep(f,'Height' , num2str(Height));
fid = fopen('finaljournal.wbjn','w');
fprintf(fid,'%s',f);
fclose(fid);
%% Calculations in ansys with input parameters
system('C:\"Program Files"\"ANSYS Inc"\v212\Framework\bin\Win64\RunWB2.exe -B -R finaljournal.wbjn');
%% saving the output parameter
Nusselt_no = xlsread('export data.csv','export data','D8');
toc