three_phase_line_F_solveSolve the system of equations defined in three_phase_line_F using
a Newton-Raphson method.
It will make a maximum of 50 iterations to converge. With a tolerance
of 1e-9 in the maximum absolute value of the function vector or the
step vector.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ArModel), | intent(in) | :: | model |
Thermodynamic model to use |
||
| real(kind=pr), | intent(inout) | :: | X(:) |
Input/output vector |
||
| integer, | intent(in) | :: | ns |
Specified variable index |
||
| real(kind=pr), | intent(in) | :: | S |
Specified variable value |
||
| real(kind=pr), | intent(out) | :: | F(:) |
Function vector |
||
| real(kind=pr), | intent(out) | :: | dF(:,:) |
Jacobian |
||
| integer, | intent(out), | optional | :: | iters |
Number of iterations performed |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=pr), | private | :: | Xold(size(X)) | ||||
| real(kind=pr), | private | :: | dX(size(X)) | ||||
| integer, | private | :: | i | ||||
| integer, | private | :: | max_tries | ||||
| real(kind=pr), | private | :: | res_norm | ||||
| real(kind=pr), | private | :: | tol |