Skip to content

[CFiniteElementStd::CalcSaturation] Initialize mfp_vector[i]->Fem_Ele_Std for variable dependent fluid properties - #108

Merged
norihiro-w merged 2 commits into
ufz:masterfrom
wenqing:fixing
Aug 22, 2018

Conversation

@wenqing

@wenqing wenqing commented Aug 21, 2018

Copy link
Copy Markdown
Member

For some variable dependent fluid properties, e.g. density, the interpolation of variables is need. This PR fixes a bug in the nodal saturation calculation when variable dependent density model is used.

…_Std for variable dependent fluid properties
Comment thread FEM/fem_ele_std.cpp Outdated
MediaProp->m_pcs = pcs;
MediaProp->Fem_Ele_Std = this;
// For variable dependent fluid models, which needs variable interpolation.
for (std::size_t i=0; i < mfp_vector.size(); i++)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why not use CFiniteElementStd::SetMaterial(int phase)?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks. Changed accordingly.

@norihiro-w
norihiro-w merged commit 21e19c3 into ufz:master Aug 22, 2018
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.

2 participants