-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
1,103 additions
and
473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
"""fake test materials for unit tests in armi.reactor.converters.tests.test_axialExpansionChanger""" | ||
from armi.materials.ht9 import HT9 | ||
from armi.utils import units | ||
|
||
|
||
class Fake(HT9): | ||
""" | ||
Fake material based on HT9, used to verify | ||
assembly axial expansion | ||
""" | ||
|
||
name = "Fake" | ||
|
||
def __init__(self): | ||
HT9.__init__(self) | ||
|
||
def linearExpansionPercent(self, Tk=None, Tc=None): | ||
""" A fake linear expansion percent""" | ||
Tc = units.getTc(Tc, Tk) | ||
return 0.02 * Tc | ||
|
||
|
||
class FakeException(HT9): | ||
""" | ||
Fake material based on HT9, used to verify exceptions | ||
in assembly axial expansion | ||
""" | ||
|
||
name = "FakeException" | ||
|
||
def __init__(self): | ||
HT9.__init__(self) | ||
|
||
def linearExpansionPercent(self, Tk=None, Tc=None): | ||
""" A fake linear expansion percent""" | ||
Tc = units.getTc(Tc, Tk) | ||
return 0.08 * Tc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.