linear_solver{ }#
Calling sequence
strain{ linear_solver{ } }
Properties
usage: \(\mathrm{\textcolor{Dandelion}{conditional}}\)
items: maximum 1
Dependencies
minimized_strain{ } must be defined.
This group is not allowed if any of no_strain{ }, pseudomorphic_strain{ }, and import_strain{ } is defined.
Functionality
—
Example
strain{
minimized_strain{}
linear_solver{}
}
Nested keywords
iterations#
Calling sequence
strain{ linear_solver{ iterations } }
Properties
usage: \(\mathrm{\textcolor{ForestGreen}{optional}}\)
type: integer
values: \(z \in \{1, 2, \dots\}\)
default: \(z=10000\)
unit: \(\mathrm{-}\)
Functionality
Number of iterations for linear equation solver in strain algorithm
Example
strain{
minimized_strain{}
linear_solver{
iterations = 50000
}
}
abs_accuracy#
Calling sequence
strain{ linear_solver{ abs_accuracy } }
Properties
usage: \(\mathrm{\textcolor{ForestGreen}{optional}}\)
type: real number
values:
[0.0, ...)default: \(r=1e-8\)
unit: \(\mathrm{GP\,}\) for 1D; \(\mathrm{GP\,nm\,}\) for 2D; \(\mathrm{GP\,nm^{2}\,}\) for 3D
Functionality
—
Example
strain{
minimized_strain{}
linear_solver{
abs_accuracy = 1e-9
}
}
rel_accuracy#
Calling sequence
strain{ linear_solver{ rel_accuracy } }
Properties
usage: \(\mathrm{\textcolor{ForestGreen}{optional}}\)
type: real number
values: \(0.0 \leq r \leq 10^{-6}\)
default: \(r=1e-12\)
unit: \(\mathrm{-}\)
Functionality
—
Example
strain{
minimized_strain{}
linear_solver{
rel_accuracy = 1e-10
}
}
method#
Added in version 3.0.0.
Calling sequence
strain{ linear_solver{ method = "..." } }
Properties
usage: \(\mathrm{\textcolor{ForestGreen}{optional}}\)
type: choice
values:
yesornodefault:
cg
Functionality
Selects linear solver to be used:
cg: Conjugate Gradientcsgs: Composite Step Conjugate Gradientbicgstab: Biconjugate Gradient Stabilized Method
Example
strain{
minimized_strain{}
linear_solver{
method = bicgstab
}
}
preconditioner#
Added in version 4.0.0.
Calling sequence
strain{ linear_solver{ preconditioner = ... } }
Properties
usage: \(\mathrm{\textcolor{ForestGreen}{optional}}\)
type: choice
values:
none;diag;incfact;modincfact;ssordefault:
diag
Functionality
A preconditioner transforms a linear system \(Ax=b\) into an equivalent system with improved numerical properties, allowing iterative solvers to converge faster and potentially more reliably.
Preconditioning aims to improve the spectral properties of the system matrix, typically by reducing its condition number or clustering its eigenvalues. The effectiveness depends on the matrix structure and the iterative solver being used.
This keyword selects the preconditioning method:
none — No preconditioning is applied. The iterative solver operates directly on the original linear system.
diag — Diagonal (Jacobi) preconditioning. Uses the diagonal elements of the system matrix to construct a simple preconditioner. Computationally inexpensive, but generally less effective for strongly coupled or ill-conditioned systems. It also may be more robust than the other ones, particularly for strain model.
incfact — Incomplete factorization preconditioning. Approximates the factorization of the system matrix while limiting fill-in to preserve sparsity. Generally provides stronger preconditioning than the diagonal method, at the expense of additional computational effort and memory.
modincfact — Modified incomplete factorization preconditioning. A variation of incomplete factorization that modifies the treatment of discarded matrix entries to improve the approximation and potentially enhance convergence.
ssor — Symmetric Successive Over-Relaxation preconditioning. Uses forward and backward relaxation sweeps based on the matrix splitting into diagonal, lower-triangular, and upper-triangular parts. Its effectiveness depends on the matrix properties and the relaxation parameter.
Note
The optimal preconditioner depends on the properties of the linear system. More sophisticated preconditioners may reduce the number of solver iterations but require additional computational time and memory for their construction and application.
The ssor method can be configured using the keyword ssor_val.
Attention
The ssor method can be used only when :ref:strain{ linear_solver{ use_csr } }` is set to yes.
Example
strain{
minimized_strain{}
linear_solver{
preconditioner = diag
}
}
ssor_val#
Added in version 4.0.0.
Calling sequence
strain{ linear_solver{ ssor_val = ... } }
Properties
usage: \(\mathrm{\textcolor{ForestGreen}{optional}}\)
type: real number
values: \(10^{-6} \leq r \leq 1.0\)
default: \(r=0.2\)
unit: \(\mathrm{-}\)
Functionality
This keyword is relevant only when preconditioner is set to ssor.
This keyword specifies the relaxation parameter \(\omega\) used by the Symmetric Successive Over-Relaxation (SSOR) preconditioner, when preconditioner is set to ssor.
The SSOR preconditioner is constructed from the diagonal, lower-triangular, and upper-triangular parts of the system matrix. The relaxation parameter determines the resulting preconditioning matrix and influences the convergence of the iterative linear solver.
The optimal value depends on the spectral properties of the system matrix. An appropriate choice can significantly reduce the number of iterations required for convergence, but determining the optimal value is generally computationally expensive.