Skip to content

Commit

Permalink
"Updated system calls"
Browse files Browse the repository at this point in the history
  • Loading branch information
xizou committed Feb 28, 2017
1 parent 1aeba23 commit f060fea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion call_abq.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
fclose(fLoad);

% Run analysis via system call
[~] = system('abaqus job=job input=template >job.log');
[~,~] = system('abaqus job=job input=template >job.log');

% Load results from output file
Ut = load_fil('job.fil');
Expand Down
7 changes: 5 additions & 2 deletions main.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@
[P_2,M_2,Q_2] = compute_mtx(nel, E2_min, E2_max);

%% Data for 3D mechanical Problem
if non_intrusive == 1
delete *.mtx
end
if not(exist('K_1_STIF1.mtx','file') && exist('K_2_STIF1.mtx','file'))
[~] = system('abaqus job=K_1 input=K1 >K_1.log');
[~] = system('abaqus job=K_2 input=K2 >K_2.log');
[~,~] = system('abaqus job=K_1 input=K1 >K_1.log');
[~,~] = system('abaqus job=K_2 input=K2 >K_2.log');
delete K_1.* K_2.*
end

Expand Down

0 comments on commit f060fea

Please sign in to comment.