Iterative Solution for Nonlinear System and Comparing Updated Coefficients

6 views (last 30 days)
I am working with a nonlinear system of equations, where the term appears in the equations. I need to solve the system iteratively and compare the coefficients calculated using the initial assumption (with at first) with the updated coefficients obtained after several iterations.
The steps of the process are as follows:
\begin{itemize}
\item \textbf{Step A:} Assume that the value of \( \left| \frac{\partial \phi_2'}{\partial r} \right| \) is known (set to 0 initially) and the coefficients \( c_n, c_n^-, d^0, d_n^+, d_n^- \) are unknown. The system of equations becomes linear and can be solved by Gaussian elimination.
\item \textbf{Step B:} After obtaining the initial solution, substitute the value of \( \left| \frac{\partial \phi_2'}{\partial r} \right| \) into the equation set and solve for all unknown coefficients, and update the value of \( \left| \frac{\partial \phi_2'}{\partial r} \right| \).
\item \textbf{Step C:} Calculate the updated unknown coefficients, and compare them with the values obtained in the previous iteration. If the difference between any coefficient is smaller than \( 10^{-3} \), stop the iteration and consider the solution as the final result. Otherwise, continue iterating, updating the value of \( \left| \frac{\partial \phi_2'}{\partial r} \right| \) in each step.
\end{itemize}
How can I implement this iterative solution in MATLAB? Specifically, how can I calculate and compare the differences between the unknown coefficients obtained in each step using the initial and updated values of ?
  23 Comments
Torsten
Torsten on 14 Jun 2025
Edited: Torsten on 14 Jun 2025
Is your solution method based on a publication where it has been successfully applied ?
Correct me if I'm wrong, but it seems you work with the analytical solutions to partial differential equations in each subregion and try to adjust the free parameters of these infinite series solutions as to satisfy boundary and interface conditions.
I wonder whether it wouldn't have been possible (and easier) to discretize the underlying partial differential equation(s) together with the boundary conditions and interface conditions directly (i.e. without making use of the analytical solutions).
By the way: What are the partial differential equations for the velocity potential in the different subregions ? I guess this should be included in your problem definition abstract.
Javeria
Javeria on 16 Jun 2025
Hello, Yes this is my project. and in each region the potential must satisfy the laplace equation and the boundary conditions. What i can know that the procedure for solving it is outlinded at that snapshoot which i upload.

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!