WallGo.config.ConfigEOM

class ConfigEOM(errTol=0.001, pressRelErrTol=0.1, maxIterations=20, conserveEnergyMomentum=True, wallThicknessBounds=<factory>, wallOffsetBounds=<factory>, vwMaxDeton=0.99, nbrPointsMinDeton=5, nbrPointsMaxDeton=20, overshootProbDeton=0.05)[source]

Bases: object

Holds the config of the EOM class.

Parameters:
  • errTol (float)

  • pressRelErrTol (float)

  • maxIterations (int)

  • conserveEnergyMomentum (bool)

  • wallThicknessBounds (list[float])

  • wallOffsetBounds (list[float])

  • vwMaxDeton (float)

  • nbrPointsMinDeton (int)

  • nbrPointsMaxDeton (int)

  • overshootProbDeton (float)

__init__(errTol=0.001, pressRelErrTol=0.1, maxIterations=20, conserveEnergyMomentum=True, wallThicknessBounds=<factory>, wallOffsetBounds=<factory>, vwMaxDeton=0.99, nbrPointsMinDeton=5, nbrPointsMaxDeton=20, overshootProbDeton=0.05)
Parameters:
  • errTol (float)

  • pressRelErrTol (float)

  • maxIterations (int)

  • conserveEnergyMomentum (bool)

  • wallThicknessBounds (list[float])

  • wallOffsetBounds (list[float])

  • vwMaxDeton (float)

  • nbrPointsMinDeton (int)

  • nbrPointsMaxDeton (int)

  • overshootProbDeton (float)

Return type:

None

Methods

__init__([errTol, pressRelErrTol, ...])

Attributes

conserveEnergyMomentum

Flag to enforce conservation of energy and momentum.

errTol

The absolute error tolerance for the wall velocity result.

maxIterations

Maximum number of iterations for the convergence of the pressure.

nbrPointsMaxDeton

Maximal number of points probed to bracket the detonation roots.

nbrPointsMinDeton

Minimal number of points probed to bracket the detonation roots.

overshootProbDeton

Desired probability of overshooting a root.

pressRelErrTol

Relative error tolerance for the pressure.

vwMaxDeton

Maximal Velocity at which the solver will look to find a detonation solution

wallThicknessBounds

Lower and upper bounds on wall thickness (in units of 1/Tnucl).

wallOffsetBounds

Lower and upper bounds on wall offset.

conserveEnergyMomentum: bool = True

Flag to enforce conservation of energy and momentum. Normally, this should be set to True, but it can help with numerical stability to set it to False. If True, there is an ambiguity in the separation between \(f_{eq}\) and \(\delta f\) when the out-of-equilibrium particles form a closed system (or nearly closed). This can lead to a divergence of the iterative loop. In the end, it is better to set this to False if most of the degrees of freedom are treated as out-of-equilibrium particle. If most of the dofs are in the background fluid, setting it to True will give better results.

errTol: float = 0.001

The absolute error tolerance for the wall velocity result.

maxIterations: int = 20

Maximum number of iterations for the convergence of the pressure.

nbrPointsMaxDeton: int = 20

Maximal number of points probed to bracket the detonation roots.

nbrPointsMinDeton: int = 5

Minimal number of points probed to bracket the detonation roots.

overshootProbDeton: float = 0.05

Desired probability of overshooting a root. Must be between 0 and 1. A smaller value will lead to more pressure evaluations (and thus a longer time), but is less likely to miss a root.

pressRelErrTol: float = 0.1

Relative error tolerance for the pressure.

vwMaxDeton: float = 0.99

Maximal Velocity at which the solver will look to find a detonation solution

wallOffsetBounds: list[float]

Lower and upper bounds on wall offset.

wallThicknessBounds: list[float]

Lower and upper bounds on wall thickness (in units of 1/Tnucl).