Skip to content

Commit

Permalink
Removed unused P_factor_fault
Browse files Browse the repository at this point in the history
  • Loading branch information
Buijze committed Jan 5, 2025
1 parent 03dde8e commit baf12bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
10 changes: 4 additions & 6 deletions src/calculator/Pressure.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
% P_steps - Pressure change steps
% P_factor_HW - Pressure factor for the hanging wall
% P_factor_FW - Pressure factor for the footwall
% P_factor_fault - Pressure factor for the fault
% P0_fault_mode - Mode to set initial fault pressure
% P_fault_mode - Mode to set fault pressure during loading
% P_res_mode - Mode to set initial reservoir pressures
Expand Down Expand Up @@ -58,7 +57,6 @@
P_steps (:,1) = [0,-1] % [MPa] pressure change
P_factor_HW (:,1) = [1,1]
P_factor_FW (:,1) = [1,1]
P_factor_fault (:,1) = [1,1]
P0_fault_mode {mustBeMember(P0_fault_mode,{'max','min','mean','FW','HW'})} = 'max';
P_fault_mode {mustBeMember(P_fault_mode,{'max','max_abs','min', 'min_abs','mean','FW','HW'})} = 'min';
P_res_mode {mustBeMember(P_res_mode, {'same','different'})} = 'same'
Expand Down Expand Up @@ -98,7 +96,7 @@
end


function [P0] = get_initial_pressure(self)
function [P0] = get_P0(self)
% get_initial_pressure Returns the initial fault pressure
% Output:
% P0 - Initial pressure in the fault
Expand Down Expand Up @@ -129,7 +127,7 @@
P0_HW = self.get_P0_on_side('HW');
P_FW = P0_FW + dP_FW;
P_HW = P0_HW + dP_HW;
P0_fault = self.get_initial_pressure();
P0_fault = self.get_P0();
P_fault = self.set_fault_pressure(P_HW, P_FW, self.P_fault_mode);
% set initial pressure again to ensure consistent state at t = 0;
if self.time_steps(1) == 0
Expand Down Expand Up @@ -352,15 +350,15 @@
% get.P0 Returns the initial pressure.
% Output:
% P0 - Initial pressure
P0 = self.get_initial_pressure();
P0 = self.get_P0();
end

function dP = get.dP(self)
% get.dP_fault Returns the pressure difference across the fault.
% Output:
% dP - Pressure difference across the fault
if contains(self.load_case,'P')
dP = self.get_P_fault() - self.get_initial_pressure;
dP = self.get_P_fault() - self.get_P0;
else
dP = zeros(length(self.y), length(self.time_steps));
end
Expand Down
1 change: 0 additions & 1 deletion src/calculator/initialize_load_table.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
load_table.P_steps = -1* linspace(0, 35, n_steps)';
load_table.P_factor_HW = ones(size(load_table.P_steps));
load_table.P_factor_FW = ones(size(load_table.P_steps));
load_table.P_factor_fault = ones(size(load_table.P_steps));
load_table.T_steps = -1* linspace(0, 35, n_steps)';
load_table.T_multiply = ones(size(load_table.P_steps));
load_table.T_factor_HW = ones(size(load_table.P_steps));
Expand Down

0 comments on commit baf12bd

Please sign in to comment.