Remove trailing whitespace systematically
[foam-extend-3.2.git] / applications / solvers / solidMechanics / icoFsiElasticNonLinULSolidFoam / setInterfaceDisplacement.H
blob50fb929b98804fc1bb5a46a058f5cc485be11027
1 Info << "\nTime = " << runTime.timeName()
2     << ", iteration: " << outerCorr << endl;
4 if (outerCorr < 3 || couplingScheme == "FixedRelaxation")
6     Info << "Current fsi under-relaxation factor: "
7         << fsiRelaxationFactor << endl;
9     fluidPatchPointsDisplOld = fluidPatchPointsDispl;
11     fluidPatchPointsDispl += fsiRelaxationFactor*fsiResidual;
13 else
15     if (couplingScheme == "Aitken")
16     {
17         fsiRelaxationFactor =
18            -fsiRelaxationFactor
19            *(
20                 gSum
21                 (
22                     fsiResidualOld
23                    &(fsiResidual - fsiResidualOld)
24                 )
25                /(
26                     gSum
27                     (
28                         (fsiResidual - fsiResidualOld)
29                        &(fsiResidual - fsiResidualOld)
30                     )
31                 )
32            );
34         fsiRelaxationFactor = mag(fsiRelaxationFactor);
36         Info << "Current fsi under-relaxation factor (Aitken): "
37             << fsiRelaxationFactor << endl;
39         fluidPatchPointsDisplOld = fluidPatchPointsDispl;
41         fluidPatchPointsDispl +=
42             fsiRelaxationFactor*fsiResidual;
43     }
44 //     else if (couplingScheme == "IQN-ILS")
45 //     {
47 //     }