Skip to content
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

MFP: Additional viscosity model #158

Merged
merged 2 commits into from
Feb 12, 2020
Merged

Conversation

ThieJan
Copy link
Contributor

@ThieJan ThieJan commented Jan 31, 2020

Add viscosity model with dependency on temperature and concentration as presented in
Chierici (1994)

temperature and concentration dependency of viscosity as presented in
Chierici (1994)
if (viscosity_model == 10) // my(C,T),
{
in >> C_0;
in >> viscosity_T_shift;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not need. Temperature is changed to Kevin one during the computation.
There is a keyword in pcs: $TEMPERATURE_UNIT for input data.
The default temperature unit for input is Celsius.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the comment. I will adapt this

Do I understand correctly that internally the temperature is always considered in Kelvin?

I rebased this changes from a quite old version of ogs5 we used for a project and think we received temperature values in celsius then as input for this function

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right that the internal internally the temperature is always considered in Kelvin. The Celsius can be used for input and output (see PR. #115). By default, the temperature unit for input and output is Celsius.

If you have to read a temperature value, e.g a reference temperature, for a material model, you can do like the following

               in >> T_0;
                T_0 += TemperatureUnitOffset();

(see https://github.com/ufz/ogs5/blob/master/FEM/rf_mfp_new.cpp#L363-L364)

In your case, the input of in >> viscosity_T_shift is unnecessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for referencing the PR. We hadn't noticed that change. I will adapt the changes accordingly

Comment on lines 1894 to 1900
if (!T_Process)
primary_variable[1] = T_0 + viscosity_T_shift;
else
primary_variable[1] +=
viscosity_T_shift; // JM if viscosity_T_shift==273 (user
// defined), Celsius can be used within
// this model
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed.

FEM/rf_mfp_new.h Outdated
@@ -228,6 +228,7 @@ class CFluidProperties
double viscosity;
double viscosity0;
double viscosity_T_star;
double viscosity_T_shift; // for viscosity model =10
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed.

@norihiro-w
Copy link
Contributor

looks ok, except for the part of temperature shifting as Wenqing commented.

@wenqing wenqing merged commit 40bdc4f into ufz:master Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants