Fixed URL for libccmio-2.6.1 (bug report #5 by Thomas Oliveira)
[foam-extend-3.2.git] / applications / solvers / solidMechanics / icoFsiElasticNonLinULSolidFoam / readFsiControls.H
blobdf139c64bfd7f6fa6896c5da91887b6c7e18f953
1 word couplingScheme;
3 if (couplingProperties.found("couplingScheme"))
5     couplingScheme = word(couplingProperties.lookup("couplingScheme"));
7     if
8     (
9         (couplingScheme == "IQN-ILS")
10      || (couplingScheme == "Aitken")
11      || (couplingScheme == "FixedRelaxation")
12     )
13     {
14         Info<< "Selecting coupling scheme " << couplingScheme << endl;
15     }
16     else
17     {
18         FatalErrorIn
19         (
20             "readFsiProperties"
21         )   << "couplingScheme: " << couplingScheme
22             << " is not a valid choice. "
23             << "Options are: IQN-ILS, Aitken, FixedRelaxation"
24             << abort(FatalError);
25     }
28 // scalar couplingReuse = scalar
29 // (
30 //     readScalar
31 //     (
32 //         couplingProperties.lookup("couplingReuse")
33 //     )
34 // );
36 scalar interfaceDeformationLimit
38     readScalar(couplingProperties.lookup("interfaceDeformationLimit"))
42 IOdictionary dynamicMeshDict
44     IOobject
45     (
46         "dynamicMeshDict",
47         runTime.constant(),
48         mesh,
49         IOobject::MUST_READ,
50         IOobject::NO_WRITE,
51         false
52     )
55 // Switch twoDMotion(dynamicMeshDict.lookup("twoDMotion"));
57 scalar fsiRelaxationFactor;
58 scalar fsiRelaxationFactorMin;
60 fsiRelaxationFactorMin = scalar
62     readScalar(couplingProperties.lookup("fsiRelaxationFactor"))
64 fsiRelaxationFactor = fsiRelaxationFactorMin;
66 scalar outerCorrTolerance
68     readScalar(couplingProperties.lookup("outerCorrTolerance"))
71 Switch fsi(couplingProperties.lookup("fsi"));