Source code for dif3ddemo.app

# Copyright 2021 TerraPower, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""App for demo."""
import armi
from armi import plugins


from dif3ddemo.cli import makeTestFixtures


[docs]class Dif3dDragonApp(armi.apps.App): """App that adds only the DIF3D plugin and DRAGON for testing purposes.""" name = "dif3ddemo" def __init__(self): armi.apps.App.__init__(self) # Only registering DIF3D, main purpose is for testing. from armicontrib.dif3d.plugin import Dif3dPlugin from terrapower.physics.neutronics.dragon import DragonPlugin self._pm.register(Dif3dPlugin) self._pm.register(DragonPlugin) self._pm.register(InlDif3dDemoPlugin) @property def splashText(self): return """ ================================= == ARMI-DIF3D Demo Application == ================================= ARMI Version: {} """.format(armi.__version__)
[docs]class InlDif3dDemoPlugin(plugins.ArmiPlugin): """Plugin with DIF3D testing hooks"""
[docs] @staticmethod @plugins.HOOKIMPL def defineEntryPoints(): return [ makeTestFixtures.MakeFixtures, makeTestFixtures.CopyFixtureFiles, ]