Skip to content

Commit

Permalink
add pytest for non-matching nrows and ncols of files for probAnalysis
Browse files Browse the repository at this point in the history
  • Loading branch information
awirb authored and fso42 committed Sep 11, 2024
1 parent b4de7b8 commit 0aaf7b0
Show file tree
Hide file tree
Showing 7 changed files with 2,844 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
[GENERAL]
simTypeList = null
modelType = dfa
resType = ppr|pft|pfv
tSteps = 1
initPartDistType = random
initialiseParticlesFromFile = False
particleFile =
seed = 12345
iniStep = False
saveParticlesIni = False
subgridMixingFactorIni = 10.
dtIni = 0.1
sphOptionIni = 2
stopCritIni = 0.1
stopCritIniSmall = 1.001
maxIterations = 100
bufferZoneFactor = 4
additionallyFixedFactor = 0.275
ftOptionIni = False
rho = 200
rhoEnt = 100
relThFromShp = False
relThPercentVariation =
relThRangeVariation =
relThRangeFromCiVariation =
relThDistVariation =
relTh = 2.0
relThFromFile = False
secRelArea = False
secondaryRelThFromShp = True
secondaryRelThPercentVariation =
secondaryRelThRangeVariation =
secondaryRelThRangeFromCiVariation =
secondaryRelThDistVariation =
secondaryRelTh =
entThFromShp = True
entThIfMissingInShp = 0.3
entThPercentVariation =
entThRangeVariation =
entThRangeFromCiVariation =
entThDistVariation =
entTh =
dt = 0.1
tEnd = 400
sphKernelRadiusTimeStepping = False
cMax = 0.02
stopCritType = kinEnergy
uFlowingThreshold = 0.01
stopCrit = 0.01
sphOption = 1
minRKern = 0.001
sphKernelRadius = 5
viscOption = 1
massPerParticleDeterminationMethod = MPPDH
massPerPart = 1250
deltaTh = 0.25
sphKR0 = 5
nPPK0 = 15
aPPK = -1.5
splitOption = 0
thresholdMassSplit = 1.5
distSplitPart = 0.41
nSplit = 2
cMinNPPK = 0.25
cMaxNPPK = 2.5
cMinMass = 0.25
cMaxnMass = 5
interpOption = 2
hmin = 0.05
meshCellSize = 5
meshCellSizeThreshold = 0.001
cleanRemeshedRasters = True
methodMeshNormal = 1
reprojMethodForce = 2
reprojMethodPosition = 2
reprojectionIterations = 5
thresholdProjection = 0.001
subgridMixingFactor = 100.
gravAcc = 9.81
velMagMin = 1.0e-6
depMin = 1.0e-6
curvAccInFriction = 1
curvAccInTangent = 0
curvAccInGradient = 0
centeredPosition = 1
explicitFriction = 0
frictModel = samosAT
volClassSmall = 25000.
volClassMedium = 60000.
musamosat = 0.155
tau0samosat = 0
Rs0samosat = 0.222
kappasamosat = 0.43
Rsamosat = 0.05
Bsamosat = 4.13
musamosatsmall = 0.22
tau0samosatsmall = 0
Rs0samosatsmall = 0.222
kappasamosatsmall = 0.43
Rsamosatsmall = 0.05
Bsamosatsmall = 4.13
musamosatmedium = 0.17
tau0samosatmedium = 0
Rs0samosatmedium = 0.222
kappasamosatmedium = 0.43
Rsamosatmedium = 0.05
Bsamosatmedium = 4.13
muvoellmy = 0.155
xsivoellmy = 4000.
muvoellmyminshear = 0.155
xsivoellmyminshear = 4000.
tau0voellmyminshear = 70
mucoulombminshear = 0.155
tau0coulombminshear = 70
mucoulomb = 0.155
mu0wetsnow = 0.2
xsiwetsnow = 981.
enthRef = 20000
TIni = -10
entTempRef = -10.0
cpIce = 2050.0
hRes = 10
cRes = 0.003
detrainment = False
detWithoutRes = False
detK = 20
entEroEnergy = 5000
entShearResistance = 0
entDefResistance = 0
dam = True
restitutionCoefficient = 1
nIterDam = 1
dissDam = 1
snowSlide = 0
cohesionMaxStrain = 0.2
minDistCohesion = 1.0e-3
cohesiveSurfaceTension = 50000
thresholdPointInPoly = 0.001
avalancheDir = data/avaAlr
simTypeActual = null

[TRACKPARTICLES]
trackParticles = False
centerTrackPartPoint = 2933|-4010
radius = 5
particleProperties =

[VISUALISATION]
writePartToCSV = False
visuParticleProperties = velocityMagnitude|m
contourResType = ppr
thresholdValue = 1.
createRangeTimeDiagram = False
TTdiagram = True
scenario =

[INPUT]
releaseScenario = relAlr
thFromIni =
DEM = avaAlr.asc
relThFile =

[REPORT]
plotFields = ppr|pft|pfv
unitppr = kPa
unitpft = m
unitpfv = ms-1

[EXPORTS]
exportData = True

Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
[GENERAL]
simTypeList = null
modelType = dfa
resType = ppr|pft|pfv
tSteps = 1
initPartDistType = random
initialiseParticlesFromFile = False
particleFile =
seed = 12345
iniStep = False
saveParticlesIni = False
subgridMixingFactorIni = 10.
dtIni = 0.1
sphOptionIni = 2
stopCritIni = 0.1
stopCritIniSmall = 1.001
maxIterations = 100
bufferZoneFactor = 4
additionallyFixedFactor = 0.275
ftOptionIni = False
rho = 200
rhoEnt = 100
relThFromShp = False
relThPercentVariation =
relThRangeVariation =
relThRangeFromCiVariation =
relThDistVariation =
relTh = 1.0
relThFromFile = False
secRelArea = False
secondaryRelThFromShp = True
secondaryRelThPercentVariation =
secondaryRelThRangeVariation =
secondaryRelThRangeFromCiVariation =
secondaryRelThDistVariation =
secondaryRelTh =
entThFromShp = True
entThIfMissingInShp = 0.3
entThPercentVariation =
entThRangeVariation =
entThRangeFromCiVariation =
entThDistVariation =
entTh =
dt = 0.1
tEnd = 400
sphKernelRadiusTimeStepping = False
cMax = 0.02
stopCritType = kinEnergy
uFlowingThreshold = 0.01
stopCrit = 0.01
sphOption = 1
minRKern = 0.001
sphKernelRadius = 5
viscOption = 1
massPerParticleDeterminationMethod = MPPDH
massPerPart = 1250
deltaTh = 0.25
sphKR0 = 5
nPPK0 = 15
aPPK = -1.5
splitOption = 0
thresholdMassSplit = 1.5
distSplitPart = 0.41
nSplit = 2
cMinNPPK = 0.25
cMaxNPPK = 2.5
cMinMass = 0.25
cMaxnMass = 5
interpOption = 2
hmin = 0.05
meshCellSize = 5
meshCellSizeThreshold = 0.001
cleanRemeshedRasters = True
methodMeshNormal = 1
reprojMethodForce = 2
reprojMethodPosition = 2
reprojectionIterations = 5
thresholdProjection = 0.001
subgridMixingFactor = 100.
gravAcc = 9.81
velMagMin = 1.0e-6
depMin = 1.0e-6
curvAccInFriction = 1
curvAccInTangent = 0
curvAccInGradient = 0
centeredPosition = 1
explicitFriction = 0
frictModel = samosATMedium
volClassSmall = 25000.
volClassMedium = 60000.
musamosat = 0.155
tau0samosat = 0
Rs0samosat = 0.222
kappasamosat = 0.43
Rsamosat = 0.05
Bsamosat = 4.13
musamosatsmall = 0.22
tau0samosatsmall = 0
Rs0samosatsmall = 0.222
kappasamosatsmall = 0.43
Rsamosatsmall = 0.05
Bsamosatsmall = 4.13
musamosatmedium = 0.17
tau0samosatmedium = 0
Rs0samosatmedium = 0.222
kappasamosatmedium = 0.43
Rsamosatmedium = 0.05
Bsamosatmedium = 4.13
muvoellmy = 0.155
xsivoellmy = 4000.
muvoellmyminshear = 0.155
xsivoellmyminshear = 4000.
tau0voellmyminshear = 70
mucoulombminshear = 0.155
tau0coulombminshear = 70
mucoulomb = 0.155
mu0wetsnow = 0.2
xsiwetsnow = 981.
enthRef = 20000
TIni = -10
entTempRef = -10.0
cpIce = 2050.0
hRes = 10
cRes = 0.003
detrainment = False
detWithoutRes = False
detK = 20
entEroEnergy = 5000
entShearResistance = 0
entDefResistance = 0
dam = True
restitutionCoefficient = 1
nIterDam = 1
dissDam = 1
snowSlide = 0
cohesionMaxStrain = 0.2
minDistCohesion = 1.0e-3
cohesiveSurfaceTension = 50000
thresholdPointInPoly = 0.001
avalancheDir = data/avaAlr
simTypeActual = null

[TRACKPARTICLES]
trackParticles = False
centerTrackPartPoint = 2933|-4010
radius = 5
particleProperties =

[VISUALISATION]
writePartToCSV = False
visuParticleProperties = velocityMagnitude|m
contourResType = ppr
thresholdValue = 1.
createRangeTimeDiagram = False
TTdiagram = True
scenario =

[INPUT]
releaseScenario = relAlr
thFromIni =
DEM = avaAlr.asc
relThFile =

[REPORT]
plotFields = ppr|pft|pfv
unitppr = kPa
unitpft = m
unitpfv = ms-1

[EXPORTS]
exportData = True

Loading

0 comments on commit 0aaf7b0

Please sign in to comment.