nonlinear residual definition

Provides a system for patient-specific cardiovascular modeling and simulation.
POST REPLY
User avatar
Mattia Zanchi
Posts: 12
Joined: Fri Jul 23, 2021 6:32 am

nonlinear residual definition

Post by Mattia Zanchi » Fri Oct 08, 2021 5:45 am

Greetings,
Someone can explain to me how the "Measure of the nonlinear residual " ( third column in histor.dat file ) and "Logarithm of the residual changeis" (fourth column) are computed?

thx
Mattia

User avatar
David Parker
Posts: 1696
Joined: Tue Aug 23, 2005 2:43 pm

Re: nonlinear residual definition

Post by David Parker » Mon Oct 11, 2021 11:50 am

Hi Mattia,

The Measure of the nonlinear residual is computed by substituting in the current solution for velocity and pressure into the Navier-Stokes equations. The non-linear residual that is reported in the histor.dat file is an average residual for the entire domain; the residual divided by the number of nodes in the mesh.

The Logarithm of the residual change is computed as 10*log10(Ri/R1), where Ri and R1 is the L^2 norm of the residual vectors at iteration i and 1 respectively for each time step.

These values are computed in subroutine rstatic() in here https://github.com/SimVascular/svSolver ... routines.f

Cheers,
Dave

User avatar
Mattia Zanchi
Posts: 12
Joined: Fri Jul 23, 2021 6:32 am

Re: nonlinear residual definition

Post by Mattia Zanchi » Mon Oct 11, 2021 11:42 pm

Hi Dave,
Thank you

Mattia

POST REPLY