Settings#
The settings of a FESTIM simulation are defined with a festim.Settings object.
import festim as F
my_settings = F.Settings(
absolute_tolerance=1e10,
relative_tolerance=1e-10,
transient=False,
chemical_pot=True,
)
Here you define with:
transient: whether the simulation is transient or steady-statefinal_time: the final time of the simulationchemical_pot: whether to run the simulation with conservation of chemical potential at interfaces (only useful for multi-materials)soret: whether to turn the Soret effect on or notabsolute_tolerance: the absolute tolerance of the Newton solverrelative_tolerance: the relative tolerance of the Newton solvermaximum_iterations: the maximum iterations of the Newton solver
More advanced settings are also available:
traps_element_type: the type of finite elements for traps (DG elements can be useful to account for discontinuities)update_jacobian: whether to update the jacobian at each iteration or notlinear_solver: linear solver method for the Newton solverpreconditioner: preconditioning method for the Newton solver
See Settings for more details.