Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 2 additions & 2 deletions avaframe/ana1Tests/energyLineTestCfg.ini
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ tSteps = 0:2
#+++++++++SNOW properties
#+++++Release thickness++++
# True if release thickness should be read from shapefile file; if False - relTh read from ini file
relThFromShp = False
# release thickness (only considered if relThFromShp=False)
relThFromFile = False
# release thickness (only considered if relThFromFile=False)
relTh = 1

#++++++++++++Time stepping parameters
Expand Down
4 changes: 2 additions & 2 deletions avaframe/ana1Tests/rotationTestCfg.ini
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ tSteps = 0:2
#+++++++++SNOW properties
#+++++Release thickness++++
# True if release thickness should be read from shapefile file; if False - relTh read from ini file
relThFromShp = False
# release thickness (only considered if relThFromShp=False)
relThFromFile = False
# release thickness (only considered if relThFromFile=False)
relTh = 1

#++++++++++++Time stepping parameters
Expand Down
7 changes: 4 additions & 3 deletions avaframe/ana1Tests/simiSolTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ def getReleaseThickness(avaDir, cfg, demFile):
X1 = X / cos
Y1 = Y
relTh = Hini * (1 - X1 * X1 / (L_x * L_x) - Y * Y / (L_y * L_y))
# relTh = np.where(relTh < 0, 0, relTh)
relTh = np.where(relTh < 0, 0, relTh)

relDict = {
"relTh": relTh,
Expand All @@ -959,11 +959,12 @@ def getReleaseThickness(avaDir, cfg, demFile):
polyline = {}
polyline["x"] = L_x * np.cos(alpha) * cos
polyline["y"] = L_x * np.sin(alpha)
relFileName = demFile.parent / "REL" / "rel1.shp"
fU.makeADir(demFile.parent / "RELShp")
relFileName = demFile.parent / "RELShp" / "rel1.shp"
shpConv.writeLine2SHPfile(polyline, "rel1", str(relFileName))

# write relTh to file
relThPath = demFile.parent / "RELTH"
relThPath = demFile.parent / "REL"
fU.makeADir(relThPath)
relThFileName = relThPath / "releaseThickness.asc"
headerRelTh = {
Expand Down
2 changes: 1 addition & 1 deletion avaframe/data/avaDamBreak/Inputs/damBreak_com1DFACfg.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fdOptionIni = False

#+++++++++SNOW properties
# True if release thickness should be read from shapefile file; if False - relTh read from ini file
relThFromShp = False
relThFromFile = False
relTh = 1

#++++++++++++Time stepping parameters
Expand Down
2 changes: 1 addition & 1 deletion avaframe/data/avaFPtest/Inputs/FlatPlane_com1DFACfg.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ resType = FT|particles
tSteps = 0:5


relThFromShp = False
relThFromFile = False
relTh =
relThFromFile = True
#++++++++++++Time stepping parameters
Expand Down
3 changes: 1 addition & 2 deletions avaframe/data/avaSimilaritySol/Inputs/simiSol_com1DFACfg.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ initPartDistType = random

#+++++++++SNOW properties
# True if release thickness should be read from shapefile file; if False - relTh read from ini file
relThFromShp = False
relThFromFile = True
relThFromFile = False

#++++++++++++Time stepping parameters
# End time [s]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ additionallyFixedFactor = 0.275
ftOptionIni = False
rho = 200
rhoEnt = 100
relThFromShp = True
relThFromFile = True
relThPercentVariation = +50$1
relTh =
secRelArea = False
secondaryRelThFromShp = True
secondaryRelThFromFile = True
secondaryRelThPercentVariation =
secondaryRelTh =
entThFromShp = True
entThFromFile = True
entThPercentVariation =
entTh =
dt = 0.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ additionallyFixedFactor = 0.275
ftOptionIni = False
rho = 200
rhoEnt = 100
relThFromShp = True
relThFromFile = True
relThPercentVariation = +50.0$1
relTh =
secRelArea = False
secondaryRelThFromShp = True
secondaryRelThFromFile = True
secondaryRelThPercentVariation =
secondaryRelTh =
entThFromShp = True
entThFromFile = True
entThPercentVariation =
entTh =
dt = 0.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ additionallyFixedFactor = 0.275
ftOptionIni = False
rho = 200
rhoEnt = 100
relThFromShp = True
relThFromFile = True
relThPercentVariation = +50.0$1
relTh =
secRelArea = False
secondaryRelThFromShp = True
secondaryRelThFromFile = True
secondaryRelThPercentVariation =
secondaryRelTh =
entThFromShp = True
entThFromFile = True
entThPercentVariation =
entTh =
dt = 0.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ additionallyFixedFactor = 0.275
ftOptionIni = False
rho = 200
rhoEnt = 100
relThFromShp = True
relThFromFile = True
relThPercentVariation =
relTh =
secRelArea = False
secondaryRelThFromShp = True
secondaryRelThFromFile = True
secondaryRelThPercentVariation =
secondaryRelTh =
entThFromShp = True
entThFromFile = True
entThPercentVariation =
entTh =
dt = 0.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ additionallyFixedFactor = 0.275
ftOptionIni = False
rho = 200
rhoEnt = 100
relThFromShp = False
relThFromFile = False
relThPercentVariation = -50$1
relTh = 1.
secRelArea = False
secondaryRelThFromShp = True
secondaryRelThFromFile = True
secondaryRelThPercentVariation =
secondaryRelTh =
entThFromShp = True
entThFromFile = True
entThPercentVariation =
entTh =
dt = 0.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ additionallyFixedFactor = 0.275
ftOptionIni = False
rho = 200
rhoEnt = 100
relThFromShp = False
relThFromFile = False
relThPercentVariation =
relTh = 1.5
secRelArea = False
secondaryRelThFromShp = True
secondaryRelThFromFile = True
secondaryRelThPercentVariation =
secondaryRelTh =
entThFromShp = True
entThFromFile = True
entThPercentVariation =
entTh =
dt = 0.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ additionallyFixedFactor = 0.275
ftOptionIni = False
rho = 200
rhoEnt = 100
relThFromShp = True
relThFromFile = True
relThPercentVariation = -50.0$1
relTh =
secRelArea = False
secondaryRelThFromShp = True
secondaryRelThFromFile = True
secondaryRelThPercentVariation =
secondaryRelTh =
entThFromShp = True
entThFromFile = True
entThPercentVariation =
entTh =
dt = 0.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ additionallyFixedFactor = 0.275
ftOptionIni = False
rho = 200
rhoEnt = 100
relThFromShp = True
relThFromFile = True
relThPercentVariation = -50.0$1
relTh =
secRelArea = False
secondaryRelThFromShp = True
secondaryRelThFromFile = True
secondaryRelThPercentVariation =
secondaryRelTh =
entThFromShp = True
entThFromFile = True
entThPercentVariation =
entTh =
dt = 0.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@ additionallyFixedFactor = 0.275
ftOptionIni = False
rho = 200
rhoEnt = 100
relThFromShp = False
relThFromFile = False
relThPercentVariation =
relThRangeVariation =
relThRangeFromCiVariation =
relThDistVariation =
relTh = 2.0
relThFromFile = False
secRelArea = False
secondaryRelThFromShp = True
secondaryRelThFromFile = True
secondaryRelThPercentVariation =
secondaryRelThRangeVariation =
secondaryRelThRangeFromCiVariation =
secondaryRelThDistVariation =
secondaryRelTh =
entThFromShp = True
entThFromFile = True
entThIfMissingInShp = 0.3
entThPercentVariation =
entThRangeVariation =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@ additionallyFixedFactor = 0.275
ftOptionIni = False
rho = 200
rhoEnt = 100
relThFromShp = False
relThFromFile = False
relThPercentVariation =
relThRangeVariation =
relThRangeFromCiVariation =
relThDistVariation =
relTh = 1.0
relThFromFile = False
secRelArea = False
secondaryRelThFromShp = True
secondaryRelThFromFile = True
secondaryRelThPercentVariation =
secondaryRelThRangeVariation =
secondaryRelThRangeFromCiVariation =
secondaryRelThDistVariation =
secondaryRelTh =
entThFromShp = True
entThFromFile = True
entThIfMissingInShp = 0.3
entThPercentVariation =
entThRangeVariation =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@ additionallyFixedFactor = 0.275
ftOptionIni = False
rho = 200
rhoEnt = 100
relThFromShp = False
relThFromFile = False
relThPercentVariation =
relThRangeVariation =
relThRangeFromCiVariation =
relThDistVariation =
relTh = 1
relThFromFile = False
secRelArea = False
secondaryRelThFromShp = True
secondaryRelThFromFile = True
secondaryRelThPercentVariation =
secondaryRelThRangeVariation =
secondaryRelThRangeFromCiVariation =
secondaryRelThDistVariation =
secondaryRelTh =
entThFromShp = True
entThFromFile = True
entThIfMissingInShp = 0.3
entThPercentVariation =
entThRangeVariation =
Expand Down
18 changes: 9 additions & 9 deletions avaframe/tests/data/com1DFAConfigs/0_com1DFACfg.ini
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ rho = 200
rhoEnt = 100
#+++++Release thickness++++
# True if release thickness should be read from shapefile file; if False - relTh read from ini file
relThFromShp = True
relThFromFile = True
# if a variation on relTh shall be performed add here +- percent and number of steps separated by $
# for example relThPercentVariation=50$10
relThPercentVariation =
Expand All @@ -75,19 +75,19 @@ relThRangeVariation =
# if variation on relTh shall be performed using a normal distribution in number of steps,
# value of buildType (ci95 value), min and max of dist in percent, buildType (ci95 only allowed),
# support (e.g. 10000) all separated by $: e.g. normaldistribution$numberOfSteps$0.3$95$ci95$10000
# if relThFromShp=True ci95 is read from shp file too
# if relThFromFile=True ci95 is read from shp file too
relThDistVariation =
# add standard values (ONLY available for options rangeVariation and percentVariation)
addStandardConfig = False
# release thickness (only considered if relThFromShp=False)
# release thickness (only considered if relThFromFile=False)
relTh =
# read release thickness directly from file (relThFromShp needs to be False)
# read release thickness directly from file (relThFromFile needs to be False)
relThFromFile = False
#+++++Secondary release thickness+++++
# if secRelArea is True - add secondary release area
secRelArea = True
# True if release thickness should be read from shapefile file; if False - secondaryRelTh read from ini file
secondaryRelThFromShp = True
secondaryRelThFromFile = True
# if a variation on secondaryRelTh shall be performed add here +- percent and number of steps separated by $
# for example secondaryRelThPercentVariation=50$10
secondaryRelThPercentVariation =
Expand All @@ -97,13 +97,13 @@ secondaryRelThRangeVariation =
# if variation on secondaryRelTh shall be performed using a normal distribution in number of steps,
# value of buildType (ci95 value), min and max of dist in percent, buildType (ci95 only allowed),
# support (e.g. 10000) all separated by $: e.g. normaldistribution$numberOfSteps$0.3$95$ci95$10000
# if secondaryRelThFromShp=True ci95 is read from shp file too
# if secondaryRelThFromFile=True ci95 is read from shp file too
secondaryRelThDistVariation =
# secondary area release thickness (only considered if secondaryRelThFromShp=False)
# secondary area release thickness (only considered if secondaryRelThFromFile=False)
secondaryRelTh =
#+++++Entrainment thickness++++
# True if entrainment thickness should be read from shapefile file; if False - entTh read from ini file
entThFromShp = False
entThFromFile = False
# if a variation on entTh shall be performed add here +- percent and number of steps separated by $
# for example entThPercentVariation=50$10
entThPercentVariation =
Expand All @@ -115,7 +115,7 @@ entThRangeVariation =
# support (e.g. 10000) all separated by $: e.g. normaldistribution$numberOfSteps$0.3$95$ci95$10000
# if entFromShp=True ci95 is read from shp file too
entThDistVariation =
# entrainment thickness (only considered if entThFromShp=False)
# entrainment thickness (only considered if entThFromFile=False)
entTh = 0.3

#++++++++++++Time stepping parameters
Expand Down
Loading
Loading