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

docs: stress_and_pressure_initialization #3249

Merged
merged 32 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
9c49f29
simple_gravity_initialization
Jul 26, 2024
d934001
Updates to Gravity-Only Case
Jul 26, 2024
24b69af
User-defined Initialization Case
Jul 26, 2024
0fc63cd
Restructure examples into 2 folders
Aug 2, 2024
d32c82c
Restructure File into 2 folders
Aug 2, 2024
ccce14a
Merge branch 'develop' into docs/raji/initialization
jhuang2601 Aug 2, 2024
63d4ce6
remove redundant folder
jhuang2601 Aug 2, 2024
cbbada7
fix Index.rst
jhuang2601 Aug 2, 2024
b601390
fix table and some links
jhuang2601 Aug 2, 2024
7334585
change a symbol in table
jhuang2601 Aug 2, 2024
a83ad12
update python scripts
jhuang2601 Aug 2, 2024
5dd3ac3
minor change of python script
jhuang2601 Aug 2, 2024
4b24df6
fix sphinx links
jhuang2601 Aug 3, 2024
e6a8a37
minor updates
jhuang2601 Aug 5, 2024
af3fbea
fix ref links
jhuang2601 Aug 6, 2024
56cd698
wordsmithing
herve-gross Aug 6, 2024
f39c0a8
wordsmithing2
herve-gross Aug 6, 2024
a423470
update xml files and add smoke tests
jhuang2601 Aug 7, 2024
bd59368
update pyhton scripts
jhuang2601 Aug 7, 2024
51e00c7
update rst file for gravity based model
jhuang2601 Aug 7, 2024
a434ec5
Clean Up Figures
Aug 8, 2024
f6a79c2
revert some changes
jhuang2601 Aug 8, 2024
e1b8ac7
update rst for table based model
jhuang2601 Aug 8, 2024
0c03ae6
add ats file to register smoke tests
jhuang2601 Aug 8, 2024
3866ad7
address review comments
jhuang2601 Aug 12, 2024
3b41ba9
fix links in python scripts
jhuang2601 Aug 12, 2024
60f5a12
minor fix
jhuang2601 Aug 13, 2024
e66f6de
Merge branch 'develop' into docs/raji/initialization
jhuang2601 Aug 13, 2024
4998bc8
Merge branch 'develop' into docs/raji/initialization
rrsettgast Aug 13, 2024
ba4c840
update .integrated_tests.yaml
jhuang2601 Aug 14, 2024
4043f23
update BASELINE_NOTES.md
jhuang2601 Aug 14, 2024
88af3ad
update BASELINE_NOTES.md
jhuang2601 Aug 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-pr3278-6753-f7f9add
baseline: integratedTests/baseline_integratedTests-pr3249-6781-4998bc8

allow_fail:
all: ''
Expand Down
11 changes: 9 additions & 2 deletions BASELINE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,21 @@ These notes should be in reverse-chronological order, and use the following time



PR 3278 (2024-08-12)
====================
PR #3249 (2024-08-14)
======================
Two initialization options for poromechanical models. Rebaseline the corresponding cases.


PR #3278 (2024-08-12)
======================
Renamed GEOSX to GEOS in enternal mesh import, so rebaseline to change these names is the baselines.


PR #3202 (2024-08-03)
======================
Acoustic VTI tests needed rebaselining after update in source and receiver location algorithm.


PR #3215 (2024-07-23)
======================
Changed the default value for massCreation and name of the wrapper.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
<?xml version="1.0"?>

<Problem>
<Solvers
gravityVector="{ 0.0, 0.0, -9.81 }">
<!-- SPHINX_POROMECHANICSSOLVER -->
<SinglePhasePoromechanics
name="poroSolve"
solidSolverName="lagsolve"
flowSolverName="SinglePhaseFlow"
logLevel="1"
targetRegions="{ Domain }">
<NonlinearSolverParameters
newtonMaxIter="2"
newtonTol="1.0e-2"
maxTimeStepCuts="1"
lineSearchMaxCuts="0" />
<LinearSolverParameters
directParallel="0" />
</SinglePhasePoromechanics>
<!-- SPHINX_POROMECHANICSSOLVER_END -->

<!-- SPHINX_MECHANICALSOLVER -->
<SolidMechanicsLagrangianSSLE
name="lagsolve"
timeIntegrationOption="QuasiStatic"
logLevel="1"
discretization="FE1"
targetRegions="{ Domain }" />
<!-- SPHINX_MECHANICALSOLVER_END -->

<!-- SPHINX_SINGLEPHASEFVM -->
<SinglePhaseFVM
name="SinglePhaseFlow"
logLevel="1"
discretization="fluidTPFA"
targetRegions="{ Domain }" />
<!-- SPHINX_SINGLEPHASEFVM_END -->
</Solvers>

<!-- SPHINX_NUMERICAL -->
<NumericalMethods>
<FiniteElements>
<FiniteElementSpace
name="FE1"
order="1" />
</FiniteElements>

<FiniteVolume>
<TwoPointFluxApproximation
name="fluidTPFA" />
</FiniteVolume>
</NumericalMethods>
<!-- SPHINX_NUMERICAL_END -->

<!-- SPHINX_ELEMENTREGIONS -->
<ElementRegions>
<CellElementRegion
name="Domain"
cellBlocks="{ cb1 }"
materialList="{ water, rock }" />
</ElementRegions>
<!-- SPHINX_ELEMENTREGIONS_END -->

<!-- SPHINX_MATERIAL -->
<Constitutive>
<PorousElasticIsotropic
name="rock"
solidModelName="rockSolid"
porosityModelName="rockPorosity"
permeabilityModelName="rockPerm" />

<ElasticIsotropic
name="rockSolid"
defaultDensity="2500"
defaultPoissonRatio="0.25"
defaultYoungModulus="100.0e6" />

<BiotPorosity
name="rockPorosity"
defaultGrainBulkModulus="1.0e27"
defaultReferencePorosity="0.375" />

<ConstantPermeability
name="rockPerm"
permeabilityComponents="{ 1.0e-12, 1.0e-12, 1.0e-12 }" />

<CompressibleSinglePhaseFluid
name="water"
defaultDensity="1000"
defaultViscosity="0.001"
referencePressure="0.000"
referenceDensity="1000"
compressibility="4.4e-10"
referenceViscosity="0.001"
viscosibility="0.0" />
</Constitutive>
<!-- SPHINX_MATERIAL_END -->


<!-- SPHINX_BC -->
<FieldSpecifications>
<HydrostaticEquilibrium
datumElevation="0.0"
datumPressure="0.0"
name="equil"
objectPath="ElementRegions/Domain" />

<FieldSpecification
name="xconstraint"
objectPath="nodeManager"
fieldName="totalDisplacement"
component="0"
scale="0.0"
setNames="{ xneg, xpos }" />

<FieldSpecification
name="yconstraint"
objectPath="nodeManager"
fieldName="totalDisplacement"
component="1"
scale="0.0"
setNames="{ yneg, ypos }" />

<FieldSpecification
name="zconstraint"
objectPath="nodeManager"
fieldName="totalDisplacement"
component="2"
scale="0.0"
setNames="{ zneg }" />

</FieldSpecifications>
<!-- SPHINX_BC_END -->


<!-- SPHINX_TASKS -->
<Tasks>
<SinglePhasePoromechanicsInitialization
logLevel="1"
name="singlephasePoromechanicsPreEquilibrationStep"
poromechanicsSolverName="poroSolve" />
</Tasks>
<!-- SPHINX_TASKS_END -->

<!-- SPHINX_OUTPUT -->
<Outputs>
<VTK
name="vtkOutput" />

<Restart
name="restartOutput"/>
</Outputs>
<!-- SPHINX_OUTPUT_END -->
</Problem>
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0"?>

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

<!-- SPHINX_MESH -->
<Mesh>
<InternalMesh
name="mesh1"
elementTypes="{ C3D8 }"
xCoords="{ 0.0, 1000 }"
yCoords="{ 0.0, 1000 }"
zCoords="{ -1000, 0 }"
nx="{ 20 }"
ny="{ 20 }"
nz="{ 40 }"
cellBlockNames="{ cb1 }" />
</Mesh>
<!-- SPHINX_MESH_END -->

<!-- SPHINX_EVENTS -->
<Events
maxTime="10.0"
minTime="-1e10">

<PeriodicEvent
name="outputs"
timeFrequency="10.0"
target="/Outputs/vtkOutput" />

<PeriodicEvent
name="solverApplication0"
beginTime="0.0"
endTime="10.0"
target="/Solvers/poroSolve" />

<SoloEvent
beginTime="-1e10"
name="singlephasePoromechanicsPreEquilibrationStep"
target="/Tasks/singlephasePoromechanicsPreEquilibrationStep"
targetTime="-1e10" />

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

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

<!-- SPHINX_MESH -->
<Mesh>
<InternalMesh
name="mesh1"
elementTypes="{ C3D8 }"
xCoords="{ 0.0, 1000 }"
yCoords="{ 0.0, 1000 }"
zCoords="{ -1000, 0 }"
nx="{ 2 }"
ny="{ 2 }"
nz="{ 4 }"
cellBlockNames="{ cb1 }" />
</Mesh>
<!-- SPHINX_MESH_END -->

<!-- SPHINX_EVENTS -->
<Events
maxTime="10.0"
minTime="-1e10">

<PeriodicEvent
name="outputs"
timeFrequency="10.0"
target="/Outputs/vtkOutput" />

<PeriodicEvent
name="solverApplication0"
beginTime="0.0"
endTime="10.0"
target="/Solvers/poroSolve" />

<SoloEvent
beginTime="-1e10"
name="singlephasePoromechanicsPreEquilibrationStep"
target="/Tasks/singlephasePoromechanicsPreEquilibrationStep"
targetTime="-1e10" />

<PeriodicEvent
name="restarts"
timeFrequency="10.0"
targetExactTimestep="0"
target="/Outputs/restartOutput"/>

</Events>
<!-- SPHINX_EVENTS_END -->
</Problem>
27 changes: 27 additions & 0 deletions inputFiles/initialization/initialization.ats
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import os
from geos.ats.test_builder import TestDeck, RestartcheckParameters, generate_geos_tests

restartcheck_params = {}
restartcheck_params["atol"] = 2.0E-4
restartcheck_params["rtol"] = 1.0E-7

decks = [
TestDeck(
name="gravityInducedStress_initialization_smoke",
description=
"model intialization with gravity induced stress",
partitions=((1, 1, 1), (2, 2, 1)),
restart_step=1,
check_step=2,
restartcheck_params=RestartcheckParameters(**restartcheck_params)),
TestDeck(
name="userdefinedStress_initialization_smoke",
description=
"model intialization with user defined tables",
partitions=((1, 1, 1), (2, 2, 1)),
restart_step=1,
check_step=2,
restartcheck_params=RestartcheckParameters(**restartcheck_params))
]

generate_geos_tests(decks)
2 changes: 2 additions & 0 deletions inputFiles/initialization/userTables/effectiveSigma_xx.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-7000000.00
0.00
2 changes: 2 additions & 0 deletions inputFiles/initialization/userTables/effectiveSigma_yy.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-17000000.00
0.00
2 changes: 2 additions & 0 deletions inputFiles/initialization/userTables/effectiveSigma_zz.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-14000000.00
0.00
2 changes: 2 additions & 0 deletions inputFiles/initialization/userTables/porePressure.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
10000000.00
0.00
1 change: 1 addition & 0 deletions inputFiles/initialization/userTables/x.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.00
1 change: 1 addition & 0 deletions inputFiles/initialization/userTables/y.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.00
2 changes: 2 additions & 0 deletions inputFiles/initialization/userTables/z.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-1000.00
0.00
Loading