Merge branch 'master' of ssh://git.code.sf.net/p/foam-extend/foam-extend-3.2
[foam-extend-3.2.git] / applications / solvers / solidMechanics / deprecatedSolvers / icoFsiFoam / icoFsiFoam.C
blob5ed358c5a139d645117933d136506b355610b19d
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | foam-extend: Open Source CFD
4    \\    /   O peration     | Version:     3.2
5     \\  /    A nd           | Web:         http://www.foam-extend.org
6      \\/     M anipulation  | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
8 License
9     This file is part of foam-extend.
11     foam-extend is free software: you can redistribute it and/or modify it
12     under the terms of the GNU General Public License as published by the
13     Free Software Foundation, either version 3 of the License, or (at your
14     option) any later version.
16     foam-extend is distributed in the hope that it will be useful, but
17     WITHOUT ANY WARRANTY; without even the implied warranty of
18     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19     General Public License for more details.
21     You should have received a copy of the GNU General Public License
22     along with foam-extend.  If not, see <http://www.gnu.org/licenses/>.
24 Application
25     icoFoam
27 Description
28     Transient solver for incompressible, laminar flow of Newtonian fluids with
29     mesh motion.  Set up as a fake fluid structure interaction solver
31 \*---------------------------------------------------------------------------*/
33 #include "fvCFD.H"
34 #include "dynamicFvMesh.H"
35 #include "patchToPatchInterpolation.H"
36 #include "tractionDisplacement/tractionDisplacementFvPatchVectorField.H"
37 #include "tetFemMatrices.H"
38 #include "tetPointFields.H"
39 #include "faceTetPolyPatch.H"
40 #include "tetPolyPatchInterpolation.H"
41 #include "fixedValueTetPolyPatchFields.H"
43 #include "pointMesh.H"
44 #include "pointFields.H"
45 #include "volPointInterpolation.H"
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 int main(int argc, char *argv[])
51 #   include "setRootCase.H"
52 #   include "createTime.H"
53 #   include "createDynamicFvMesh.H"
54 #   include "createStressMesh.H"
55 #   include "createFields.H"
56 #   include "createStressFields.H"
57 #   include "readMechanicalProperties.H"
58 #   include "readCouplingProperties.H"
59 #   include "readTimeControls.H"
61 #   include "initContinuityErrs.H"
63 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
65     Info<< "\nStarting time loop\n" << endl;
67     while (runTime.run())
68     {
69 #       include "readPISOControls.H"
70 #       include "readTimeControls.H"
71 #       include "CourantNo.H"
72 #       include "setDeltaT.H"
74         runTime++;
76         Info<< "Time = " << runTime.timeName() << nl << endl;
78 #       include "setPressure.H"
79 #       include "solveSolid.H"
81 #       include "setMotion.H"
82 #       include "solveFluid.H"
84         runTime.write();
86         Info<< "ExecutionTime = "
87             << runTime.elapsedCpuTime()
88             << " s\n\n" << endl;
89     }
91     Info<< "End\n" << endl;
93     return(0);
97 // ************************************************************************* //