-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMesh_study_vtg_lab_Pc.m
45 lines (39 loc) · 1.72 KB
/
Mesh_study_vtg_lab_Pc.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
clc
clear all
%% Voltage Matrix Generation
for itr = 1501:2500
% case_nos = [351];
% case_nos = [854,624,351,514,402];
% i = case_nos(itr);
i = itr;
% %% Make sure code is starting
% t = now;
% d = datetime(t,'ConvertFrom','datenum');
% writematrix(d,'ITSTARTED!')
%% Folder name:
sim_data = SimulationData;
Test_no = sim_data.Test_no;
sim_data.Itr_no = 50000;
sim_data.res = 100;
% test_case_path = 'C:\Users\shita\Box\Simulation\OSU-DSPG\particleTest\LHS Sampling\Sampling_Cases\ExistingThrusters\';
% Path of the grid configuration information
test_case_path = 'C:\Users\shita\Box\Simulation\OSU-DSPG\particleTest\LHS Sampling\Sampling_Cases\Prototype_Engine_2\';
sim_const = Simulation_constants;
% sim_data.lengthX = 10;
% sim_data.lengthY = 10;
%% Optimixzation Loop
tStart = tic;
thruster_test = ['Sampling_Case_' num2str(i)];
% thruster_test = 'RIT_XT';
thruster_test_path = [test_case_path thruster_test];
thruster_data = access_data(thruster_test_path);
% thruster_data.Gap(2) = 0.25;
[V, O_m, Grid] = Voltage_Matrix_Generation_conv(thruster_data, sim_data, i);
% writematrix(V, ['C:\Users\shita\Box\DSPG_HPC\Topology_generation_Cluster\Test_output_files\Voltage_HPC_new_test' num2str(i) '.csv']);
% Path for the storage for output files
output_folder_path = 'C:\Users\shita\Box\Simulation\OSU-DSPG\particleTest\MeshStudyDataOutput\Prototype_engine_test\' ;
writematrix(V, [output_folder_path 'Voltage_' thruster_test '.csv']);
writematrix(toc, [output_folder_path 'Voltage_' thruster_test '.txt']);
toc
clearvars -except i
end