terrapower.physics.neutronics.dragon.plugin module

DRAGON Plugin.

class terrapower.physics.neutronics.dragon.plugin.DragonPlugin[source]

Bases: ArmiPlugin

Plugin for the DRAGON interface.

static exposeInterfaces(cs)[source]

Function for exposing interface(s) to other code.

static defineSettings()[source]

Define settings for DRAGON.

static defineSettingsValidators(inspector)[source]

Define settings inspections for DRAGON.

static defineCaseDependencies(case, suite)[source]

Function for defining case dependencies.

Some Cases depend on the results of other Cases in the same CaseSuite. Which dependencies exist, and how they are discovered depends entirely on the type of analysis and active interfaces, etc. This function allows a plugin to inspect settings and declare dependencies between the passed case and any other cases in the passed suite.

Parameters:
  • case (Case) – The specific case for which we want to find dependencies.

  • suite (CaseSuite) – A CaseSuite object to which the Case and other potential dependencies belong.

Returns:

dependencies – This should return a set containing Case objects that are considered dependencies of the passed case. They should be members of the passed suite.

Return type:

set of Cases

static setVersionInSettings(cs)[source]

Helper method to set the version correctly in the Settings file.