applications/test: Replaced fvCFD.H with appropriate include files

This commit is contained in:
Henry Weller
2023-04-01 16:50:10 +01:00
parent e66484a82d
commit bcddcc89f6
9 changed files with 62 additions and 36 deletions

View File

@ -29,11 +29,14 @@ Description
\*---------------------------------------------------------------------------*/
#include "fvCFD.H"
#include "argList.H"
#include "volFields.H"
#include "GAMGAgglomeration.H"
#include "OFstream.H"
#include "meshTools.H"
using namespace Foam;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Main program:

View File

@ -9,11 +9,11 @@ FoamFile
{
format ascii;
class dictionary;
object testDict;
object codesStreamDict1;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// values from outer-scope
// Values from outer-scope
begIter 0;
endIter 200;
@ -24,7 +24,7 @@ writeInterval #codeStream
codeInclude
#{
#include "fvCFD.H"
// #include ".H"
#};
codeOptions
@ -45,13 +45,12 @@ writeInterval #codeStream
code
#{
label interval = ($endIter - $begIter);
// label nDumps = $nDumps;
label nDumps = someCode();
os << (interval / nDumps);
#};
};
// play with cleanup
// Play with cleanup
#remove begIter
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -22,20 +22,24 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Application
icofoam
Test-cyclic
Description
Incompressible CFD code
Test application for cyclic patches
\*---------------------------------------------------------------------------*/
#include "fvCFD.H"
#include "argList.H"
#include "volFields.H"
#include "surfaceFields.H"
#include "fvcDiv.H"
using namespace Foam;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
int main(int argc, char *argv[])
{
#include "setRootCase.H"
#include "createTime.H"
@ -44,7 +48,7 @@ int main(int argc, char *argv[])
Info<< polyPatch::constraintTypes() << endl;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Info<< nl << "Starting tests" << endl;

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -22,14 +22,19 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Application
test
Test-fvc
Description
Finite volume method test code.
\*---------------------------------------------------------------------------*/
#include "fvCFD.H"
#include "argList.H"
#include "volFields.H"
#include "fvcGrad.H"
#include "fvcCurl.H"
using namespace Foam;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -22,16 +22,19 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Application
testPassiveParticle
Test-passiveParticle
Description
Test cloud of passive particles.
\*---------------------------------------------------------------------------*/
#include "fvCFD.H"
#include "argList.H"
#include "fvMesh.H"
#include "passiveParticleCloud.H"
using namespace Foam;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
int main(int argc, char *argv[])
@ -59,7 +62,7 @@ int main(int argc, char *argv[])
forAllConstIter(passiveParticleCloud, particles, iter)
{
Pout<< " " << iter().position() << " cell:" << iter().cell()
Pout<< " " << iter().position(mesh) << " cell:" << iter().cell()
<< " origProc:" << iter().origProc()
<< " origId:" << iter().origId()
<< endl;
@ -82,7 +85,7 @@ int main(int argc, char *argv[])
forAllConstIter(passiveParticleCloud, particles, iter)
{
Pout<< " " << iter().position() << " cell:" << iter().cell()
Pout<< " " << iter().position(mesh) << " cell:" << iter().cell()
<< " origProc:" << iter().origProc()
<< " origId:" << iter().origId()
<< endl;

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -29,15 +29,16 @@ Description
\*---------------------------------------------------------------------------*/
#include "fvCFD.H"
#include "pointMesh.H"
#include "argList.H"
#include "fvMesh.H"
#include "pointFields.H"
using namespace Foam;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
int main(int argc, char *argv[])
{
#include "setRootCase.H"
#include "createTime.H"

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2012-2022 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -26,7 +26,10 @@ Application
\*---------------------------------------------------------------------------*/
#include "fvCFD.H"
#include "argList.H"
#include "fvcReconstruct.H"
using namespace Foam;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -26,8 +26,14 @@ Application
\*---------------------------------------------------------------------------*/
#include "fvCFD.H"
#include "transformGeometricField.H"
#include "argList.H"
#include "fvcFlux.H"
#include "fvmDdt.H"
#include "fvmDiv.H"
#include "fvmLaplacian.H"
#include "zeroGradientFvPatchFields.H"
using namespace Foam;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -26,10 +26,12 @@ Application
\*---------------------------------------------------------------------------*/
#include "fvCFD.H"
#include "argList.H"
#include "timeSelector.H"
#include "volPointInterpolation.H"
using namespace Foam;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
template<class Type>