applications/solvers/lagrangian: Added -postProcess option

See also commit cc455173ff
This commit is contained in:
Henry Weller
2016-05-09 15:55:23 +01:00
parent 0297dd9187
commit 0dc0301da7
26 changed files with 252 additions and 239 deletions

View File

@ -1,3 +1,5 @@
#include "readTransportProperties.H"
Info<< "Reading field p\n" << endl; Info<< "Reading field p\n" << endl;
volScalarField p volScalarField p
( (
@ -29,3 +31,5 @@ volVectorField U
#include "createPhi.H" #include "createPhi.H"
mesh.setFluxRequired(p.name()); mesh.setFluxRequired(p.name());
#include "readTurbulenceProperties.H"

View File

@ -41,16 +41,13 @@ Description
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
#include "setRootCase.H" #include "postProcess.H"
#include "setRootCase.H"
#include "createTime.H" #include "createTime.H"
#include "createMeshNoClear.H" #include "createMeshNoClear.H"
#include "createControl.H"
pisoControl piso(mesh);
#include "readTransportProperties.H"
#include "createFields.H" #include "createFields.H"
#include "readTurbulenceProperties.H"
#include "initContinuityErrs.H" #include "initContinuityErrs.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -53,14 +53,13 @@ int main(int argc, char *argv[])
"specify alternative cloud name. default is 'kinematicCloud'" "specify alternative cloud name. default is 'kinematicCloud'"
); );
#include "postProcess.H"
#include "setRootCase.H" #include "setRootCase.H"
#include "createTime.H" #include "createTime.H"
#include "createMesh.H" #include "createMesh.H"
#include "createControl.H"
pimpleControl pimple(mesh);
#include "createTimeControls.H" #include "createTimeControls.H"
#include "readGravitationalAcceleration.H"
#include "createFields.H" #include "createFields.H"
#include "initContinuityErrs.H" #include "initContinuityErrs.H"

View File

@ -1,3 +1,5 @@
#include "readGravitationalAcceleration.H"
word continuousPhaseName word continuousPhaseName
( (
IOdictionary IOdictionary

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -51,22 +51,17 @@ Description
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
#include "setRootCase.H" #include "postProcess.H"
#include "setRootCase.H"
#include "createTime.H" #include "createTime.H"
#include "createMesh.H" #include "createMesh.H"
#include "createControl.H"
pimpleControl pimple(mesh);
#include "createTimeControls.H" #include "createTimeControls.H"
#include "createRDeltaT.H" #include "createRDeltaT.H"
#include "initContinuityErrs.H"
#include "readGravitationalAcceleration.H"
#include "createFields.H" #include "createFields.H"
#include "createMRF.H"
#include "createFvOptions.H" #include "createFvOptions.H"
#include "createClouds.H" #include "initContinuityErrs.H"
#include "createRadiationModel.H"
turbulence->validate(); turbulence->validate();

View File

@ -1,3 +1,5 @@
#include "readGravitationalAcceleration.H"
Info<< "Creating combustion model\n" << endl; Info<< "Creating combustion model\n" << endl;
autoPtr<combustionModels::psiCombustionModel> combustion autoPtr<combustionModels::psiCombustionModel> combustion
@ -141,3 +143,7 @@ volScalarField dQ
mesh, mesh,
dimensionedScalar("dQ", dimEnergy/dimTime, 0.0) dimensionedScalar("dQ", dimEnergy/dimTime, 0.0)
); );
#include "createMRF.H"
#include "createClouds.H"
#include "createRadiationModel.H"

View File

@ -1,6 +1,8 @@
Info<< "Reading field U\n" << endl; #include "readGravitationalAcceleration.H"
volVectorField U
( Info<< "Reading field U\n" << endl;
volVectorField U
(
IOobject IOobject
( (
"U", "U",
@ -10,21 +12,21 @@
IOobject::AUTO_WRITE IOobject::AUTO_WRITE
), ),
mesh mesh
); );
#include "createPhi.H" #include "createPhi.H"
singlePhaseTransportModel laminarTransport(U, phi); singlePhaseTransportModel laminarTransport(U, phi);
dimensionedScalar rhoInfValue dimensionedScalar rhoInfValue
( (
"rhoInf", "rhoInf",
dimDensity, dimDensity,
laminarTransport laminarTransport
); );
volScalarField rhoInf volScalarField rhoInf
( (
IOobject IOobject
( (
"rho", "rho",
@ -35,15 +37,15 @@
), ),
mesh, mesh,
rhoInfValue rhoInfValue
); );
autoPtr<incompressible::turbulenceModel> turbulence autoPtr<incompressible::turbulenceModel> turbulence
( (
incompressible::turbulenceModel::New(U, phi, laminarTransport) incompressible::turbulenceModel::New(U, phi, laminarTransport)
); );
volScalarField mu volScalarField mu
( (
IOobject IOobject
( (
"mu", "mu",
@ -53,55 +55,55 @@
IOobject::AUTO_WRITE IOobject::AUTO_WRITE
), ),
laminarTransport.nu()*rhoInfValue laminarTransport.nu()*rhoInfValue
); );
word kinematicCloudName("kinematicCloud"); word kinematicCloudName("kinematicCloud");
args.optionReadIfPresent("cloudName", kinematicCloudName); args.optionReadIfPresent("cloudName", kinematicCloudName);
Info<< "Constructing kinematicCloud " << kinematicCloudName << endl; Info<< "Constructing kinematicCloud " << kinematicCloudName << endl;
basicKinematicCollidingCloud kinematicCloud basicKinematicCollidingCloud kinematicCloud
( (
kinematicCloudName, kinematicCloudName,
rhoInf, rhoInf,
U, U,
mu, mu,
g g
); );
IOobject Hheader IOobject Hheader
( (
"H", "H",
runTime.timeName(), runTime.timeName(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ,
IOobject::AUTO_WRITE IOobject::AUTO_WRITE
); );
autoPtr<volVectorField> HPtr; autoPtr<volVectorField> HPtr;
if (Hheader.headerOk()) if (Hheader.headerOk())
{ {
Info<< "\nReading field H\n" << endl; Info<< "\nReading field H\n" << endl;
HPtr.reset(new volVectorField (Hheader, mesh)); HPtr.reset(new volVectorField (Hheader, mesh));
} }
IOobject HdotGradHheader IOobject HdotGradHheader
( (
"HdotGradH", "HdotGradH",
runTime.timeName(), runTime.timeName(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ,
IOobject::AUTO_WRITE IOobject::AUTO_WRITE
); );
autoPtr<volVectorField> HdotGradHPtr; autoPtr<volVectorField> HdotGradHPtr;
if (HdotGradHheader.headerOk()) if (HdotGradHheader.headerOk())
{ {
Info<< "Reading field HdotGradH" << endl; Info<< "Reading field HdotGradH" << endl;
HdotGradHPtr.reset(new volVectorField(HdotGradHheader, mesh)); HdotGradHPtr.reset(new volVectorField(HdotGradHheader, mesh));
} }
#include "createNonInertialFrameFields.H" #include "createNonInertialFrameFields.H"

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -49,11 +49,12 @@ int main(int argc, char *argv[])
"specify alternative cloud name. default is 'kinematicCloud'" "specify alternative cloud name. default is 'kinematicCloud'"
); );
#include "postProcess.H"
#include "setRootCase.H" #include "setRootCase.H"
#include "createTime.H" #include "createTime.H"
#include "createDynamicFvMesh.H" #include "createDynamicFvMesh.H"
#include "createControl.H"
#include "readGravitationalAcceleration.H"
#include "createFields.H" #include "createFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -48,10 +48,12 @@ int main(int argc, char *argv[])
"specify alternative cloud name. default is 'kinematicCloud'" "specify alternative cloud name. default is 'kinematicCloud'"
); );
#include "postProcess.H"
#include "setRootCase.H" #include "setRootCase.H"
#include "createTime.H" #include "createTime.H"
#include "createMesh.H" #include "createMesh.H"
#include "readGravitationalAcceleration.H" #include "createControl.H"
#include "createFields.H" #include "createFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -142,3 +142,8 @@ volScalarField dQ
mesh, mesh,
dimensionedScalar("dQ", dimEnergy/dimTime, 0.0) dimensionedScalar("dQ", dimEnergy/dimTime, 0.0)
); );
#include "createMRF.H"
#include "createClouds.H"
#include "createRadiationModel.H"
#include "createSurfaceFilmModel.H"

View File

@ -44,23 +44,18 @@ Description
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
#include "setRootCase.H" #include "postProcess.H"
#include "setRootCase.H"
#include "createTime.H" #include "createTime.H"
#include "createMesh.H" #include "createMesh.H"
#include "createControl.H"
pimpleControl pimple(mesh);
#include "createFields.H"
#include "createMRF.H"
#include "createFvOptions.H"
#include "createClouds.H"
#include "createRadiationModel.H"
#include "createSurfaceFilmModel.H"
#include "initContinuityErrs.H"
#include "createTimeControls.H" #include "createTimeControls.H"
#include "createFields.H"
#include "createFvOptions.H"
#include "compressibleCourantNo.H" #include "compressibleCourantNo.H"
#include "setInitialDeltaT.H" #include "setInitialDeltaT.H"
#include "initContinuityErrs.H"
turbulence->validate(); turbulence->validate();

View File

@ -1,4 +1,5 @@
EXE_INC = \ EXE_INC = \
-I. \
-I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \
-I${LIB_SRC}/meshTools/lnInclude \ -I${LIB_SRC}/meshTools/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \ -I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \

View File

@ -0,0 +1,2 @@
const volScalarField& T = thermo.T();
const volScalarField& psi = thermo.psi();

View File

@ -1,3 +1,5 @@
#include "readGravitationalAcceleration.H"
Info<< "Creating combustion model\n" << endl; Info<< "Creating combustion model\n" << endl;
autoPtr<combustionModels::rhoCombustionModel> combustion autoPtr<combustionModels::rhoCombustionModel> combustion
@ -24,8 +26,6 @@ if (!composition.contains(inertSpecie))
} }
volScalarField& p = thermo.p(); volScalarField& p = thermo.p();
const volScalarField& T = thermo.T();
const volScalarField& psi = thermo.psi();
volScalarField rho volScalarField rho
( (
@ -133,3 +133,7 @@ volScalarField dQ
mesh, mesh,
dimensionedScalar("dQ", dimEnergy/dimTime, 0.0) dimensionedScalar("dQ", dimEnergy/dimTime, 0.0)
); );
#include "createMRF.H"
#include "createRadiationModel.H"
#include "createClouds.H"

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -46,22 +46,18 @@ Description
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
#include "setRootCase.H" #include "postProcess.H"
#include "setRootCase.H"
#include "createTime.H" #include "createTime.H"
#include "createMesh.H" #include "createMesh.H"
#include "readGravitationalAcceleration.H" #include "createControl.H"
pimpleControl pimple(mesh);
#include "createTimeControls.H" #include "createTimeControls.H"
#include "createRDeltaT.H" #include "createRDeltaT.H"
#include "initContinuityErrs.H"
#include "createFields.H" #include "createFields.H"
#include "createRadiationModel.H" #include "createFieldRefs.H"
#include "createClouds.H"
#include "createMRF.H"
#include "createFvOptions.H" #include "createFvOptions.H"
#include "initContinuityErrs.H"
turbulence->validate(); turbulence->validate();

View File

@ -1,4 +1,5 @@
EXE_INC = \ EXE_INC = \
-I. \
-I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \
-I${LIB_SRC}/meshTools/lnInclude \ -I${LIB_SRC}/meshTools/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \ -I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \

View File

@ -1,3 +1,5 @@
#include "readGravitationalAcceleration.H"
Info<< "Creating combustion model\n" << endl; Info<< "Creating combustion model\n" << endl;
autoPtr<combustionModels::rhoCombustionModel> combustion autoPtr<combustionModels::rhoCombustionModel> combustion
@ -24,8 +26,6 @@ if (!composition.contains(inertSpecie))
} }
volScalarField& p = thermo.p(); volScalarField& p = thermo.p();
const volScalarField& T = thermo.T();
const volScalarField& psi = thermo.psi();
volScalarField rho volScalarField rho
( (
@ -117,3 +117,7 @@ volScalarField dQ
mesh, mesh,
dimensionedScalar("dQ", dimEnergy/dimTime, 0.0) dimensionedScalar("dQ", dimEnergy/dimTime, 0.0)
); );
#include "createMRF.H"
#include "createRadiationModel.H"
#include "createClouds.H"

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -45,18 +45,14 @@ Description
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
#include "setRootCase.H" #include "postProcess.H"
#include "setRootCase.H"
#include "createTime.H" #include "createTime.H"
#include "createMesh.H" #include "createMesh.H"
#include "readGravitationalAcceleration.H" #include "createControl.H"
simpleControl simple(mesh);
#include "createFields.H" #include "createFields.H"
#include "createRadiationModel.H" #include "createFieldRefs.H"
#include "createClouds.H"
#include "createMRF.H"
#include "createFvOptions.H" #include "createFvOptions.H"
#include "initContinuityErrs.H" #include "initContinuityErrs.H"

View File

@ -1,4 +1,5 @@
EXE_INC = \ EXE_INC = \
-I. \
-I../reactingParcelFoam \ -I../reactingParcelFoam \
-I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \
-I${LIB_SRC}/meshTools/lnInclude \ -I${LIB_SRC}/meshTools/lnInclude \

View File

@ -1,3 +1,5 @@
#include "readGravitationalAcceleration.H"
Info<< "Creating combustion model\n" << endl; Info<< "Creating combustion model\n" << endl;
autoPtr<combustionModels::psiCombustionModel> combustion autoPtr<combustionModels::psiCombustionModel> combustion
@ -24,8 +26,6 @@ if (!composition.contains(inertSpecie))
} }
volScalarField& p = thermo.p(); volScalarField& p = thermo.p();
const volScalarField& T = thermo.T();
const volScalarField& psi = thermo.psi();
volScalarField rho volScalarField rho
( (
@ -131,3 +131,7 @@ volScalarField dQ
mesh, mesh,
dimensionedScalar("dQ", dimEnergy/dimTime, 0.0) dimensionedScalar("dQ", dimEnergy/dimTime, 0.0)
); );
#include "createMRF.H"
#include "createClouds.H"
#include "createRadiationModel.H"

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2015-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -45,23 +45,20 @@ Description
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
#include "postProcess.H"
#include "setRootCase.H" #include "setRootCase.H"
#include "createTime.H" #include "createTime.H"
#include "createDynamicFvMesh.H" #include "createDynamicFvMesh.H"
#include "initContinuityErrs.H" #include "createControl.H"
pimpleControl pimple(mesh);
#include "createControls.H" #include "createControls.H"
#include "readGravitationalAcceleration.H"
#include "createFields.H" #include "createFields.H"
#include "createFieldRefs.H"
#include "createRhoUf.H" #include "createRhoUf.H"
#include "createMRF.H"
#include "createFvOptions.H" #include "createFvOptions.H"
#include "createClouds.H"
#include "createRadiationModel.H"
#include "compressibleCourantNo.H" #include "compressibleCourantNo.H"
#include "setInitialDeltaT.H" #include "setInitialDeltaT.H"
#include "initContinuityErrs.H"
turbulence->validate(); turbulence->validate();

View File

@ -1,4 +1,5 @@
EXE_INC = \ EXE_INC = \
-I. \
-I../sprayDyMFoam \ -I../sprayDyMFoam \
-I.. \ -I.. \
-I../../reactingParcelFoam \ -I../../reactingParcelFoam \

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -45,24 +45,22 @@ Description
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
#include "setRootCase.H" #define CREATE_TIME createEngineTime.H
#define CREATE_MESH createEngineMesh.H
#include "postProcess.H"
#include "setRootCase.H"
#include "createEngineTime.H" #include "createEngineTime.H"
#include "createEngineMesh.H" #include "createEngineMesh.H"
#include "createControl.H"
pimpleControl pimple(mesh); #include "readEngineTimeControls.H"
#include "readGravitationalAcceleration.H"
#include "createFields.H" #include "createFields.H"
#include "createMRF.H" #include "createFieldRefs.H"
#include "createFvOptions.H" #include "createFvOptions.H"
#include "createRhoUf.H" #include "createRhoUf.H"
#include "createClouds.H"
#include "createRadiationModel.H"
#include "initContinuityErrs.H"
#include "readEngineTimeControls.H"
#include "compressibleCourantNo.H" #include "compressibleCourantNo.H"
#include "setInitialDeltaT.H" #include "setInitialDeltaT.H"
#include "initContinuityErrs.H"
#include "startSummary.H" #include "startSummary.H"
turbulence->validate(); turbulence->validate();

View File

@ -43,23 +43,19 @@ Description
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
#include "setRootCase.H" #include "postProcess.H"
#include "setRootCase.H"
#include "createTime.H" #include "createTime.H"
#include "createMesh.H" #include "createMesh.H"
#include "createControl.H"
pimpleControl pimple(mesh);
#include "readGravitationalAcceleration.H"
#include "createFields.H"
#include "createMRF.H"
#include "createFvOptions.H"
#include "createClouds.H"
#include "createRadiationModel.H"
#include "initContinuityErrs.H"
#include "createTimeControls.H" #include "createTimeControls.H"
#include "createFields.H"
#include "createFieldRefs.H"
#include "createFvOptions.H"
#include "compressibleCourantNo.H" #include "compressibleCourantNo.H"
#include "setInitialDeltaT.H" #include "setInitialDeltaT.H"
#include "initContinuityErrs.H"
turbulence->validate(); turbulence->validate();

View File

@ -1,13 +1,15 @@
Info<< "Reading thermophysical properties\n" << endl; #include "readGravitationalAcceleration.H"
autoPtr<psiThermo> pThermo Info<< "Reading thermophysical properties\n" << endl;
(
autoPtr<psiThermo> pThermo
(
psiThermo::New(mesh) psiThermo::New(mesh)
); );
psiThermo& thermo = pThermo(); psiThermo& thermo = pThermo();
volScalarField rho volScalarField rho
( (
IOobject IOobject
( (
"rho", "rho",
@ -17,11 +19,11 @@
IOobject::AUTO_WRITE IOobject::AUTO_WRITE
), ),
thermo.rho() thermo.rho()
); );
Info<< "\nReading field U\n" << endl; Info<< "\nReading field U\n" << endl;
volVectorField U volVectorField U
( (
IOobject IOobject
( (
"U", "U",
@ -31,13 +33,13 @@
IOobject::AUTO_WRITE IOobject::AUTO_WRITE
), ),
mesh mesh
); );
#include "compressibleCreatePhi.H" #include "compressibleCreatePhi.H"
Info<< "Creating turbulence model\n" << endl; Info<< "Creating turbulence model\n" << endl;
autoPtr<compressible::turbulenceModel> turbulence autoPtr<compressible::turbulenceModel> turbulence
( (
compressible::turbulenceModel::New compressible::turbulenceModel::New
( (
rho, rho,
@ -45,19 +47,19 @@
phi, phi,
thermo thermo
) )
); );
const word kinematicCloudName const word kinematicCloudName
( (
args.optionLookupOrDefault<word>("cloudName", "kinematicCloud") args.optionLookupOrDefault<word>("cloudName", "kinematicCloud")
); );
Info<< "Constructing kinematicCloud " << kinematicCloudName << endl; Info<< "Constructing kinematicCloud " << kinematicCloudName << endl;
basicKinematicCloud kinematicCloud basicKinematicCloud kinematicCloud
( (
kinematicCloudName, kinematicCloudName,
rho, rho,
U, U,
thermo.mu(), thermo.mu(),
g g
); );

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -48,10 +48,12 @@ int main(int argc, char *argv[])
"specify alternative cloud name. default is 'kinematicCloud'" "specify alternative cloud name. default is 'kinematicCloud'"
); );
#define NO_CONTROL
#include "postProcess.H"
#include "setRootCase.H" #include "setRootCase.H"
#include "createTime.H" #include "createTime.H"
#include "createMesh.H" #include "createMesh.H"
#include "readGravitationalAcceleration.H"
#include "createFields.H" #include "createFields.H"
#include "compressibleCourantNo.H" #include "compressibleCourantNo.H"