Commit 3452eb0b authored by Wysocki, Aaron's avatar Wysocki, Aaron
Browse files

Updating tests

parent 7d58198f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4,6 +4,9 @@
# Description:
# Makes a model of CASL problem 7 using 4 subchannels per assembly
#
# The following new features are being tested by this script:
# - The ability to set a core inlet temperature distribution
# - The ability to set a core inlet flow rate distribution
import sys
sys.path.insert(0, '../../')
import SubKit.build as cdb
+966 −966

File changed.

Preview size limit exceeded, changes collapsed.

+4 −20
Original line number Diff line number Diff line
#!/usr/bin/env python
# Author: Bob Salko
# Date: 1/23/19
# Author: Aaron Wysocki
# Date: 9/9/2021
# Description:
# Makes a model of CASL problem 7 using 4 subchannels per assembly
#
# The following new features are being tested by this script:
# - A custom name is used for the input file, ensuring that SubKit script mode can make a model with non
# default name
# - The ability to set percentTheoreticalDensity and the dynamic gap model is being tested
# - The ability to set conductor options related to fuel material and gap models (Card 9.1 parameters)
# - The ability to disable the main text output in Card Group 14
# - The ability to provide the total core power to be used to calculate the average LHR
# - The ability to set global multipliers on wide and narrow gap widths and gap length
# - The ability to set RTWFP and convergence criteria for transient input decks
# - The ability to apply a default uniform radial and axial power shape
# - The ability to generate a steady-state nodal input

import sys
sys.path.insert(0, '../../')
@@ -221,12 +215,6 @@ def main():
                                     modelGuideTubes=True,
                                     gapWidthMultWide=gapWidthMultWide, gapWidthMultNarrow=gapWidthMultNarrow, gapLengthMult=gapLengthMult)

    # Run to 1 second to let the solution reach steady state
    # Test the ability to provide rtwfp during transients (used for system coupled calcs)
#    model.addTransientGroup(tEnd=1.0, rtwfp=1e4)
    # Run a 10 second transient
#    model.addTransientGroup(tEnd=11.0, editInterval=1.0, rtwfp=1e4)

    # Write card group 19 conv criteria to the input file, even for this transient model
    model.setSteadyState(transPrintConv=True, energyBalance=1e-4, massBalance=1e-5, maxIterations=200000)

@@ -256,11 +244,7 @@ def main():
    def axPow(z):
        return np.cos((z - coreHeight / 2) * np.pi / 2 / coreHeight)

    # Pass to the core builder
#    builder.setCorePowerShape(radialPower=radPow, axialPower=axPow)

    model.generateModel('nodal_p7.inp')


if __name__ == '__main__':
    main()
+2 −0
Original line number Diff line number Diff line
@@ -51,6 +51,8 @@ runScriptTest "gridModels/global" "buildDeck.py" "$rebaseline"
runScriptTest "gridModels/levels" "buildDeck.py" "$rebaseline"
runScriptTest "nodal_p7" "buildDeck.py" "$rebaseline" "nodal_p7"
runScriptTest "nodal_p7_pow3d" "buildDeck.py" "$rebaseline"
runScriptTest "nodal_p7_inletShape" "buildDeck.py" "$rebaseline"
runScriptTest "nodal_p7_uniformPow" "buildDeck.py" "$rebaseline"
runScriptTest "msrTraining/simpleLoop/base" "genModel.py" "$rebaseline"
runScriptTest "msrTraining/simpleLoop/addPower" "genModel.py" "$rebaseline"
runScriptTest "msrTraining/simpleLoop/increaseFlow" "genModel.py" "$rebaseline"