-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from chrishavlin/add_new_G_example
updating examples, documentation
- Loading branch information
Showing
28 changed files
with
133 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,3 +69,5 @@ | |
ylim([0,150]) | ||
set(gca,'ydir','reverse') | ||
end | ||
|
||
saveas(gcf,'./figures/CB_008_anharmonic_Gu0.png') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% CB_013_G_K_inputs.m | ||
% | ||
% Specify unrelaxed shear and bulk moduli. | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
|
||
% put the VBRc in the path % | ||
clear | ||
path_to_top_level_vbr='../../'; | ||
addpath(path_to_top_level_vbr) | ||
vbr_init | ||
|
||
% specify state variables as usual | ||
VBR = struct(); | ||
VBR.in.SV.T_K = linspace(800, 1000, 4); | ||
sz_T = size(VBR.in.SV.T_K); | ||
VBR.in.SV.P_GPa = linspace(2, 3, 4); | ||
VBR.in.SV.rho = 3300 * ones(sz_T); | ||
VBR.in.SV.phi = 0.01 * ones(sz_T); | ||
VBR.in.SV.sig_MPa = 1 * ones(sz_T); | ||
VBR.in.SV.dg_um = 1e4 * ones(sz_T); | ||
VBR.in.SV.f = [0.01, 0.1]; | ||
|
||
% specify methods as usual | ||
VBR.in.elastic.methods_list={'anharmonic';'anh_poro';}; | ||
VBR.in.anelastic.methods_list={'eburgers_psp';'andrade_psp';'xfit_mxw'}; | ||
VBR.in.viscous.methods_list={'HZK2011'}; | ||
|
||
% also specify the unrelaxed moduli at elevated temperature, pressure. | ||
% you could, instead, load these from a file! | ||
VBR.in.elastic.Gu_TP = linspace(50, 60, 4) * 1e9; % shear modulus | ||
VBR.in.elastic.Ku_TP = VBR.in.elastic.Gu_TP * 1.5; % bulk modulus | ||
|
||
% call the VBRc | ||
VBR = VBR_spine(VBR); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,4 +77,6 @@ title: "" | |
ylim([0,150]) | ||
set(gca,'ydir','reverse') | ||
end | ||
saveas(gcf,'./figures/CB_008_anharmonic_Gu0.png') | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
permalink: /examples/CB_013_G_K_inputs/ | ||
title: "" | ||
--- | ||
|
||
# CB_013_G_K_inputs.m | ||
## contents | ||
```matlab | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% CB_013_G_K_inputs.m | ||
% | ||
% Specify unrelaxed shear and bulk moduli. | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% put the VBRc in the path % | ||
clear | ||
path_to_top_level_vbr='../../'; | ||
addpath(path_to_top_level_vbr) | ||
vbr_init | ||
% specify state variables as usual | ||
VBR = struct(); | ||
VBR.in.SV.T_K = linspace(800, 1000, 4); | ||
sz_T = size(VBR.in.SV.T_K); | ||
VBR.in.SV.P_GPa = linspace(2, 3, 4); | ||
VBR.in.SV.rho = 3300 * ones(sz_T); | ||
VBR.in.SV.phi = 0.01 * ones(sz_T); | ||
VBR.in.SV.sig_MPa = 1 * ones(sz_T); | ||
VBR.in.SV.dg_um = 1e4 * ones(sz_T); | ||
VBR.in.SV.f = [0.01, 0.1]; | ||
% specify methods as usual | ||
VBR.in.elastic.methods_list={'anharmonic';'anh_poro';}; | ||
VBR.in.anelastic.methods_list={'eburgers_psp';'andrade_psp';'xfit_mxw'}; | ||
VBR.in.viscous.methods_list={'HZK2011'}; | ||
% also specify the unrelaxed moduli at elevated temperature, pressure. | ||
% you could, instead, load these from a file! | ||
VBR.in.elastic.Gu_TP = linspace(50, 60, 4) * 1e9; % shear modulus | ||
VBR.in.elastic.Ku_TP = VBR.in.elastic.Gu_TP * 1.5; % bulk modulus | ||
% call the VBRc | ||
VBR = VBR_spine(VBR); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.