Skip to content

Commit 495c06d

Browse files
author
Kyle Schau
committed
Update cases for names
1 parent cb1970d commit 495c06d

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

utilities/animateAlphas.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
components at the values of the frames, and creates animation
77
videos of the results.
88
9-
Uses identical input file that was used in semForPEREGRINE. Expects the alphas to be located
10-
in ./<semForPEREGRINE.inp>_alphas
9+
Uses identical input file that was used in semForPEREGRINE. Expects the alphas
10+
need to be located in ./<semForPEREGRINE.inp>_alphas
1111
12-
Creats three videos, u.mp4, v.mp4, and w.mp4
12+
Creats three videos, U.mp4, v.mp4, and w.mp4
1313
1414
Example
1515
-------
@@ -31,7 +31,7 @@
3131
inputFile = sys.argv[1]
3232
bcFam = inputFile.split(".")[0]
3333
# Use the input file name as the alpha directory
34-
outputDir = bcFam + "_alphas"
34+
outputDir = bcFam + "Alphas"
3535
if not os.path.exists(outputDir):
3636
raise IOError(f"Cannot find your alpha files in the usual place, {outputDir}.")
3737

utilities/semForPEREGRINE.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
size = comm.Get_size()
4343

4444
# Use the input file name as the output directory
45-
outputDir = bcFam + "_alphas"
45+
outputDir = bcFam + "Alphas"
4646
if rank == 0:
4747
if os.path.exists(outputDir):
4848
pass
@@ -53,6 +53,8 @@
5353
###############################################################################
5454
with open(inputFile, "r") as f:
5555
seminp = yaml.load(f, Loader=yaml.FullLoader)
56+
if seminp["nframes"] % 10 != 0:
57+
raise ValueError("nframes must be a multiple of 10 to use in PEREGRINE.")
5658

5759
###############################################################################
5860
# Create the domain based on above inputs

utilities/templateInput.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Uo: 4.519722 # Channel centerline height or U_inf
3333
totalTime: 0.5 # [s] time of generated signal,
3434
# used to determine length of box
3535
nframes: 200 # Number of desired frames over time interval
36+
# must be a multiple of 10 to use in PEREGRINE
3637
interpolate: true # Are you going to interpolate the signal or use it
3738
# as is?
3839
cEddy: 1.0 # Eddy Density multiplier

0 commit comments

Comments
 (0)