Skip to content

Commit

Permalink
feat: Temperature dependent single phase thermal conductivity (#3135)
Browse files Browse the repository at this point in the history
  • Loading branch information
sytuannguyen authored and rrsettgast committed Sep 17, 2024
1 parent 9eac288 commit bf78e30
Show file tree
Hide file tree
Showing 72 changed files with 12,877 additions and 8,314 deletions.
2 changes: 1 addition & 1 deletion .integrated_tests.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
baselines:
bucket: geosx
baseline: integratedTests/baseline_integratedTests-pr3300-7077-1277f18
baseline: integratedTests/baseline_integratedTests-pr3135-7235-53174a0

allow_fail:
all: ''
Expand Down
6 changes: 6 additions & 0 deletions BASELINE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ This file is designed to track changes to the integrated test baselines.
Any developer who updates the baseline ID in the .integrated_tests.yaml file is expected to create an entry in this file with the pull request number, date, and their justification for rebaselining.
These notes should be in reverse-chronological order, and use the following time format: (YYYY-MM-DD).

PR #3135 (2024-09-04)
======================
Temperature dependent single phase thermal conductivity. Rebaseline all thermal cases.


PR #3294 (2024-09-01)
======================
Re-enable enforcement of wave propagation integrated test pass.


PR #3300 (2024-08-28)
======================
Re-enable floating point exceptions. Rebaseline due to minor changing default value of maxRelativeCompDensChange from 1.7976931348623157e+308 to 1.7976931348623157e+208.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@
specificHeatCapacity="4.0e3"
referenceInternalEnergy="1.1e6"/>

<SinglePhaseConstantThermalConductivity
<SinglePhaseThermalConductivity
name="thermalCond"
thermalConductivityComponents="{ 3.5, 3.5, 3.5 }"/>
defaultThermalConductivityComponents="{ 3.5, 3.5, 3.5 }"/>

</Constitutive>

Expand Down
36 changes: 23 additions & 13 deletions inputFiles/singlePhaseFlow/thermalCompressible_2d_base.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
targetRegions="{ region }">
<NonlinearSolverParameters
newtonTol="1.0e-6"
newtonMaxIter="10"/>
newtonMaxIter="100"/>
<LinearSolverParameters
directParallel="0"/>
</SinglePhaseFVM>
Expand All @@ -34,7 +34,7 @@
solidInternalEnergyModelName="rockInternalEnergy_linear"/>

<CompressibleSolidConstantPermeability
name="rock_nonLinear"
name="rock_temperatureDependentVolumetricHeatCapacity"
solidModelName="nullSolid"
porosityModelName="rockPorosity"
permeabilityModelName="rockPerm"
Expand All @@ -49,13 +49,13 @@
referencePressure="0.0"
compressibility="3.0e-11"/>

<!-- SPHINX_SolidInternalEnergy -->
<!-- SPHINX_SolidInternalEnergy_linear -->
<SolidInternalEnergy
name="rockInternalEnergy_linear"
referenceVolumetricHeatCapacity="4.56e6"
referenceVolumetricHeatCapacity="1.0e6"
referenceTemperature="0"
referenceInternalEnergy="0"/>
<!-- SPHINX_SolidInternalEnergyEnd -->
<!-- SPHINX_SolidInternalEnergy_linearEnd -->

<!-- SPHINX_SolidInternalEnergy_nonLinear -->
<SolidInternalEnergy
Expand Down Expand Up @@ -84,11 +84,21 @@
referenceInternalEnergy="0.99"/>
<!-- SPHINX_ThermalCompressibleSinglePhaseFluidEnd -->

<!-- SPHINX_SinglePhaseConstantThermalConductivity -->
<SinglePhaseConstantThermalConductivity
name="thermalCond"
thermalConductivityComponents="{ 1.66, 1.66, 1.66 }"/>
<!-- SPHINX_SinglePhaseConstantThermalConductivityEnd -->
<!-- SPHINX_SinglePhaseThermalConductivity_linear -->
<SinglePhaseThermalConductivity
name="thermalCond_linear"
defaultThermalConductivityComponents="{ 1.66, 1.66, 1.66 }"
thermalConductivityGradientComponents="{ 0, 0, 0 }"
referenceTemperature="0"/>
<!-- SPHINX_SinglePhaseThermalConductivity_linearEnd -->

<!-- SPHINX_SinglePhaseThermalConductivity_nonLinear -->
<SinglePhaseThermalConductivity
name="thermalCond_nonLinear"
defaultThermalConductivityComponents="{ 1.5, 1.5, 1.5 }"
thermalConductivityGradientComponents="{ -12e-4, -12e-4, -12e-4 }"
referenceTemperature="20"/>
<!-- SPHINX_SinglePhaseThermalConductivity_nonLinearEnd -->

</Constitutive>

Expand Down Expand Up @@ -125,21 +135,21 @@
setNames="{ all }"
objectPath="ElementRegions/region/cb"
fieldName="temperature"
scale="0"/>
scale="100"/>

<FieldSpecification
name="sinkTemperature"
setNames="{ rpos }"
objectPath="faceManager"
fieldName="temperature"
scale="0"/>
scale="100"/>

<FieldSpecification
name="sourceTemperature"
setNames="{ rneg }"
objectPath="faceManager"
fieldName="temperature"
scale="100.0"/>
scale="-20.0"/>
<!-- SPHINX_FieldSpecificationImposedTemperatureEnd -->

</FieldSpecifications>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<CellElementRegion
name="region"
cellBlocks="{ cb }"
materialList="{ fluid, rock_linear, thermalCond }"/>
materialList="{ fluid, rock_linear, thermalCond_linear }"/>
</ElementRegions>

<Mesh>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<CellElementRegion
name="region"
cellBlocks="{ cb }"
materialList="{ fluid, rock_nonLinear, thermalCond }"/>
materialList="{ fluid, rock_linear, thermalCond_linear }"/>
</ElementRegions>

<Mesh>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<CellElementRegion
name="region"
cellBlocks="{ cb }"
materialList="{ fluid, rock_nonLinear, thermalCond }"/>
materialList="{ fluid, rock_linear, thermalCond_nonLinear }"/>
</ElementRegions>

<Mesh>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<CellElementRegion
name="region"
cellBlocks="{ cb }"
materialList="{ fluid, rock_nonLinear, thermalCond }"/>
materialList="{ fluid, rock_linear, thermalCond_nonLinear }"/>
</ElementRegions>

<Mesh>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" ?>

<Problem>
<Included>
<File name="./thermalCompressible_2d_base.xml" />
</Included>

<ElementRegions>
<CellElementRegion
name="region"
cellBlocks="{ cb }"
materialList="{ fluid, rock_temperatureDependentVolumetricHeatCapacity, thermalCond_linear }"/>
</ElementRegions>

<Mesh>
<InternalWellbore
name="mesh1"
elementTypes="{ C3D8 }"
radius="{ 0.1, 0.106, 0.133, 1.0 }"
theta="{ 0, 90 }"
zCoords="{ 0, 0.1 }"
nr="{ 3, 10, 50 }"
nt="{ 80 }"
nz="{ 1 }"
trajectory="{ { 0.0, 0.0, 0.0 },
{ 0.0, 0.0, 0.1 } }"
autoSpaceRadialElems="{ 0, 0, 1 }"
cellBlockNames="{ cb }"
/>
</Mesh>

<Events
maxTime="1e5">
<PeriodicEvent
name="outputs"
timeFrequency="1e4"
target="/Outputs/vtkOutput"/>

<PeriodicEvent
name="solverApplications"
maxEventDt="1e3"
target="/Solvers/singleFlow"/>

<!--PeriodicEvent
name="restarts"
timeFrequency="1e5"
target="/Outputs/restartOutput"/-->
</Events>

</Problem>
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" ?>

<Problem>
<Included>
<File name="./thermalCompressible_2d_base.xml" />
</Included>

<ElementRegions>
<CellElementRegion
name="region"
cellBlocks="{ cb }"
materialList="{ fluid, rock_temperatureDependentVolumetricHeatCapacity, thermalCond_linear }"/>
</ElementRegions>

<Mesh>
<InternalWellbore
name="mesh1"
elementTypes="{ C3D8 }"
radius="{ 0.1, 0.106, 0.133, 1.0 }"
theta="{ 0, 90 }"
zCoords="{ 0, 0.1 }"
nr="{ 3, 10, 50 }"
nt="{ 8 }"
nz="{ 1 }"
trajectory="{ { 0.0, 0.0, 0.0 },
{ 0.0, 0.0, 0.1 } }"
autoSpaceRadialElems="{ 0, 0, 1 }"
cellBlockNames="{ cb }"
/>
</Mesh>

<Events
maxTime="3e3">
<PeriodicEvent
name="outputs"
timeFrequency="1e3"
target="/Outputs/vtkOutput"/>

<PeriodicEvent
name="solverApplications"
maxEventDt="1e3"
target="/Solvers/singleFlow"/>

<PeriodicEvent
name="restarts"
timeFrequency="1e3"
target="/Outputs/restartOutput"/>
</Events>

</Problem>
12 changes: 10 additions & 2 deletions inputFiles/singlePhaseFlow/thermalSinglePhaseFlow.ats
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,17 @@ decks = [
check_step=20,
restartcheck_params=RestartcheckParameters(**restartcheck_params)),
TestDeck(
name="thermalCompressible_nonLinear_2d_smoke",
name="thermalCompressible_temperatureDependentVolumetricHeatCapacity_smoke",
description=
'non-linear thermal diffusion around a wellbore)',
'a wellbore problem with temperature dependent volumetric heat capacity)',
partitions=((1, 1, 1), (2, 2, 1)),
restart_step=1,
check_step=2,
restartcheck_params=RestartcheckParameters(**restartcheck_params)),
TestDeck(
name="thermalCompressible_temperatureDependentSinglePhaseThermalConductivity_smoke",
description=
'a wellbore problem with temperature dependent thermal conductivity)',
partitions=((1, 1, 1), (2, 2, 1)),
restart_step=1,
check_step=2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
specificHeatCapacity="4.2e6"
referenceInternalEnergy="0.99"/>

<SinglePhaseConstantThermalConductivity
<SinglePhaseThermalConductivity
name="thermalCond"
thermalConductivityComponents="{ 3.81, 3.81, 3.81 }"/>
defaultThermalConductivityComponents="{ 3.81, 3.81, 3.81 }"/>

<CompressibleSolidParallelPlatesPermeability
name="fractureFilling"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
specificHeatCapacity="1.672e2"
referenceInternalEnergy="0.001"/>

<SinglePhaseConstantThermalConductivity
<SinglePhaseThermalConductivity
name="thermalCond"
thermalConductivityComponents="{ 1, 1, 1 }"/>
defaultThermalConductivityComponents="{ 1, 1, 1 }"/>

<CompressibleSolidParallelPlatesPermeability
name="fractureFilling"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@
name="rockPerm"
permeabilityComponents="{ 4.0e-9, 4.0e-9, 4.0e-9 }"/>

<SinglePhaseConstantThermalConductivity
<SinglePhaseThermalConductivity
name="thermalCond"
thermalConductivityComponents="{ 836, 836, 836 }"/>
defaultThermalConductivityComponents="{ 836, 836, 836 }"/>
<!-- SPHINX_PERMEABILITY_CONDUCTIVITY_END -->

</Constitutive>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
specificHeatCapacity="1.672e2"
referenceInternalEnergy="0.001"/>

<SinglePhaseConstantThermalConductivity
<SinglePhaseThermalConductivity
name="thermalCond"
thermalConductivityComponents="{ 1, 1, 1 }"/>
defaultThermalConductivityComponents="{ 1, 1, 1 }"/>

<SolidInternalEnergy
name="rockInternalEnergy"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,9 @@
specificHeatCapacity="1.672e2"
referenceInternalEnergy="0.001"/>

<SinglePhaseConstantThermalConductivity
<SinglePhaseThermalConductivity
name="thermalCond"
thermalConductivityComponents="{ 10, 10, 10 }"/>
defaultThermalConductivityComponents="{ 10, 10, 10 }"/>

<BiotPorosity
name="rockPorosity"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,22 +202,22 @@
<!-- SPHINX_PermeabilityPropertiesEnd -->


<SinglePhaseConstantThermalConductivity
<SinglePhaseThermalConductivity
name="casingThermalCond"
thermalConductivityComponents="{ 15, 15, 15 }"/>
defaultThermalConductivityComponents="{ 15, 15, 15 }"/>

<SinglePhaseConstantThermalConductivity
<SinglePhaseThermalConductivity
name="cementThermalCond"
thermalConductivityComponents="{ 1.0, 1.0, 1.0 }"/>
defaultThermalConductivityComponents="{ 1.0, 1.0, 1.0 }"/>

<SinglePhaseConstantThermalConductivity
<SinglePhaseThermalConductivity
name="rockThermalCond"
thermalConductivityComponents="{ 1.66, 1.66, 1.66 }"/>
defaultThermalConductivityComponents="{ 1.66, 1.66, 1.66 }"/>

<!-- SPHINX_ContactThermalProperties -->
<SinglePhaseConstantThermalConductivity
<SinglePhaseThermalConductivity
name="contactThermalCond"
thermalConductivityComponents="{ 1.0, 1.0, 1.0 }"/>
defaultThermalConductivityComponents="{ 1.0, 1.0, 1.0 }"/>
<!-- SPHINX_ContactThermalPropertiesEnd -->

<!-- SPHINX_FluidProperties -->
Expand Down
12 changes: 6 additions & 6 deletions inputFiles/wellbore/CasedThermoElasticWellbore_base.xml
Original file line number Diff line number Diff line change
Expand Up @@ -142,17 +142,17 @@
<!-- SPHINX_PermeabilityPropertiesEnd -->

<!-- SPHINX_ThermalProperties -->
<SinglePhaseConstantThermalConductivity
<SinglePhaseThermalConductivity
name="casingThermalCond"
thermalConductivityComponents="{ 15, 15, 15 }"/>
defaultThermalConductivityComponents="{ 15, 15, 15 }"/>

<SinglePhaseConstantThermalConductivity
<SinglePhaseThermalConductivity
name="cementThermalCond"
thermalConductivityComponents="{ 1.0, 1.0, 1.0 }"/>
defaultThermalConductivityComponents="{ 1.0, 1.0, 1.0 }"/>

<SinglePhaseConstantThermalConductivity
<SinglePhaseThermalConductivity
name="rockThermalCond"
thermalConductivityComponents="{ 1.66, 1.66, 1.66 }"/>
defaultThermalConductivityComponents="{ 1.66, 1.66, 1.66 }"/>
<!-- SPHINX_ThermalPropertiesEnd -->

<!-- SPHINX_FluidProperties -->
Expand Down
Loading

0 comments on commit bf78e30

Please sign in to comment.