This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/applications/solvers/solidMechanics/icoFsiElasticNonLinULSolidFoam/setInterfaceDisplacement.H
2014-06-01 20:12:52 +02:00

48 lines
1.2 KiB
C++

Info << "\nTime = " << runTime.timeName()
<< ", iteration: " << outerCorr << endl;
if (outerCorr < 3 || couplingScheme == "FixedRelaxation")
{
Info << "Current fsi under-relaxation factor: "
<< fsiRelaxationFactor << endl;
fluidPatchPointsDisplOld = fluidPatchPointsDispl;
fluidPatchPointsDispl += fsiRelaxationFactor*fsiResidual;
}
else
{
if (couplingScheme == "Aitken")
{
fsiRelaxationFactor =
-fsiRelaxationFactor
*(
gSum
(
fsiResidualOld
&(fsiResidual - fsiResidualOld)
)
/(
gSum
(
(fsiResidual - fsiResidualOld)
&(fsiResidual - fsiResidualOld)
)
)
);
fsiRelaxationFactor = mag(fsiRelaxationFactor);
Info << "Current fsi under-relaxation factor (Aitken): "
<< fsiRelaxationFactor << endl;
fluidPatchPointsDisplOld = fluidPatchPointsDispl;
fluidPatchPointsDispl +=
fsiRelaxationFactor*fsiResidual;
}
// else if (couplingScheme == "IQN-ILS")
// {
// }
}