Skip to content
Snippets Groups Projects
Commit 3be59c79 authored by Oliver's avatar Oliver
Browse files

New Repository

parent 8ccc04f6
Branches
No related tags found
No related merge requests found
function [H,Z,swro_Z,ro_water,ro_salt,Mw,Ms,Rw,T0,eta,sigma,p_r,rho_r,C_r,swro_L,swro_alpha,swro_R,swro_KK,swro_x_r,swro_b1,swro_b2,J_r,swro_gamma,swro_gamma2,swro_W_r,L,alpha,R,KK,x_r,b1,b2,Q_r,gamma,gamma2,W_r,cE,pE,rho_E,J_sf_0,J_wf_0,Pd_0,Pd_L,Pf_L,Q_sf_0,pd_0,pf_0,pd_L,pf_L,HP_eff,LP_eff,T_eff,V_m,ERD_eff,ERD_fric,A_ERD,eta_ERD,mix_density,pw,pe,swro_beta_fix,beta_fix,mixer_ERD,version,fig,swro_KF,swro_KD,KF,KD]= Sim_32_data(input1, input2) function [H,Z,swro_Z,ro_water,ro_salt,Mw,Ms,Rw,T0,eta,sigma,p_r,rho_r,C_r,swro_L,swro_alpha,swro_R,swro_KK,swro_x_r,swro_b1,swro_b2,J_r,swro_gamma,swro_gamma2,swro_W_r,L,alpha,R,KK,x_r,b1,b2,Q_r,gamma,gamma2,W_r,cE,pE,rho_E,J_sf_0,J_wf_0,Pd_0,Pd_L,Pf_L,Q_sf_0,pd_0,pf_0,pd_L,pf_L,HP_eff,LP_eff,T_eff,V_m,ERD_eff,ERD_fric,A_ERD,eta_ERD,mix_density,pw,pe,swro_beta_fix,beta_fix,mixer_ERD,version,fig,swro_KF,swro_KD,KF,KD]= Sim_0_data(input1, input2)
%% Sim_32_data(input) %% Sim_32_data(input)
% %
% Data for Simulation 3.2 % Data for Simulation in chapter 3
% %
% SWRO-PRO hybrid system I (realistic ERD) % SWRO-PRO hybrid system I (realistic ERD)
% %
% option_data = 0.32 % option_data = 0
% %
% Input: % Input:
% input1 - x % input1 - x
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
% figures for SWRO, PRO and the ERD % figures for SWRO, PRO and the ERD
% original .m file from: C:>User>bav1839>Documents>MATLAB>Counter-current-solver % original .m file from: C:>User>bav1839>Documents>MATLAB>Counter-current-solver
close all; close all;
[Sim_3b_output1, Sim_3b_output2, time]=fun_1(1,.32,'sol',1e6,1e-6), %exportFigures(32); [Output1, Output2, time]=fun_1(1,0,'sol',1e6,1e-6),
%figure(1); set(gcf,'color','w'); f = gcf; exportgraphics(f,'Figure_6.png'); %figure(1); set(gcf,'color','w'); f = gcf; exportgraphics(f,'Figure_6.png');
%figure(2); set(gcf,'color','w'); f = gcf; exportgraphics(f,'Figure_7.png'); %figure(2); set(gcf,'color','w'); f = gcf; exportgraphics(f,'Figure_7.png');
%figure(3); set(gcf,'color','w'); f = gcf; exportgraphics(f,'Figure_8_ERD.png'); %figure(3); set(gcf,'color','w'); f = gcf; exportgraphics(f,'Figure_8_ERD.png');
......
...@@ -28,7 +28,7 @@ function [output1, output2, output3] = fun(input,option_data,obj,option_mesh,opt ...@@ -28,7 +28,7 @@ function [output1, output2, output3] = fun(input,option_data,obj,option_mesh,opt
% %
tic; tic;
%% Read data %% Read data
if option_data == 0; DATA = @(x)ERD_test_data(input); end if option_data == 0; DATA = @(x)Sim_0_data(input); end
% Simulations % Simulations
if option_data == 0.11; DATA = @(x)Sim_11_data(input); end if option_data == 0.11; DATA = @(x)Sim_11_data(input); end
if option_data == 0.12; DATA = @(x)Sim_12_data(input); end if option_data == 0.12; DATA = @(x)Sim_12_data(input); end
...@@ -483,18 +483,6 @@ plot(x2*L, osm_diff*p_r,'Color', rc,'LineWidth',lw); ylabel('[Pa]','Fontsize',10 ...@@ -483,18 +483,6 @@ plot(x2*L, osm_diff*p_r,'Color', rc,'LineWidth',lw); ylabel('[Pa]','Fontsize',10
end end
%% figure 2 %% figure 2
if fig(2) == 1 if fig(2) == 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment