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

feat: Make the rock toughness scalable with the fracture size and test anisotropic toughness #3310

Merged
merged 15 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<SurfaceGenerator
name="SurfaceGen"
targetRegions="{ Domain }"
rockToughness="1e6"
baseRockToughness="1e6"
nodeBasedSIF="1"
mpiCommOrder="1"/>
</Solvers>
Expand Down
2 changes: 1 addition & 1 deletion inputFiles/almContactMechanics/ALM_stickFault_base.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
logLevel="0"
fractureRegion="Fracture"
targetRegions="{ Region }"
rockToughness="1.0e6"
baseRockToughness="1.0e6"
mpiCommOrder="1"/>
</Solvers>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
name="SurfaceGen"
targetRegions="{ Domain }"
nodeBasedSIF="1"
rockToughness="10.0e6"
baseRockToughness="10.0e6"
mpiCommOrder="1"/>
<!-- SPHINX_SNEDDON_SOLVER_END -->
</Solvers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<SurfaceGenerator
name="SurfaceGen"
targetRegions="{ Domain }"
rockToughness="$K_upscaled$"
baseRockToughness="$K_upscaled$"
nodeBasedSIF="1"
mpiCommOrder="1"/>
</Solvers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<SurfaceGenerator
name="SurfaceGen"
targetRegions="{ Domain }"
rockToughness="2.236068e6"
baseRockToughness="2.236068e6"
nodeBasedSIF="1"
mpiCommOrder="1"/>
</Solvers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<SurfaceGenerator
name="SurfaceGen"
targetRegions="{ Domain }"
rockToughness="1.0e6"/>
baseRockToughness="1.0e6"/>
</Solvers>

<Mesh>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<SurfaceGenerator
name="SurfaceGen"
targetRegions="{ Domain }"
rockToughness="0.707e7"
baseRockToughness="0.707e7"
mpiCommOrder="1"/>
</Solvers>
</Problem>
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<SurfaceGenerator
name="SurfaceGen"
targetRegions="{ Domain }"
rockToughness="0.707e7"
baseRockToughness="0.707e7"
nodeBasedSIF="1"
mpiCommOrder="1"/>
</Solvers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
name="SurfaceGen"
targetRegions="{ Domain }"
nodeBasedSIF="1"
rockToughness="1e6"
baseRockToughness="1e6"
mpiCommOrder="1"/>
<!-- Sphinx_Solvers_SurfaceGenerator_End -->
</Solvers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
name="SurfaceGen"
targetRegions="{ Domain }"
nodeBasedSIF="1"
rockToughness="1e6"
baseRockToughness="1e6"
mpiCommOrder="1"/>
</Solvers>

Expand Down
2 changes: 1 addition & 1 deletion inputFiles/hydraulicFracturing/kgdValidation_base.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
logLevel="1"
targetRegions="{ Domain }"
nodeBasedSIF="0"
rockToughness="1.2e6"
baseRockToughness="1.2e6"
mpiCommOrder="1"/>
<!-- SPHINX_SURFACEGENERATOR_END -->
</Solvers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
name="SurfaceGen"
targetRegions="{ Domain }"
nodeBasedSIF="1"
rockToughness="1e4"
baseRockToughness="1e4"
mpiCommOrder="1"/>
<!-- Sphinx_Solvers_SurfaceGenerator_End -->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
name="SurfaceGen"
targetRegions="{ Domain }"
nodeBasedSIF="1"
rockToughness="1e4"
baseRockToughness="1e4"
mpiCommOrder="1"
isPoroelastic="1"/>
</Solvers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
name="SurfaceGen"
targetRegions="{ Domain }"
nodeBasedSIF="1"
rockToughness="3.0e6"
baseRockToughness="3.0e6"
mpiCommOrder="1"/>
<!-- SPHINX_SURFACEGENERATOR_END -->
</Solvers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
name="SurfaceGen"
targetRegions="{ Domain }"
nodeBasedSIF="1"
rockToughness="3.0e6"
baseRockToughness="3.0e6"
mpiCommOrder="1"
isPoroelastic="1"/>
<!-- SPHINX_SURFACEGENERATOR_END -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
name="SurfaceGen"
targetRegions="{ Domain }"
nodeBasedSIF="1"
rockToughness="3.0e6"
baseRockToughness="3.0e6"
mpiCommOrder="1"
isPoroelastic="1"/>
</Solvers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
name="SurfaceGen"
targetRegions="{ Domain }"
nodeBasedSIF="1"
rockToughness="3.0e6"
baseRockToughness="3.0e6"
mpiCommOrder="1"/>
</Solvers>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
name="SurfaceGen"
targetRegions="{ Domain }"
nodeBasedSIF="1"
rockToughness="0.3e6"
baseRockToughness="0.3e6"
mpiCommOrder="1"/>
<!-- SPHINX_SURFACEGENERATOR_END -->
</Solvers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
name="SurfaceGen"
targetRegions="{ Domain }"
nodeBasedSIF="1"
rockToughness="0.3e6"
baseRockToughness="0.3e6"
mpiCommOrder="1"/>
<!-- SPHINX_SURFACEGENERATOR_END -->
</Solvers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
name="SurfaceGen"
targetRegions="{ Domain }"
nodeBasedSIF="1"
rockToughness="0.3e6"
baseRockToughness="0.3e6"
mpiCommOrder="1"
isPoroelastic="1"/>
</Solvers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
name="SurfaceGen"
targetRegions="{ Domain }"
nodeBasedSIF="1"
rockToughness="0.3e6"
baseRockToughness="0.3e6"
mpiCommOrder="1"/>
</Solvers>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
name="SurfaceGen"
targetRegions="{ Domain }"
nodeBasedSIF="1"
rockToughness="0.1e6"
baseRockToughness="0.1e6"
mpiCommOrder="1"/>
<!-- SPHINX_SURFACEGENERATOR_END -->
</Solvers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
name="SurfaceGen"
targetRegions="{ Domain }"
nodeBasedSIF="1"
rockToughness="0.1e6"
baseRockToughness="0.1e6"
mpiCommOrder="1"/>
<!-- SPHINX_SURFACEGENERATOR_END -->
</Solvers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
name="SurfaceGen"
targetRegions="{ Domain }"
nodeBasedSIF="1"
rockToughness="0.1e6"
baseRockToughness="0.1e6"
mpiCommOrder="1"
isPoroelastic="1"/>
</Solvers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
name="SurfaceGen"
targetRegions="{ Domain }"
nodeBasedSIF="1"
rockToughness="1e4"
baseRockToughness="1e4"
mpiCommOrder="1"/>
</Solvers>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def getParametersFromXML(xmlFilePath):
poissonRatio = float(elasticParam.get('defaultPoissonRatio'))
injectionRate = -2.0 * float(tree.find('FieldSpecifications/SourceFlux').get('scale')) / fluidDensity
tree = ElementTree.parse(prefix + xmlFilePath + "_base.xml")
toughness = float(tree.find('Solvers/SurfaceGenerator').get('rockToughness'))
toughness = float(tree.find('Solvers/SurfaceGenerator').get('baseRockToughness'))

elif xmlFilePath == 'pennyShapedToughnessDominated' or xmlFilePath == 'pennyShapedViscosityDominated':
K = float(elasticParam.get('defaultBulkModulus'))
Expand All @@ -45,7 +45,7 @@ def getParametersFromXML(xmlFilePath):
poissonRatio = youngModulus / (2.0 * G) - 1.0
injectionRate = -4.0 * float(tree.find('FieldSpecifications/SourceFlux').get('scale')) / fluidDensity
tree = ElementTree.parse(prefix + xmlFilePath + "_benchmark.xml")
toughness = float(tree.find('Solvers/SurfaceGenerator').get('rockToughness'))
toughness = float(tree.find('Solvers/SurfaceGenerator').get('baseRockToughness'))

elif xmlFilePath == 'pknViscosityDominated':
K = float(elasticParam.get('defaultBulkModulus'))
Expand All @@ -54,7 +54,7 @@ def getParametersFromXML(xmlFilePath):
poissonRatio = youngModulus / (2.0 * G) - 1.0
injectionRate = -4.0 * float(tree.find('FieldSpecifications/SourceFlux').get('scale')) / fluidDensity
tree = ElementTree.parse(prefix + xmlFilePath + "_benchmark.xml")
toughness = float(tree.find('Solvers/SurfaceGenerator').get('rockToughness'))
toughness = float(tree.find('Solvers/SurfaceGenerator').get('baseRockToughness'))
found_core = False
for elem in param:
if elem.get("name") == "core":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
fractureRegion="Fracture"
targetRegions="{Domain, void}"
nodeBasedSIF="1"
rockToughness="3.0e6">
baseRockToughness="3.0e6">
</SurfaceGenerator>
</Solvers>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
fractureRegion="Fracture"
targetRegions="{Domain, void}"
nodeBasedSIF="1"
rockToughness="3.0e6"
baseRockToughness="3.0e6"
mpiCommOrder="1">
</SurfaceGenerator>
</Solvers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<SurfaceGenerator
name="SurfaceGen"
targetRegions="{ Region }"
rockToughness="1.0e6"
baseRockToughness="1.0e6"
mpiCommOrder="1"/>
</Solvers>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<SurfaceGenerator
name="SurfaceGen"
targetRegions="{ Region }"
rockToughness="1.0e6"
baseRockToughness="1.0e6"
mpiCommOrder="1"/>
</Solvers>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
logLevel="0"
fractureRegion="Fracture"
targetRegions="{ Region }"
rockToughness="1.0e6"
baseRockToughness="1.0e6"
mpiCommOrder="1"/>
</Solvers>
<!-- SPHINX_SOLVER_END -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
logLevel="0"
fractureRegion="Fracture"
targetRegions="{ Region }"
rockToughness="1.0e6"
baseRockToughness="1.0e6"
mpiCommOrder="1"/>
<!-- SPHINX_SOLVER_END -->
</Solvers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
logLevel="0"
fractureRegion="Fracture"
targetRegions="{ Region }"
rockToughness="1.0e6"
baseRockToughness="1.0e6"
mpiCommOrder="1"/>
<!-- SPHINX_SOLVER_END -->
</Solvers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<SurfaceGenerator
name="SurfaceGen"
targetRegions="{ Region }"
rockToughness="1.0e6"
baseRockToughness="1.0e6"
mpiCommOrder="1"/>
</Solvers>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
logLevel="0"
fractureRegion="Fracture"
targetRegions="{ Region }"
rockToughness="1.0e6"
baseRockToughness="1.0e6"
mpiCommOrder="1"/>
</Solvers>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
logLevel="0"
fractureRegion="Fracture"
targetRegions="{ Region }"
rockToughness="1.0e6"
baseRockToughness="1.0e6"
mpiCommOrder="1"/>
</Solvers>
<!-- SPHINX_SNEDDON_SOLVER_END -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
logLevel="0"
fractureRegion="Fracture"
targetRegions="{ Region }"
rockToughness="1.0e6"
baseRockToughness="1.0e6"
mpiCommOrder="1"/>
</Solvers>
<!-- SPHINX_SNEDDON_SOLVER_END -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<SurfaceGenerator
name="SurfaceGen"
targetRegions="{ Region1 }"
rockToughness="0"
baseRockToughness="0"
mpiCommOrder="1"/>
</Solvers>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
name="SurfaceGen"
targetRegions="{ Domain }"
fractureRegion="Fracture"
rockToughness="1e6"
baseRockToughness="1e6"
mpiCommOrder="1"/>
</Solvers>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
name="SurfaceGen"
targetRegions="{ Domain }"
fractureRegion="Fracture"
rockToughness="1e6"
baseRockToughness="1e6"
mpiCommOrder="1"/>
</Solvers>
</Problem>
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
name="SurfaceGen"
targetRegions="{ Domain }"
fractureRegion="Fracture"
rockToughness="1e6"
baseRockToughness="1e6"
mpiCommOrder="1"/>
</Solvers>
</Problem>
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
name="SurfaceGen"
targetRegions="{ Domain }"
fractureRegion="Fracture"
rockToughness="1e6"
baseRockToughness="1e6"
mpiCommOrder="1"/>
</Solvers>
</Problem>
Loading
Loading