-
Notifications
You must be signed in to change notification settings - Fork 80
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
Implement Temperature-dependent Solid Volumetric Heat Capacity #3088
base: develop
Are you sure you want to change the base?
Implement Temperature-dependent Solid Volumetric Heat Capacity #3088
Conversation
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.
Thank you for this contribution and for documenting it properly.
…' of https://github.com/GEOS-DEV/GEOS into feature/sytuan/temperatureDependentSpecificHeatCapacity
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #3088 +/- ##
========================================
Coverage 53.57% 53.57%
========================================
Files 1003 1003
Lines 85297 85305 +8
========================================
+ Hits 45695 45703 +8
Misses 39602 39602 ☔ View full report in Codecov by Sentry. |
setDescription( "Reference solid volumetric heat capacity [J/(kg.K)]" ); | ||
|
||
registerWrapper( viewKeyStruct::dVolumetricHeatCapacity_dTemperatureString(), &m_dVolumetricHeatCapacity_dTemperature ). | ||
setInputFlag( InputFlags::REQUIRED ). |
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.
setInputFlag( InputFlags::REQUIRED ). | |
setApplyDefaultValue( 0.0 ). |
@@ -109,7 +109,8 @@ char const * xmlInput = | |||
referencePressure="0.0" | |||
compressibility="1.0e-9" /> | |||
<SolidInternalEnergy name="rockInternalEnergy" | |||
volumetricHeatCapacity="1.95e6" | |||
referenceVolumetricHeatCapacity="1.95e6" | |||
dVolumetricHeatCapacity_dTemperature="0" |
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.
dVolumetricHeatCapacity_dTemperature="0" |
@@ -94,7 +94,8 @@ char const * xmlInput = | |||
referencePressure="0.0" | |||
compressibility="1.0e-9" /> | |||
<SolidInternalEnergy name="rockInternalEnergy" | |||
volumetricHeatCapacity="1.95e6" | |||
referenceVolumetricHeatCapacity="1.95e6" | |||
dVolumetricHeatCapacity_dTemperature="0" |
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.
dVolumetricHeatCapacity_dTemperature="0" |
@@ -63,7 +63,8 @@ | |||
|
|||
<SolidInternalEnergy | |||
name="rockInternalEnergy" | |||
volumetricHeatCapacity="1.95e6" | |||
referenceVolumetricHeatCapacity="1.95e6" | |||
dVolumetricHeatCapacity_dTemperature="0" |
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.
dVolumetricHeatCapacity_dTemperature="0" |
volumetricHeatCapacity="4.56e6" | ||
name="rockInternalEnergy_linear" | ||
referenceVolumetricHeatCapacity="4.56e6" | ||
dVolumetricHeatCapacity_dTemperature="0" |
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.
dVolumetricHeatCapacity_dTemperature="0" |
@@ -104,7 +104,8 @@ | |||
compressibility="1.0e-9"/> | |||
<SolidInternalEnergy | |||
name="rockInternalEnergy" | |||
volumetricHeatCapacity="1.95e6" | |||
referenceVolumetricHeatCapacity="1.95e6" | |||
dVolumetricHeatCapacity_dTemperature="0" |
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.
dVolumetricHeatCapacity_dTemperature="0" |
@@ -80,7 +80,8 @@ | |||
|
|||
<SolidInternalEnergy | |||
name="rockInternalEnergy" | |||
volumetricHeatCapacity="2.3345e6" | |||
referenceVolumetricHeatCapacity="2.3345e6" | |||
dVolumetricHeatCapacity_dTemperature="1e6" |
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.
dVolumetricHeatCapacity_dTemperature for this case should be zero (default value)?
dVolumetricHeatCapacity_dTemperature="1e6" |
@@ -47,7 +47,8 @@ | |||
|
|||
<SolidInternalEnergy | |||
name="rockInternalEnergy" | |||
volumetricHeatCapacity="1.672e5" | |||
referenceVolumetricHeatCapacity="1.672e5" | |||
dVolumetricHeatCapacity_dTemperature="0" |
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.
dVolumetricHeatCapacity_dTemperature="0" |
@@ -49,7 +49,8 @@ | |||
<!-- SPHINX_INTERNAL_ENERGY --> | |||
<SolidInternalEnergy | |||
name="rockInternalEnergy" | |||
volumetricHeatCapacity="1.672e5" | |||
referenceVolumetricHeatCapacity="1.672e5" | |||
dVolumetricHeatCapacity_dTemperature="0" |
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.
dVolumetricHeatCapacity_dTemperature="0" |
@@ -188,7 +188,8 @@ | |||
|
|||
<SolidInternalEnergy | |||
name="rockInternalEnergy" | |||
volumetricHeatCapacity="1.95e6" | |||
referenceVolumetricHeatCapacity="1.95e6" | |||
dVolumetricHeatCapacity_dTemperature="0" |
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.
dVolumetricHeatCapacity_dTemperature="0" |
@@ -37,7 +37,8 @@ | |||
|
|||
<SolidInternalEnergy | |||
name="rockInternalEnergy" | |||
volumetricHeatCapacity="1.672e5" | |||
referenceVolumetricHeatCapacity="1.672e5" | |||
dVolumetricHeatCapacity_dTemperature="0" |
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.
dVolumetricHeatCapacity_dTemperature="0" |
@@ -219,7 +219,8 @@ | |||
|
|||
<SolidInternalEnergy | |||
name="rockInternalEnergy" | |||
volumetricHeatCapacity="1.672e5" | |||
referenceVolumetricHeatCapacity="1.672e5" | |||
dVolumetricHeatCapacity_dTemperature="1e6" |
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.
dVolumetricHeatCapacity_dTemperature for this case should be zero (default value)?
dVolumetricHeatCapacity_dTemperature="1e6" |
@@ -168,19 +168,22 @@ | |||
<!-- SPHINX_HeatCapacityProperties --> | |||
<SolidInternalEnergy | |||
name="casingInternalEnergy" | |||
volumetricHeatCapacity="1.375e6" | |||
referenceVolumetricHeatCapacity="1.375e6" | |||
dVolumetricHeatCapacity_dTemperature="0" |
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.
dVolumetricHeatCapacity_dTemperature="0" |
referenceTemperature="0" | ||
referenceInternalEnergy="0"/> | ||
|
||
<SolidInternalEnergy | ||
name="cementInternalEnergy" | ||
volumetricHeatCapacity="4.2e6" | ||
referenceVolumetricHeatCapacity="4.2e6" | ||
dVolumetricHeatCapacity_dTemperature="0" |
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.
dVolumetricHeatCapacity_dTemperature="0" |
referenceTemperature="0" | ||
referenceInternalEnergy="0"/> | ||
|
||
<SolidInternalEnergy | ||
name="rockInternalEnergy" | ||
volumetricHeatCapacity="4.56e6" | ||
referenceVolumetricHeatCapacity="4.56e6" | ||
dVolumetricHeatCapacity_dTemperature="0" |
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.
dVolumetricHeatCapacity_dTemperature="0" |
@@ -110,19 +110,22 @@ | |||
<!-- SPHINX_HeatCapacityProperties --> | |||
<SolidInternalEnergy | |||
name="casingInternalEnergy" | |||
volumetricHeatCapacity="1.375e6" | |||
referenceVolumetricHeatCapacity="1.375e6" | |||
dVolumetricHeatCapacity_dTemperature="0" |
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.
dVolumetricHeatCapacity_dTemperature="0" |
referenceTemperature="0" | ||
referenceInternalEnergy="0"/> | ||
|
||
<SolidInternalEnergy | ||
name="cementInternalEnergy" | ||
volumetricHeatCapacity="4.2e6" | ||
referenceVolumetricHeatCapacity="4.2e6" | ||
dVolumetricHeatCapacity_dTemperature="0" |
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.
dVolumetricHeatCapacity_dTemperature="0" |
referenceTemperature="0" | ||
referenceInternalEnergy="0"/> | ||
|
||
<SolidInternalEnergy | ||
name="rockInternalEnergy" | ||
volumetricHeatCapacity="4.56e6" | ||
referenceVolumetricHeatCapacity="4.56e6" | ||
dVolumetricHeatCapacity_dTemperature="0" |
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.
dVolumetricHeatCapacity_dTemperature="0" |
@@ -73,7 +73,8 @@ | |||
<!-- SPHINX_HeatCapacityProperties --> | |||
<SolidInternalEnergy | |||
name="rockInternalEnergy" | |||
volumetricHeatCapacity="1.89e6" | |||
referenceVolumetricHeatCapacity="1.89e6" | |||
dVolumetricHeatCapacity_dTemperature="1e6" |
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.
dVolumetricHeatCapacity_dTemperature for this case should be zero (default value)?
dVolumetricHeatCapacity_dTemperature="1e6" |
solidModelName="nullSolid" | ||
porosityModelName="rockPorosity" | ||
permeabilityModelName="rockPerm" | ||
solidInternalEnergyModelName="rockInternalEnergy_linear"/> |
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.
suggest to use the name as rockInternalEnergy_constant
solidModelName="nullSolid" | ||
porosityModelName="rockPorosity" | ||
permeabilityModelName="rockPerm" | ||
solidInternalEnergyModelName="rockInternalEnergy"/> | ||
solidInternalEnergyModelName="rockInternalEnergy_nonLinear"/> |
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.
suggest to use the name as rockInternalEnergy_linear
@@ -51,12 +51,22 @@ | |||
|
|||
<!-- SPHINX_SolidInternalEnergy --> | |||
<SolidInternalEnergy | |||
name="rockInternalEnergy" | |||
volumetricHeatCapacity="4.56e6" | |||
name="rockInternalEnergy_linear" |
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.
suggest to use the name as rockInternalEnergy_constant
referenceTemperature="0" | ||
referenceInternalEnergy="0"/> | ||
<!-- SPHINX_SolidInternalEnergyEnd --> | ||
|
||
<!-- SPHINX_SolidInternalEnergy_nonLinear --> | ||
<SolidInternalEnergy | ||
name="rockInternalEnergy_nonLinear" |
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.
suggest to use the name as rockInternalEnergy_linear
@@ -5162,12 +5162,14 @@ If you want to do a three-phase simulation, please use instead wettingIntermedia | |||
<xsd:attribute name="name" type="groupName" use="required" /> | |||
</xsd:complexType> | |||
<xsd:complexType name="SolidInternalEnergyType"> | |||
<!--dVolumetricHeatCapacity_dTemperature => Derivative of the solid volumetric heat capacity w.r.t. temperature [J/(m^3.K^2)]--> | |||
<xsd:attribute name="dVolumetricHeatCapacity_dTemperature" type="real64" use="required" /> |
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.
<xsd:attribute name="dVolumetricHeatCapacity_dTemperature" type="real64" use="required" /> | |
<xsd:attribute name="dVolumetricHeatCapacity_dTemperature" type="real64" default="0.0" /> |
This PR is part of the Non-Linear Thermal Behavior project. It aims to implement the linear temperature dependent of the solid volumetric specific heat capacity.
C = C0 + dC_dT * (T-T0)
where C0 is the reference solid volumetric heat capacity at the reference temperature T0 and dC_dT is the gradient of the volumetric heat capacity w.r.t. temperature. They are both provided by users in XML input files.
The existing linear constitutive model corresponds to the particular case with dC_dT = 0.