Steps

One or more Steps form the simulation. Steps are executed in consecutive order, have a distinct (physical) runtime, and may contain multiple StepActions. Subsequent Steps inherit StepActions, and they may be updated.

class edelweissfe.steps.base.stepbase.StepBase(number, model, fieldOutputController, journal, jobInfo, solver, outputManagers, stepActions, **kwargs)[source]

This is a simulation step.

It has a specific runtime, and it holds StepActions to executed.

Parameters
  • number (int) – The number of this step. For information purposes only.

  • model (FEModel) – The current state of the model.

  • fieldOutputController (FieldOutputController) – The FieldOutputController instance for processing results.

  • journal (Journal) – The Journal instance for logging purposes.

  • jobInfo (dict) – Additional information about the job

  • solvers – The instances of solvers available to this step.

  • outputManagers (list) – The OutputManagers used.

  • stepActions (dict) – The collection of actions for this step.

  • **kwargs – Additional options for the step.

Methods

solve()

Let a step be solved.

solve()[source]

Let a step be solved.

Returns

The updated model.

Return type

FEModel

AdaptiveStep - A classical adpative step for transient simulations

class edelweissfe.steps.adaptivestep.AdaptiveStep(number, model, fieldOutputController, journal, jobInfo, solver, outputManagers, stepActions, **kwargs)[source]

A standard adaptive incremental step to be used in nonlinear simulations.

Parameters
  • number (int) – The number of this step. For information purposes only.

  • starTime – The start time of the step.

  • definition – A dictionary holding key/value pairs for defintion

  • stepActions (dict) – The collection of actions for this step.

  • journal (Journal) – The journal object for logging.

  • model (FEModel) –

  • fieldOutputController (FieldOutputController) –

  • jobInfo (dict) –

  • outputManagers (list) –

Methods

solve()

Let a step be solved.

discardAndChangeIncrement

getTimeStep

preventIncrementIncrease

solve()[source]

Let a step be solved.

Returns

The updated model.

Return type

FEModel

criticalIter

The number of critical iterations after which the next increment is reduced.

length

The durcation of the step.

maxGrowIter

The number of residual growths before the increment is discarded.

maxIncrementSize

The maximal fraction of the step to be computed.

maxIter

The maximal number of iterations allowed.

maxNumberIncrements

The maximal number of increments allowed.

minIncrementSize

The minimal fraction of the step to be computed.

number

The (unique) number of the step.

startIncrementSize

The initial fraction of the step to be computed.