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/readFsiControls.H

72 lines
1.5 KiB
C
Raw Normal View History

2012-09-11 15:42:55 +00:00
word couplingScheme;
if (couplingProperties.found("couplingScheme"))
{
couplingScheme = word(couplingProperties.lookup("couplingScheme"));
if
2012-09-11 15:42:55 +00:00
(
(couplingScheme == "IQN-ILS")
2012-09-11 15:42:55 +00:00
|| (couplingScheme == "Aitken")
|| (couplingScheme == "FixedRelaxation")
)
{
Info<< "Selecting coupling scheme " << couplingScheme << endl;
}
else
{
FatalErrorIn
(
"readFsiProperties"
) << "couplingScheme: " << couplingScheme
<< " is not a valid choice. "
<< "Options are: IQN-ILS, Aitken, FixedRelaxation"
<< abort(FatalError);
}
}
// scalar couplingReuse = scalar
// (
// readScalar
// (
// couplingProperties.lookup("couplingReuse")
// )
// );
2012-09-11 15:42:55 +00:00
scalar interfaceDeformationLimit
(
readScalar(couplingProperties.lookup("interfaceDeformationLimit"))
);
IOdictionary dynamicMeshDict
(
IOobject
(
"dynamicMeshDict",
runTime.constant(),
mesh,
IOobject::MUST_READ,
IOobject::NO_WRITE,
false
)
);
// Switch twoDMotion(dynamicMeshDict.lookup("twoDMotion"));
scalar fsiRelaxationFactor;
scalar fsiRelaxationFactorMin;
fsiRelaxationFactorMin = scalar
(
readScalar(couplingProperties.lookup("fsiRelaxationFactor"))
);
fsiRelaxationFactor = fsiRelaxationFactorMin;
scalar outerCorrTolerance
(
readScalar(couplingProperties.lookup("outerCorrTolerance"))
);
2012-09-11 15:42:55 +00:00
Switch fsi(couplingProperties.lookup("fsi"));