-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add explanation of Soil_Inertia1.m #224
Open
EntingTang
wants to merge
4
commits into
main
Choose a base branch
from
Soil_inertial1_ET
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
f9ab284
Add reference and explanation on Soil_Inertia1.m
EntingTang dc396d2
Change the comment style of Soil_Inertia1.m to follow the best practice
EntingTang 22a31db
Change the comment of Soil_inertial1.m to follow the best practice
EntingTang 2f82376
Change the comment style of Soil_Inertia1.m to follow the best practice
EntingTang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
function [GAM] = Soil_Inertia1(SMC, theta_s0) | ||
% soil inertia method by Murray and Verhoef ( | ||
% soil inertia method by Murray and Verhoef (2007), and the soil inertial (GAM) is used to calculate the soil heat flux | ||
|
||
% % parameters | ||
|
||
theta_s = theta_s0; % (saturated water content, m3/m3) | ||
Sr = SMC / theta_s; | ||
|
||
% fss = 0.58; %(sand fraction) | ||
gamma_s = 0.27; % (soil texture dependent parameter) | ||
dels = 1.33; % (shape parameter) | ||
% fss = 0.58; % (sand fraction) | ||
gamma_s = 0.27; % (soil texture dependent parameter; if fss>0.4, gamma_s=0.96 while fss=<0.4, gamma_s=0.27) | ||
dels = 1.33; % (shape parameter, constant) | ||
|
||
ke = exp(gamma_s * (1 - power(Sr, gamma_s - dels))); | ||
ke = exp(gamma_s * (1 - power(Sr, gamma_s - dels))); % (Kersten number, Eq.(15)) | ||
|
||
phis = theta_s0; % (phis == theta_s) | ||
lambda_d = -0.56 * phis + 0.51; | ||
phis = theta_s0; % (porosity, phis=theta_s=theta_s0) | ||
lambda_d = -0.56 * phis + 0.51; % (thermal conductivity for air-dry soil, Eq.(16)) | ||
|
||
QC = 0.20; % (quartz content) | ||
lambda_qc = 7.7; % (thermal conductivity of quartz, constant) | ||
QC = 0.20; % (quartz content, approximate to fss if no measured QC) | ||
lambda_qc = 7.7; % (thermal conductivity of quartz, W/m.K, constant) | ||
|
||
lambda_s = (lambda_qc^(QC)) * lambda_d^(1 - QC); | ||
lambda_s = (lambda_qc^(QC)) * lambda_d^(1 - QC); % (thermal conductivity of the soil solids, Eq.(18)) | ||
lambda_wtr = 0.57; % (thermal conductivity of water, W/m.K, constant) | ||
|
||
lambda_w = (lambda_s^(1 - phis)) * lambda_wtr^(phis); | ||
lambda_w = (lambda_s^(1 - phis)) * lambda_wtr^(phis); % (thermal conductivity for saturated soil, Eq.(17)) | ||
|
||
lambdas = ke * (lambda_w - lambda_d) + lambda_d; | ||
lambdas = ke * (lambda_w - lambda_d) + lambda_d; % Eq.(14) | ||
|
||
Hcs = 2.0 * 10^6; | ||
Hcw = 4.2 * 10^6; | ||
Hcs = 2.0 * 10^6; % (heat capacity of solid soil minerals, J/m3.K) | ||
Hcw = 4.2 * 10^6; % (heat capacity of water, J/m3.K) | ||
|
||
Hc = (Hcw * SMC) + (1 - theta_s) * Hcs; | ||
Hc = (Hcw * SMC) + (1 - theta_s) * Hcs; % Eq.(13) | ||
|
||
GAM = sqrt(lambdas .* Hc); | ||
GAM = sqrt(lambdas .* Hc); % Eq.(10) | ||
end |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.