cycle_jump
gripyth.solving.cycle_jump
Helper functions for the implementation of cycle jumps.
CLASS | DESCRIPTION |
---|---|
History |
History variables used for the system state prediction. |
Method |
Available cycle-jump methods. |
Parameters |
Parameters for cycle jumps. |
Restore |
Stores state prior to cycle jump in case trial-cycle not accepted. |
Variables |
Variables for cycle jumps. |
FUNCTION | DESCRIPTION |
---|---|
backward_finite_difference |
Approximates the |
extrapolate |
Extrapolate system state variables based on backward finite differences. |
History
dataclass
History variables used for the system state prediction.
Method
Bases: Enum
Available cycle-jump methods.
Parameters
dataclass
Parameters for cycle jumps.
ATTRIBUTE | DESCRIPTION |
---|---|
active |
whether to jump cycles or not
TYPE:
|
fixed_cycle_jump |
cycles to jump if "fixed" method is used
TYPE:
|
max_Dn |
maximum allowable cycles to jump if "relative" method is used
TYPE:
|
max_rel_error |
maximum allowable relative error if "relative" method is used
TYPE:
|
method |
approach to determine the number of cycles to jump
TYPE:
|
n_stencil |
number of cycles computed in between the individual cycle jumps,
TYPE:
|
prediction_error_estimation |
whether to estimate prediction error for postprocessing purposes
TYPE:
|
stage2_scale |
Scales allowed increment in stage II if "adaptive" method is used.
TYPE:
|
stage3_scale |
Scales allowed increment in stage III if "adaptive" method is used.
TYPE:
|
fixed_cycle_jump
class-attribute
instance-attribute
cycles to jump if "fixed" method is used
max_Dn
class-attribute
instance-attribute
maximum allowable cycles to jump if "relative" method is used
max_rel_error
class-attribute
instance-attribute
maximum allowable relative error if "relative" method is used
method
class-attribute
instance-attribute
approach to determine the number of cycles to jump
n_stencil
class-attribute
instance-attribute
number of cycles computed in between the individual cycle jumps, used for the extrapolation of the fatigue history variable
prediction_error_estimation
class-attribute
instance-attribute
whether to estimate prediction error for postprocessing purposes
stage2_scale
class-attribute
instance-attribute
Scales allowed increment in stage II if "adaptive" method is used.
Restore
dataclass
Stores state prior to cycle jump in case trial-cycle not accepted.
Variables
dataclass
Variables for cycle jumps.
METHOD | DESCRIPTION |
---|---|
__init__ |
Creates cycle-jump variables. |
ATTRIBUTE | DESCRIPTION |
---|---|
error_predictions |
array to monitor the system state prediction error estimate (if requested)
TYPE:
|
history |
history variables used for the system state prediction
TYPE:
|
jumps |
array to monitor the cycle jumps
TYPE:
|
n_resolved |
number of explicitly computed cycles in total
TYPE:
|
restore |
Stores state prior to cycle jump in case trial-cycle cannot be accepted.
TYPE:
|
error_predictions
class-attribute
instance-attribute
array to monitor the system state prediction error estimate (if requested)
history
class-attribute
instance-attribute
history variables used for the system state prediction
n_resolved
class-attribute
instance-attribute
number of explicitly computed cycles in total
restore
class-attribute
instance-attribute
Stores state prior to cycle jump in case trial-cycle cannot be accepted.
backward_finite_difference
Approximates the p
-th derivative of a function f
.
The derivative is computed with respect to x based on n equidistant
points f_i
, given as a list of arrays such as [f(x-2), f(x-1), f(x)]
.
Accepts scalars, vectors, or matrices for the points.
Returns the derivative dpf_dxp
, i.e. \(\frac{d^p f}{d x^p}\).