Skip to content

Commit 5d5063e

Browse files
authored
Merge pull request #267 from LLNL/bugfix/TaylorAnvil
Adding Taylor-anvil to standard integration tests
2 parents dcd1080 + 3a6c59a commit 5d5063e

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

src/CRKSPH/CRKSPHHydros.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,16 @@ def CRKSPH(dataBase,
8686
if nsolid > 0:
8787
kwargs.update({"damageRelieveRubble" : damageRelieveRubble})
8888

89-
if GeometryRegistrar.coords() == CoordinateType.RZ:
90-
kwargs.update({"etaMinAxis" : etaMinAxis})
91-
9289
# Build the thing.
9390
result = constructor(**kwargs)
9491
result.Q = Q
9592
result._smoothingScaleMethod = smoothingScaleMethod
93+
94+
# If we're using area-weighted RZ, we need to reflect from the axis
95+
if GeometryRegistrar.coords() == CoordinateType.RZ:
96+
result.zaxisBC = AxisBoundaryRZ(etaMinAxis)
97+
result.appendBoundary(result.zaxisBC)
98+
9699
return result
97100

98101
#-------------------------------------------------------------------------------

tests/functional/Strength/TaylorImpact/TaylorImpact.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@
4747

4848
from Spheral import *
4949
from SpheralTestUtilities import *
50-
from SpheralGnuPlotUtilities import *
51-
from SpheralController import *
5250

5351
#-------------------------------------------------------------------------------
5452
# Identify ourselves!
@@ -84,7 +82,7 @@
8482
fsisph = False,
8583

8684
# general hydro options
87-
asph = False, # Only for H evolution, not hydro algorithm
85+
asph = True, # Only for H evolution, not hydro algorithm
8886
HUpdate = IdealH,
8987
densityUpdate = IntegrateDensity,
9088
compatibleEnergy = True,

tests/integration.ats

+1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ source("functional/Gravity/ApproximatePolyhedralGravityModel.py")
9292

9393
# Strength tests.
9494
#source("functional/Strength/PlateImpact/PlateImpact-1d.py")
95+
source("functional/Strength/TaylorImpact/TaylorImpact.py")
9596
source("functional/Strength/CollidingPlates/CollidingPlates-1d.py")
9697
source("functional/Strength/DiametralCompression/DiametralCompression.py")
9798
source("functional/Strength/Verney/Verney-spherical.py")

0 commit comments

Comments
 (0)