particleFoam, rhoParticleFoam: Replaced by solvers::functions with the fvModel functionObject
particleFoam has been superseded and replaced by the more general functions
solver module executed by the foamRun application:
foamRun -solver functions
The incompressibleFluid solver specified by either the subSolver or if not
present the solver entry in the controlDict is instantiated to provide the
physical fields needed by fvModel functionObject in which the clouds fvModel is
selected to evolve the Lagrangian particles. See:
tutorials/modules/incompressibleFluid/hopperParticles
tutorials/modules/incompressibleFluid/mixerVessel2DParticles
rhoParticleFoam has been superseded and replaced by the more general functions
solver module executed by the foamRun application:
foamRun -solver functions
The isothermalFluid solver specified by either the subSolver or if not present
the solver entry in the controlDict is instantiated to provide the physical
fields needed by fvModel functionObject in which the clouds fvModel is selected
to evolve the Lagrangian particles.
This commit is contained in:
@ -1,3 +0,0 @@
|
|||||||
particleFoam.C
|
|
||||||
|
|
||||||
EXE = $(FOAM_APPBIN)/particleFoam
|
|
||||||
@ -1,20 +0,0 @@
|
|||||||
EXE_INC = \
|
|
||||||
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
|
|
||||||
-I$(LIB_SRC)/lagrangian/parcel/lnInclude \
|
|
||||||
-I$(LIB_SRC)/MomentumTransportModels/momentumTransportModels/lnInclude \
|
|
||||||
-I$(LIB_SRC)/MomentumTransportModels/incompressible/lnInclude \
|
|
||||||
-I$(LIB_SRC)/physicalProperties/lnInclude \
|
|
||||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
|
||||||
-I$(LIB_SRC)/surfaceFilmModels/lnInclude \
|
|
||||||
-I$(LIB_SRC)/meshTools/lnInclude
|
|
||||||
|
|
||||||
EXE_LIBS = \
|
|
||||||
-llagrangian \
|
|
||||||
-llagrangianParcel \
|
|
||||||
-llagrangianParcelTurbulence \
|
|
||||||
-lmomentumTransportModels \
|
|
||||||
-lincompressibleMomentumTransportModels \
|
|
||||||
-lphysicalProperties \
|
|
||||||
-lfiniteVolume \
|
|
||||||
-lsurfaceFilmModels \
|
|
||||||
-lmeshTools
|
|
||||||
@ -1,95 +0,0 @@
|
|||||||
#include "readGravitationalAcceleration.H"
|
|
||||||
|
|
||||||
Info<< "Reading field U\n" << endl;
|
|
||||||
volVectorField U
|
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
"U",
|
|
||||||
runTime.name(),
|
|
||||||
mesh,
|
|
||||||
IOobject::MUST_READ,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
),
|
|
||||||
mesh
|
|
||||||
);
|
|
||||||
|
|
||||||
#include "createPhi.H"
|
|
||||||
|
|
||||||
|
|
||||||
autoPtr<viscosityModel> viscosity(viscosityModel::New(mesh));
|
|
||||||
|
|
||||||
dimensionedScalar rhoInfValue("rhoInf", dimDensity, viscosity);
|
|
||||||
|
|
||||||
volScalarField rhoInf
|
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
"rho",
|
|
||||||
runTime.name(),
|
|
||||||
mesh,
|
|
||||||
IOobject::NO_READ,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
),
|
|
||||||
mesh,
|
|
||||||
rhoInfValue
|
|
||||||
);
|
|
||||||
|
|
||||||
autoPtr<incompressible::momentumTransportModel> turbulence
|
|
||||||
(
|
|
||||||
incompressible::momentumTransportModel::New(U, phi, viscosity)
|
|
||||||
);
|
|
||||||
|
|
||||||
volScalarField mu
|
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
"mu",
|
|
||||||
runTime.name(),
|
|
||||||
mesh,
|
|
||||||
IOobject::NO_READ,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
),
|
|
||||||
viscosity->nu()*rhoInfValue
|
|
||||||
);
|
|
||||||
|
|
||||||
Info<< "Constructing clouds" << endl;
|
|
||||||
parcelClouds& clouds = parcelClouds::New(mesh, rhoInf, U, mu, g);
|
|
||||||
|
|
||||||
typeIOobject<volVectorField> Hheader
|
|
||||||
(
|
|
||||||
"H",
|
|
||||||
runTime.name(),
|
|
||||||
mesh,
|
|
||||||
IOobject::MUST_READ,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
);
|
|
||||||
|
|
||||||
autoPtr<volVectorField> HPtr;
|
|
||||||
|
|
||||||
if (Hheader.headerOk())
|
|
||||||
{
|
|
||||||
Info<< "\nReading field H\n" << endl;
|
|
||||||
|
|
||||||
HPtr.reset(new volVectorField (Hheader, mesh));
|
|
||||||
}
|
|
||||||
|
|
||||||
typeIOobject<volVectorField> HdotGradHheader
|
|
||||||
(
|
|
||||||
"HdotGradH",
|
|
||||||
runTime.name(),
|
|
||||||
mesh,
|
|
||||||
IOobject::MUST_READ,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
);
|
|
||||||
|
|
||||||
autoPtr<volVectorField> HdotGradHPtr;
|
|
||||||
|
|
||||||
if (HdotGradHheader.headerOk())
|
|
||||||
{
|
|
||||||
Info<< "Reading field HdotGradH" << endl;
|
|
||||||
|
|
||||||
HdotGradHPtr.reset(new volVectorField(HdotGradHheader, mesh));
|
|
||||||
}
|
|
||||||
|
|
||||||
#include "createNonInertialFrameFields.H"
|
|
||||||
@ -1,88 +0,0 @@
|
|||||||
Info<< "Reading non-inertial frame fields" << endl;
|
|
||||||
|
|
||||||
typeIOobject<uniformDimensionedVectorField> linearAccelerationHeader
|
|
||||||
(
|
|
||||||
"linearAcceleration",
|
|
||||||
runTime.name(),
|
|
||||||
mesh,
|
|
||||||
IOobject::MUST_READ,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
);
|
|
||||||
|
|
||||||
autoPtr<uniformDimensionedVectorField> linearAccelerationPtr;
|
|
||||||
|
|
||||||
if (linearAccelerationHeader.headerOk())
|
|
||||||
{
|
|
||||||
Info<< " Reading " << linearAccelerationHeader.name() << endl;
|
|
||||||
|
|
||||||
linearAccelerationPtr.reset
|
|
||||||
(
|
|
||||||
new uniformDimensionedVectorField(linearAccelerationHeader)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
typeIOobject<uniformDimensionedVectorField> angularVelocityHeader
|
|
||||||
(
|
|
||||||
"angularVelocity",
|
|
||||||
runTime.name(),
|
|
||||||
mesh,
|
|
||||||
IOobject::MUST_READ,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
);
|
|
||||||
|
|
||||||
autoPtr<uniformDimensionedVectorField> angularVelocityPtr;
|
|
||||||
|
|
||||||
if (angularVelocityHeader.headerOk())
|
|
||||||
{
|
|
||||||
Info<< " Reading " << angularVelocityHeader.name() << endl;
|
|
||||||
|
|
||||||
angularVelocityPtr.reset
|
|
||||||
(
|
|
||||||
new uniformDimensionedVectorField(angularVelocityHeader)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
typeIOobject<uniformDimensionedVectorField> angularAccelerationHeader
|
|
||||||
(
|
|
||||||
"angularAcceleration",
|
|
||||||
runTime.name(),
|
|
||||||
mesh,
|
|
||||||
IOobject::MUST_READ,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
);
|
|
||||||
|
|
||||||
autoPtr<uniformDimensionedVectorField> angularAccelerationPtr;
|
|
||||||
|
|
||||||
if (angularAccelerationHeader.headerOk())
|
|
||||||
{
|
|
||||||
Info<< " Reading " << angularAccelerationHeader.name() << endl;
|
|
||||||
|
|
||||||
angularAccelerationPtr.reset
|
|
||||||
(
|
|
||||||
new uniformDimensionedVectorField(angularAccelerationHeader)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
typeIOobject<uniformDimensionedVectorField> centreOfRotationHeader
|
|
||||||
(
|
|
||||||
"centreOfRotation",
|
|
||||||
runTime.name(),
|
|
||||||
mesh,
|
|
||||||
IOobject::MUST_READ,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
);
|
|
||||||
|
|
||||||
autoPtr<uniformDimensionedVectorField> centreOfRotationPtr;
|
|
||||||
|
|
||||||
if (centreOfRotationHeader.headerOk())
|
|
||||||
{
|
|
||||||
Info<< " Reading " << centreOfRotationHeader.name() << endl;
|
|
||||||
|
|
||||||
centreOfRotationPtr.reset
|
|
||||||
(
|
|
||||||
new uniformDimensionedVectorField(centreOfRotationHeader)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@ -1,93 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
========= |
|
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
\\ / O peration | Website: https://openfoam.org
|
|
||||||
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
|
||||||
\\/ M anipulation |
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
License
|
|
||||||
This file is part of OpenFOAM.
|
|
||||||
|
|
||||||
OpenFOAM is free software: you can redistribute it and/or modify it
|
|
||||||
under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
Application
|
|
||||||
particleFoam
|
|
||||||
|
|
||||||
Description
|
|
||||||
Transient solver for the transport of a particles through an incompressible
|
|
||||||
carrier phase. Does not evolve the carrier; uses pre-computed carrier
|
|
||||||
property fields.
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
#include "fvCFD.H"
|
|
||||||
#include "viscosityModel.H"
|
|
||||||
#include "incompressibleMomentumTransportModels.H"
|
|
||||||
#include "parcelClouds.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
|
||||||
{
|
|
||||||
#define NO_CONTROL
|
|
||||||
#include "postProcess.H"
|
|
||||||
|
|
||||||
#include "setRootCaseLists.H"
|
|
||||||
#include "createTime.H"
|
|
||||||
#include "createMesh.H"
|
|
||||||
#include "createFields.H"
|
|
||||||
#include "CourantNo.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
Info<< "\nStarting time loop\n" << endl;
|
|
||||||
|
|
||||||
while (runTime.run())
|
|
||||||
{
|
|
||||||
clouds.storeGlobalPositions();
|
|
||||||
|
|
||||||
// Update the mesh for topology change, mesh to mesh mapping
|
|
||||||
mesh.update();
|
|
||||||
|
|
||||||
runTime++;
|
|
||||||
|
|
||||||
Info<< "Time = " << runTime.userTimeName() << nl << endl;
|
|
||||||
|
|
||||||
// Move the mesh
|
|
||||||
mesh.move();
|
|
||||||
|
|
||||||
if (mesh.changing())
|
|
||||||
{
|
|
||||||
U.correctBoundaryConditions();
|
|
||||||
}
|
|
||||||
|
|
||||||
viscosity->correct();
|
|
||||||
mu = viscosity->nu()*rhoInfValue;
|
|
||||||
|
|
||||||
clouds.evolve();
|
|
||||||
|
|
||||||
runTime.write();
|
|
||||||
|
|
||||||
Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
|
|
||||||
<< " ClockTime = " << runTime.elapsedClockTime() << " s"
|
|
||||||
<< nl << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
Info<< "End\n" << endl;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
rhoParticleFoam.C
|
|
||||||
|
|
||||||
EXE = $(FOAM_APPBIN)/rhoParticleFoam
|
|
||||||
@ -1,26 +0,0 @@
|
|||||||
EXE_INC = \
|
|
||||||
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
|
|
||||||
-I$(LIB_SRC)/lagrangian/parcel/lnInclude \
|
|
||||||
-I$(LIB_SRC)/physicalProperties/lnInclude \
|
|
||||||
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
|
|
||||||
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
|
||||||
-I$(LIB_SRC)/thermophysicalModels/multicomponentThermo/lnInclude \
|
|
||||||
-I$(LIB_SRC)/MomentumTransportModels/momentumTransportModels/lnInclude \
|
|
||||||
-I$(LIB_SRC)/MomentumTransportModels/compressible/lnInclude \
|
|
||||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
|
||||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
|
||||||
-I$(LIB_SRC)/surfaceFilmModels/lnInclude
|
|
||||||
|
|
||||||
EXE_LIBS = \
|
|
||||||
-llagrangian \
|
|
||||||
-llagrangianParcel \
|
|
||||||
-llagrangianParcelTurbulence \
|
|
||||||
-lfluidThermophysicalModels \
|
|
||||||
-lspecie \
|
|
||||||
-lmomentumTransportModels \
|
|
||||||
-lcompressibleMomentumTransportModels \
|
|
||||||
-lfiniteVolume \
|
|
||||||
-lfvModels \
|
|
||||||
-lfvConstraints \
|
|
||||||
-lmeshTools \
|
|
||||||
-lsurfaceFilmModels
|
|
||||||
@ -1,53 +0,0 @@
|
|||||||
#include "readGravitationalAcceleration.H"
|
|
||||||
|
|
||||||
Info<< "Reading thermophysical properties\n" << endl;
|
|
||||||
|
|
||||||
autoPtr<fluidThermo> pThermo
|
|
||||||
(
|
|
||||||
fluidThermo::New(mesh)
|
|
||||||
);
|
|
||||||
fluidThermo& thermo = pThermo();
|
|
||||||
|
|
||||||
volScalarField rho
|
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
"rho",
|
|
||||||
runTime.name(),
|
|
||||||
mesh,
|
|
||||||
IOobject::NO_READ,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
),
|
|
||||||
thermo.renameRho()
|
|
||||||
);
|
|
||||||
|
|
||||||
Info<< "\nReading field U\n" << endl;
|
|
||||||
volVectorField U
|
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
"U",
|
|
||||||
runTime.name(),
|
|
||||||
mesh,
|
|
||||||
IOobject::MUST_READ,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
),
|
|
||||||
mesh
|
|
||||||
);
|
|
||||||
|
|
||||||
#include "compressibleCreatePhi.H"
|
|
||||||
|
|
||||||
Info<< "Creating turbulence model\n" << endl;
|
|
||||||
autoPtr<compressible::momentumTransportModel> turbulence
|
|
||||||
(
|
|
||||||
compressible::momentumTransportModel::New
|
|
||||||
(
|
|
||||||
rho,
|
|
||||||
U,
|
|
||||||
phi,
|
|
||||||
thermo
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
Info<< "Constructing clouds" << endl;
|
|
||||||
parcelClouds& clouds = parcelClouds::New(mesh, rho, U, g, thermo);
|
|
||||||
@ -1,89 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
========= |
|
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
\\ / O peration | Website: https://openfoam.org
|
|
||||||
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
|
||||||
\\/ M anipulation |
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
License
|
|
||||||
This file is part of OpenFOAM.
|
|
||||||
|
|
||||||
OpenFOAM is free software: you can redistribute it and/or modify it
|
|
||||||
under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
Application
|
|
||||||
rhoParticleFoam
|
|
||||||
|
|
||||||
Description
|
|
||||||
Transient solver for the transport of a particles through an compressible
|
|
||||||
carrier phase. Does not evolve the carrier; uses pre-computed carrier
|
|
||||||
property fields.
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
#include "fvCFD.H"
|
|
||||||
#include "fluidThermo.H"
|
|
||||||
#include "compressibleMomentumTransportModels.H"
|
|
||||||
#include "parcelClouds.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
|
||||||
{
|
|
||||||
#define NO_CONTROL
|
|
||||||
#include "postProcess.H"
|
|
||||||
|
|
||||||
#include "setRootCaseLists.H"
|
|
||||||
#include "createTime.H"
|
|
||||||
#include "createMesh.H"
|
|
||||||
#include "createFields.H"
|
|
||||||
#include "compressibleCourantNo.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
Info<< "\nStarting time loop\n" << endl;
|
|
||||||
|
|
||||||
while (runTime.run())
|
|
||||||
{
|
|
||||||
clouds.storeGlobalPositions();
|
|
||||||
|
|
||||||
mesh.update();
|
|
||||||
|
|
||||||
runTime++;
|
|
||||||
|
|
||||||
Info<< "Time = " << runTime.userTimeName() << nl << endl;
|
|
||||||
|
|
||||||
// Move the mesh
|
|
||||||
mesh.move();
|
|
||||||
|
|
||||||
if (mesh.changing())
|
|
||||||
{
|
|
||||||
U.correctBoundaryConditions();
|
|
||||||
}
|
|
||||||
|
|
||||||
clouds.evolve();
|
|
||||||
|
|
||||||
runTime.write();
|
|
||||||
|
|
||||||
Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
|
|
||||||
<< " ClockTime = " << runTime.elapsedClockTime() << " s"
|
|
||||||
<< nl << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
Info<< "End\n" << endl;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
60
bin/particleFoam
Executable file
60
bin/particleFoam
Executable file
@ -0,0 +1,60 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# ========= |
|
||||||
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
|
# \\ / A nd | Copyright (C) 2023 OpenFOAM Foundation
|
||||||
|
# \\/ M anipulation |
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# License
|
||||||
|
# This file is part of OpenFOAM.
|
||||||
|
#
|
||||||
|
# OpenFOAM is free software: you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
# for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# Script
|
||||||
|
# particleFoam
|
||||||
|
#
|
||||||
|
# Description
|
||||||
|
# Script to inform the user that particleFoam has been superseded
|
||||||
|
# and replaced by the more general functions solver module
|
||||||
|
# executed by the foamRun application.
|
||||||
|
#
|
||||||
|
# The incompressibleFluid solver specified by either the subSolver or if not
|
||||||
|
# present the solver entry in the controlDict is instantiated to provide the
|
||||||
|
# physical fields needed by fvModel functionObject in which the clouds
|
||||||
|
# fvModel is selected to evolve the Lagrangian particles. See:
|
||||||
|
#
|
||||||
|
# tutorials/modules/incompressibleFluid/hopperParticles
|
||||||
|
# tutorials/modules/incompressibleFluid/mixerVessel2DParticles
|
||||||
|
#
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
cat <<EOF
|
||||||
|
|
||||||
|
particleFoam has been superseded and replaced by the more general functions
|
||||||
|
solver module executed by the foamRun application:
|
||||||
|
|
||||||
|
foamRun -solver functions
|
||||||
|
|
||||||
|
The incompressibleFluid solver specified by either the subSolver or if not
|
||||||
|
present the solver entry in the controlDict is instantiated to provide the
|
||||||
|
physical fields needed by fvModel functionObject in which the clouds fvModel is
|
||||||
|
selected to evolve the Lagrangian particles. See:
|
||||||
|
|
||||||
|
tutorials/modules/incompressibleFluid/hopperParticles
|
||||||
|
tutorials/modules/incompressibleFluid/mixerVessel2DParticles
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
54
bin/rhoParticleFoam
Executable file
54
bin/rhoParticleFoam
Executable file
@ -0,0 +1,54 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# ========= |
|
||||||
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
|
# \\ / A nd | Copyright (C) 2023 OpenFOAM Foundation
|
||||||
|
# \\/ M anipulation |
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# License
|
||||||
|
# This file is part of OpenFOAM.
|
||||||
|
#
|
||||||
|
# OpenFOAM is free software: you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
# for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# Script
|
||||||
|
# rhoParticleFoam
|
||||||
|
#
|
||||||
|
# Description
|
||||||
|
# Script to inform the user that rhoParticleFoam has been superseded
|
||||||
|
# and replaced by the more general functions solver module
|
||||||
|
# executed by the foamRun application.
|
||||||
|
#
|
||||||
|
# The isothermalFluid solver specified by either the subSolver or if not
|
||||||
|
# present the solver entry in the controlDict is instantiated to provide the
|
||||||
|
# physical fields needed by fvModel functionObject in which the clouds
|
||||||
|
# fvModel is selected to evolve the Lagrangian particles.
|
||||||
|
#
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
cat <<EOF
|
||||||
|
|
||||||
|
rhoParticleFoam has been superseded and replaced by the more general functions
|
||||||
|
solver module executed by the foamRun application:
|
||||||
|
|
||||||
|
foamRun -solver functions
|
||||||
|
|
||||||
|
The isothermalFluid solver specified by either the subSolver or if not present
|
||||||
|
the solver entry in the controlDict is instantiated to provide the physical
|
||||||
|
fields needed by fvModel functionObject in which the clouds fvModel is selected
|
||||||
|
to evolve the Lagrangian particles.
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
@ -32,12 +32,12 @@
|
|||||||
#
|
#
|
||||||
# The solver specified by either the subSolver or if not present the solver
|
# The solver specified by either the subSolver or if not present the solver
|
||||||
# entry in the controlDict is instantiated to provide the physical fields
|
# entry in the controlDict is instantiated to provide the physical fields
|
||||||
# needed by the functionObjects. The functionObjects are then instantiated
|
# needed by the functionObjects. The scalarTransport functionObject is then
|
||||||
# from the specifications are read from the functions entry in the
|
# instantiated from the functions entry in the controlDict and executed in a
|
||||||
# controlDict and executed in a time-loop also controlled by entries in
|
# time-loop also controlled by entries in controlDict and the maxDeltaT()
|
||||||
# controlDict and the maxDeltaT() returned by the sub-solver.
|
# returned by the sub-solver. See:
|
||||||
#
|
#
|
||||||
# See tutorials/modules/incompressibleFluid/pitzDailyScalarTransport
|
# tutorials/modules/incompressibleFluid/pitzDailyScalarTransport
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -50,10 +50,10 @@ functions solver module executed by the foamRun application:
|
|||||||
|
|
||||||
The solver specified by either the subSolver or if not present the solver entry
|
The solver specified by either the subSolver or if not present the solver entry
|
||||||
in the controlDict is instantiated to provide the physical fields needed by the
|
in the controlDict is instantiated to provide the physical fields needed by the
|
||||||
functionObjects. The functionObjects are then instantiated from the
|
functionObjects. The scalarTransport functionObject is then instantiated from
|
||||||
specifications are read from the functions entry in the controlDict and executed
|
the functions entry in the controlDict and executed in a time-loop also
|
||||||
in a time-loop also controlled by entries in controlDict and the maxDeltaT()
|
controlled by entries in controlDict and the maxDeltaT() returned by the
|
||||||
returned by the sub-solver. See:
|
sub-solver. See:
|
||||||
|
|
||||||
tutorials/modules/incompressibleFluid/pitzDailyScalarTransport
|
tutorials/modules/incompressibleFluid/pitzDailyScalarTransport
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,6 @@ FoamFile
|
|||||||
{
|
{
|
||||||
format ascii;
|
format ascii;
|
||||||
class volVectorField;
|
class volVectorField;
|
||||||
location "0";
|
|
||||||
object U;
|
object U;
|
||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -24,14 +23,17 @@ boundaryField
|
|||||||
{
|
{
|
||||||
type noSlip;
|
type noSlip;
|
||||||
}
|
}
|
||||||
|
|
||||||
frontAndBack
|
frontAndBack
|
||||||
{
|
{
|
||||||
type noSlip;
|
type noSlip;
|
||||||
}
|
}
|
||||||
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
@ -0,0 +1,43 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
========= |
|
||||||
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
\\ / O peration | Website: https://openfoam.org
|
||||||
|
\\ / A nd | Version: dev
|
||||||
|
\\/ M anipulation |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
format ascii;
|
||||||
|
class volScalarField;
|
||||||
|
object p;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 2 -2 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 0;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
walls
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
|
||||||
|
frontAndBack
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
|
||||||
|
inlet
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
|
||||||
|
outlet
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -14,10 +14,10 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
rhoInf [1 -3 0 0 0 0 0] 1.2;
|
|
||||||
|
|
||||||
viscosityModel constant;
|
viscosityModel constant;
|
||||||
|
|
||||||
nu [0 2 -1 0 0 0 0] 1e-05;
|
nu 1e-05;
|
||||||
|
|
||||||
|
rho 1.2;
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
@ -14,7 +14,11 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
application particleFoam;
|
application foamRun;
|
||||||
|
|
||||||
|
solver functions;
|
||||||
|
|
||||||
|
subSolver incompressibleFluid;
|
||||||
|
|
||||||
startFrom startTime;
|
startFrom startTime;
|
||||||
|
|
||||||
@ -44,4 +48,20 @@ timePrecision 6;
|
|||||||
|
|
||||||
runTimeModifiable yes;
|
runTimeModifiable yes;
|
||||||
|
|
||||||
|
functions
|
||||||
|
{
|
||||||
|
clouds
|
||||||
|
{
|
||||||
|
type fvModel;
|
||||||
|
|
||||||
|
executeAtStart false;
|
||||||
|
|
||||||
|
fvModel
|
||||||
|
{
|
||||||
|
type clouds;
|
||||||
|
libs ("liblagrangianParcel.so");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
@ -14,8 +14,12 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
solvers
|
PIMPLE
|
||||||
{
|
{
|
||||||
|
correctMeshPhi no;
|
||||||
|
|
||||||
|
pRefCell 0;
|
||||||
|
pRefValue 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
@ -22,12 +22,13 @@ boundaryField
|
|||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
value uniform (0 0 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
walls
|
walls
|
||||||
{
|
{
|
||||||
type noSlip;
|
type noSlip;
|
||||||
}
|
}
|
||||||
|
|
||||||
frontAndBack
|
frontAndBack
|
||||||
{
|
{
|
||||||
type noSlip;
|
type noSlip;
|
||||||
@ -0,0 +1,38 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
========= |
|
||||||
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
\\ / O peration | Website: https://openfoam.org
|
||||||
|
\\ / A nd | Version: dev
|
||||||
|
\\/ M anipulation |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
format ascii;
|
||||||
|
class volScalarField;
|
||||||
|
object p;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 2 -2 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 0;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
outlet
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
|
||||||
|
walls
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
|
||||||
|
frontAndBack
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -14,10 +14,10 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
rhoInf [1 -3 0 0 0 0 0] 1.2;
|
|
||||||
|
|
||||||
viscosityModel constant;
|
viscosityModel constant;
|
||||||
|
|
||||||
nu [0 2 -1 0 0 0 0] 1e-05;
|
nu 1e-05;
|
||||||
|
|
||||||
|
rho 1.2;
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
@ -14,7 +14,11 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
application particleFoam;
|
application foamRun;
|
||||||
|
|
||||||
|
solver functions;
|
||||||
|
|
||||||
|
subSolver incompressibleFluid;
|
||||||
|
|
||||||
startFrom startTime;
|
startFrom startTime;
|
||||||
|
|
||||||
@ -44,4 +48,18 @@ timePrecision 6;
|
|||||||
|
|
||||||
runTimeModifiable yes;
|
runTimeModifiable yes;
|
||||||
|
|
||||||
|
functions
|
||||||
|
{
|
||||||
|
clouds
|
||||||
|
{
|
||||||
|
type fvModel;
|
||||||
|
|
||||||
|
fvModel
|
||||||
|
{
|
||||||
|
type clouds;
|
||||||
|
libs ("liblagrangianParcel.so");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
@ -14,8 +14,12 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
solvers
|
PIMPLE
|
||||||
{
|
{
|
||||||
|
correctMeshPhi no;
|
||||||
|
|
||||||
|
pRefCell 0;
|
||||||
|
pRefValue 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,40 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
========= |
|
||||||
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
\\ / O peration | Website: https://openfoam.org
|
||||||
|
\\ / A nd | Version: dev
|
||||||
|
\\/ M anipulation |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
format ascii;
|
||||||
|
class volScalarField;
|
||||||
|
object p;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 2 -2 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 0;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
#includeEtc "caseDicts/setConstraintTypes"
|
||||||
|
|
||||||
|
rotor
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
|
||||||
|
stator
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
|
||||||
|
nonCouple
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -16,9 +16,8 @@ FoamFile
|
|||||||
|
|
||||||
viscosityModel constant;
|
viscosityModel constant;
|
||||||
|
|
||||||
nu [0 2 -1 0 0 0 0] 1e-05;
|
nu 1e-05;
|
||||||
|
|
||||||
rhoInf [1 -3 0 0 0 0 0] 1.2;
|
|
||||||
|
|
||||||
|
rho 1.2;
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
@ -14,7 +14,11 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
application particleFoam;
|
application foamRun;
|
||||||
|
|
||||||
|
solver functions;
|
||||||
|
|
||||||
|
subSolver incompressibleFluid;
|
||||||
|
|
||||||
startFrom startTime;
|
startFrom startTime;
|
||||||
|
|
||||||
@ -44,5 +48,18 @@ timePrecision 6;
|
|||||||
|
|
||||||
runTimeModifiable yes;
|
runTimeModifiable yes;
|
||||||
|
|
||||||
|
functions
|
||||||
|
{
|
||||||
|
clouds
|
||||||
|
{
|
||||||
|
type fvModel;
|
||||||
|
|
||||||
|
fvModel
|
||||||
|
{
|
||||||
|
type clouds;
|
||||||
|
libs ("liblagrangianParcel.so");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
@ -14,5 +14,12 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
PIMPLE
|
||||||
|
{
|
||||||
|
correctMeshPhi no;
|
||||||
|
|
||||||
|
pRefCell 0;
|
||||||
|
pRefValue 0;
|
||||||
|
}
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
Reference in New Issue
Block a user