Merge branch 'master' of /home/dm4/OpenFOAM/repositories/OpenFOAM-dev

This commit is contained in:
Sergio Ferraris
2014-01-06 09:39:37 +00:00
111 changed files with 1583 additions and 834 deletions

View File

@ -106,7 +106,7 @@ int main(int argc, char *argv[])
zeroGradientFvPatchVectorField::typeName zeroGradientFvPatchVectorField::typeName
); );
cloudVolSUSu.internalField() = - cloudSU.source()/mesh.V(); cloudVolSUSu.internalField() = -cloudSU.source()/mesh.V();
cloudVolSUSu.correctBoundaryConditions(); cloudVolSUSu.correctBoundaryConditions();
cloudSU.source() = vector::zero; cloudSU.source() = vector::zero;

View File

@ -12,4 +12,8 @@ heatTransferModels/heatTransferModel/heatTransferModel.C
heatTransferModels/heatTransferModel/newHeatTransferModel.C heatTransferModels/heatTransferModel/newHeatTransferModel.C
heatTransferModels/RanzMarshall/RanzMarshall.C heatTransferModels/RanzMarshall/RanzMarshall.C
liftModels/liftModel/liftModel.C
liftModels/liftModel/newLiftModel.C
liftModels/constantCoefficient/constantCoefficient.C
LIB = $(FOAM_LIBBIN)/libcompressibleEulerianInterfacialModels LIB = $(FOAM_LIBBIN)/libcompressibleEulerianInterfacialModels

View File

@ -0,0 +1,86 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2014 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/>.
\*---------------------------------------------------------------------------*/
#include "constantCoefficient.H"
#include "addToRunTimeSelectionTable.H"
#include "fvc.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam
{
namespace liftModels
{
defineTypeNameAndDebug(constantCoefficient, 0);
addToRunTimeSelectionTable
(
liftModel,
constantCoefficient,
dictionary
);
}
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::liftModels::constantCoefficient::constantCoefficient
(
const dictionary& dict,
const volScalarField& alpha1,
const phaseModel& phase1,
const phaseModel& phase2
)
:
liftModel(dict, alpha1, phase1, phase2),
Cl_("Cl", dimless, dict.lookup("Cl"))
{}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::liftModels::constantCoefficient::~constantCoefficient()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::tmp<Foam::volVectorField> Foam::liftModels::constantCoefficient::F
(
const volVectorField& U
) const
{
return
Cl_
*(phase1_*phase1_.rho() + phase2_*phase2_.rho())
*(
(phase1_.U() - phase2_.U())
^ fvc::curl(U)
);
}
// ************************************************************************* //

View File

@ -0,0 +1,98 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2014 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/>.
Class
Foam::liftModels::constantCoefficient
Description
SourceFiles
constantCoefficient.C
\*---------------------------------------------------------------------------*/
#ifndef constantCoefficient_H
#define constantCoefficient_H
#include "liftModel.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
namespace liftModels
{
/*---------------------------------------------------------------------------*\
Class constantCoefficient Declaration
\*---------------------------------------------------------------------------*/
class constantCoefficient
:
public liftModel
{
// Private data
//- Constant lift coefficient
dimensionedScalar Cl_;
public:
//- Runtime type information
TypeName("constantCoefficient");
// Constructors
//- Construct from components
constantCoefficient
(
const dictionary& dict,
const volScalarField& alpha1,
const phaseModel& phase1,
const phaseModel& phase2
);
//- Destructor
virtual ~constantCoefficient();
// Member Functions
//- Lift force
tmp<volVectorField> F(const volVectorField& U) const;
};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace liftModels
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#endif
// ************************************************************************* //

View File

@ -0,0 +1,60 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2014 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/>.
\*---------------------------------------------------------------------------*/
#include "liftModel.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam
{
defineTypeNameAndDebug(liftModel, 0);
defineRunTimeSelectionTable(liftModel, dictionary);
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::liftModel::liftModel
(
const dictionary& dict,
const volScalarField& alpha1,
const phaseModel& phase1,
const phaseModel& phase2
)
:
dict_(dict),
alpha1_(alpha1),
phase1_(phase1),
phase2_(phase2)
{}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::liftModel::~liftModel()
{}
// ************************************************************************* //

View File

@ -0,0 +1,127 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2014 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/>.
Class
Foam::liftModel
Description
SourceFiles
liftModel.C
newLiftModel.C
\*---------------------------------------------------------------------------*/
#ifndef liftModel_H
#define liftModel_H
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include "dictionary.H"
#include "phaseModel.H"
#include "runTimeSelectionTables.H"
namespace Foam
{
/*---------------------------------------------------------------------------*\
Class liftModel Declaration
\*---------------------------------------------------------------------------*/
class liftModel
{
protected:
// Protected data
const dictionary& dict_;
const volScalarField& alpha1_;
const phaseModel& phase1_;
const phaseModel& phase2_;
public:
//- Runtime type information
TypeName("liftModel");
// Declare runtime construction
declareRunTimeSelectionTable
(
autoPtr,
liftModel,
dictionary,
(
const dictionary& dict,
const volScalarField& alpha1,
const phaseModel& phase1,
const phaseModel& phase2
),
(dict, alpha1, phase1, phase2)
);
// Constructors
liftModel
(
const dictionary& dict,
const volScalarField& alpha1,
const phaseModel& phase1,
const phaseModel& phase2
);
//- Destructor
virtual ~liftModel();
// Selectors
static autoPtr<liftModel> New
(
const dictionary& dict,
const volScalarField& alpha1,
const phaseModel& phase1,
const phaseModel& phase2
);
// Member Functions
//- Lift force
virtual tmp<volVectorField> F(const volVectorField& U) const = 0;
};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#endif
// ************************************************************************* //

View File

@ -0,0 +1,72 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2014 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/>.
\*---------------------------------------------------------------------------*/
#include "liftModel.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::liftModel> Foam::liftModel::New
(
const dictionary& dict,
const volScalarField& alpha1,
const phaseModel& phase1,
const phaseModel& phase2
)
{
word liftModelType
(
dict.subDict(phase1.name()).lookup("type")
);
Info << "Selecting liftModel for phase "
<< phase1.name()
<< ": "
<< liftModelType << endl;
dictionaryConstructorTable::iterator cstrIter =
dictionaryConstructorTablePtr_->find(liftModelType);
if (cstrIter == dictionaryConstructorTablePtr_->end())
{
FatalErrorIn("liftModel::New")
<< "Unknown liftModelType type "
<< liftModelType << endl << endl
<< "Valid liftModel types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc()
<< exit(FatalError);
}
return
cstrIter()
(
dict.subDict(phase1.name()).subDict(liftModelType + "Coeffs"),
alpha1,
phase1,
phase2
);
}
// ************************************************************************* //

View File

@ -55,8 +55,6 @@ Foam::RASModels::kineticTheoryModel::kineticTheoryModel
phase_(phase), phase_(phase),
draga_(phase.fluid().drag1()),
viscosityModel_ viscosityModel_
( (
kineticTheoryModels::viscosityModel::New kineticTheoryModels::viscosityModel::New
@ -401,7 +399,11 @@ void Foam::RASModels::kineticTheoryModel::correct()
( (
alpha*(1.0 - alpha), alpha*(1.0 - alpha),
phase_.fluid().residualPhaseFraction() phase_.fluid().residualPhaseFraction()
)*draga_.K(magUr + phase_.fluid().residualSlip())/rho )
*phase_.fluid().drag(phase_).K
(
magUr + phase_.fluid().residualSlip()
)/rho
); );
// Eq. 3.25, p. 50 Js = J1 - J2 // Eq. 3.25, p. 50 Js = J1 - J2

View File

@ -82,8 +82,8 @@ class kineticTheoryModel
const phaseModel& phase_; const phaseModel& phase_;
//- Drag model ////- Drag model
const dragModel& draga_; //const dragModel& draga_;
// Sub-models // Sub-models

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -111,13 +111,6 @@ Foam::twoPhaseSystem::twoPhaseSystem
lookup("Cvm") lookup("Cvm")
), ),
Cl_
(
"Cl",
dimless,
lookup("Cl")
),
drag1_ drag1_
( (
dragModel::New dragModel::New
@ -162,6 +155,28 @@ Foam::twoPhaseSystem::twoPhaseSystem
) )
), ),
lift1_
(
liftModel::New
(
subDict("lift"),
phase1_,
phase1_,
phase2_
)
),
lift2_
(
liftModel::New
(
subDict("lift"),
phase2_,
phase2_,
phase1_
)
),
dispersedPhase_(lookup("dispersedPhase")), dispersedPhase_(lookup("dispersedPhase")),
residualPhaseFraction_ residualPhaseFraction_
@ -311,11 +326,28 @@ Foam::tmp<Foam::volVectorField> Foam::twoPhaseSystem::liftForce
); );
volVectorField& liftForce = tliftForce(); volVectorField& liftForce = tliftForce();
volVectorField Ur(phase1_.U() - phase2_.U()); if (dispersedPhase_ == phase1_.name())
{
liftForce = lift1().F(U);
}
else if (dispersedPhase_ == phase2_.name())
{
liftForce = lift2().F(U);
}
else if (dispersedPhase_ == "both")
{
liftForce = liftForce =
Cl_*(phase1_*phase1_.rho() + phase2_*phase2_.rho()) (
*(Ur ^ fvc::curl(U)); phase2_*lift1().F(U)
+ phase1_*lift2().F(U)
);
}
else
{
FatalErrorIn("twoPhaseSystem::liftForce()")
<< "dispersedPhase: " << dispersedPhase_ << " is incorrect"
<< exit(FatalError);
}
// Remove lift at fixed-flux boundaries // Remove lift at fixed-flux boundaries
forAll(phase1_.phi().boundaryField(), patchi) forAll(phase1_.phi().boundaryField(), patchi)
@ -631,7 +663,6 @@ bool Foam::twoPhaseSystem::read()
lookup("sigma") >> sigma_; lookup("sigma") >> sigma_;
lookup("Cvm") >> Cvm_; lookup("Cvm") >> Cvm_;
lookup("Cl") >> Cl_;
// drag1_->read(*this); // drag1_->read(*this);
// drag2_->read(*this); // drag2_->read(*this);

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -45,6 +45,7 @@ SourceFiles
#include "IOdictionary.H" #include "IOdictionary.H"
#include "phaseModel.H" #include "phaseModel.H"
#include "dragModel.H" #include "dragModel.H"
#include "liftModel.H"
#include "heatTransferModel.H" #include "heatTransferModel.H"
#include "volFields.H" #include "volFields.H"
#include "surfaceFields.H" #include "surfaceFields.H"
@ -57,7 +58,7 @@ namespace Foam
// Forward declarations // Forward declarations
class dragModel; class dragModel;
class heatTransferModel; class heatTransferModel;
class liftModel;
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class twoPhaseSystem Declaration Class twoPhaseSystem Declaration
@ -69,31 +70,57 @@ class twoPhaseSystem
{ {
// Private data // Private data
//- Reference to the mesh
const fvMesh& mesh_; const fvMesh& mesh_;
//- Phase model 1
phaseModel phase1_; phaseModel phase1_;
//- Phase model 2
phaseModel phase2_; phaseModel phase2_;
//- Total volumetric flux
surfaceScalarField phi_; surfaceScalarField phi_;
//- Dilatation term
volScalarField dgdt_; volScalarField dgdt_;
//- Surface tension coefficient
dimensionedScalar sigma_; dimensionedScalar sigma_;
//- Virtual mass coefficient
dimensionedScalar Cvm_; dimensionedScalar Cvm_;
dimensionedScalar Cl_;
//- Drag model for phase 1
autoPtr<dragModel> drag1_; autoPtr<dragModel> drag1_;
//- Drag model for phase 2
autoPtr<dragModel> drag2_; autoPtr<dragModel> drag2_;
//- Heat transfer model for phase 1
autoPtr<heatTransferModel> heatTransfer1_; autoPtr<heatTransferModel> heatTransfer1_;
//- Heat transfer model for phase 2
autoPtr<heatTransferModel> heatTransfer2_; autoPtr<heatTransferModel> heatTransfer2_;
//- Lift model for phase 1
autoPtr<liftModel> lift1_;
//- Lift model for phase 2
autoPtr<liftModel> lift2_;
//- Name of the dispersed phase, or "both"
word dispersedPhase_; word dispersedPhase_;
//- Residual phase fraction
scalar residualPhaseFraction_; scalar residualPhaseFraction_;
//- Redisual slip
dimensionedScalar residualSlip_; dimensionedScalar residualSlip_;
// Private member functions
//- Return the mixture flux //- Return the mixture flux
tmp<surfaceScalarField> calcPhi() const; tmp<surfaceScalarField> calcPhi() const;
@ -113,136 +140,21 @@ public:
// Member Functions // Member Functions
const fvMesh& mesh() const //- Return the drag coefficient
{
return mesh_;
}
const phaseModel& phase1() const
{
return phase1_;
}
const phaseModel& phase2() const
{
return phase2_;
}
const phaseModel& otherPhase(const phaseModel& phase) const
{
if (&phase == &phase1_)
{
return phase2_;
}
else
{
return phase1_;
}
}
phaseModel& phase1()
{
return phase1_;
}
phaseModel& phase2()
{
return phase2_;
}
//- Return the mixture flux
const surfaceScalarField& phi() const
{
return phi_;
}
//- Return the mixture flux
surfaceScalarField& phi()
{
return phi_;
}
const volScalarField& dgdt() const
{
return dgdt_;
}
volScalarField& dgdt()
{
return dgdt_;
}
const dragModel& drag1() const
{
return drag1_();
}
const dragModel& drag2() const
{
return drag2_();
}
const dragModel& drag(const phaseModel& phase) const
{
if (&phase == &phase1_)
{
return drag1_();
}
else
{
return drag2_();
}
}
scalar residualPhaseFraction() const
{
return residualPhaseFraction_;
}
const dimensionedScalar& residualSlip() const
{
return residualSlip_;
}
tmp<volScalarField> dragCoeff() const; tmp<volScalarField> dragCoeff() const;
tmp<volVectorField> liftForce(const volVectorField& U) const;
const heatTransferModel& heatTransfer1() const
{
return heatTransfer1_();
}
const heatTransferModel& heatTransfer2() const
{
return heatTransfer2_();
}
//- Return the heat transfer coefficient
tmp<volScalarField> heatTransferCoeff() const; tmp<volScalarField> heatTransferCoeff() const;
//- Return the lift force
tmp<volVectorField> liftForce(const volVectorField& U) const;
//- Return the mixture density //- Return the mixture density
tmp<volScalarField> rho() const; tmp<volScalarField> rho() const;
//- Return the mixture velocity //- Return the mixture velocity
tmp<volVectorField> U() const; tmp<volVectorField> U() const;
//- Return the surface tension coefficient
dimensionedScalar sigma() const
{
return sigma_;
}
//- Return the virtual-mass coefficient
dimensionedScalar Cvm() const
{
return Cvm_;
}
//- Return the lift coefficient
dimensionedScalar Cl() const
{
return Cl_;
}
//- Solve for the two-phase-fractions //- Solve for the two-phase-fractions
void solve(); void solve();
@ -254,6 +166,148 @@ public:
//- Read base phaseProperties dictionary //- Read base phaseProperties dictionary
bool read(); bool read();
// Access
//- Return the mesh
const fvMesh& mesh() const
{
return mesh_;
}
//- Return phase model 1
const phaseModel& phase1() const
{
return phase1_;
}
//- Return non-const access to phase model 1
phaseModel& phase1()
{
return phase1_;
}
//- Return phase model 2
const phaseModel& phase2() const
{
return phase2_;
}
//- Return non-const access to phase model 2
phaseModel& phase2()
{
return phase2_;
}
//- Return the phase not given as an argument
const phaseModel& otherPhase(const phaseModel& phase) const
{
if (&phase == &phase1_)
{
return phase2_;
}
else
{
return phase1_;
}
}
//- Return the mixture flux
const surfaceScalarField& phi() const
{
return phi_;
}
//- Return non-const access to the the mixture flux
surfaceScalarField& phi()
{
return phi_;
}
//- Return the dilatation term
const volScalarField& dgdt() const
{
return dgdt_;
}
//- Return non-const access to the
volScalarField& dgdt()
{
return dgdt_;
}
//- Return the drag model for phase 1
const dragModel& drag1() const
{
return drag1_();
}
//- Return the drag model for phase 2
const dragModel& drag2() const
{
return drag2_();
}
//- Return the drag model for the supplied phase
const dragModel& drag(const phaseModel& phase) const
{
if (&phase == &phase1_)
{
return drag1_();
}
else
{
return drag2_();
}
}
//- Return non-const access to the residual phase fraction
scalar residualPhaseFraction() const
{
return residualPhaseFraction_;
}
//- Return the residual slip
const dimensionedScalar& residualSlip() const
{
return residualSlip_;
}
//- Return the heat transfer model for phase 1
const heatTransferModel& heatTransfer1() const
{
return heatTransfer1_();
}
//- Return the heat transfer model for phase 2
const heatTransferModel& heatTransfer2() const
{
return heatTransfer2_();
}
//- Return the lift model for phase 1
const liftModel& lift1() const
{
return lift1_();
}
//- Return the lift model for phase 2
const liftModel& lift2() const
{
return lift2_();
}
//- Return the surface tension coefficient
dimensionedScalar sigma() const
{
return sigma_;
}
//- Return the virtual-mass coefficient
dimensionedScalar Cvm() const
{
return Cvm_;
}
}; };

View File

@ -34,11 +34,14 @@ Description
#include "Time.H" #include "Time.H"
#include "volFields.H" #include "volFields.H"
#include "surfaceFields.H" #include "surfaceFields.H"
#include "pointFields.H"
#include "hexRef8.H" #include "hexRef8.H"
#include "mapPolyMesh.H" #include "mapPolyMesh.H"
#include "polyTopoChange.H" #include "polyTopoChange.H"
#include "Random.H" #include "Random.H"
#include "zeroGradientFvPatchFields.H" #include "zeroGradientFvPatchFields.H"
#include "calculatedPointPatchFields.H"
#include "pointConstraints.H"
#include "fvcDiv.H" #include "fvcDiv.H"
using namespace Foam; using namespace Foam;
@ -61,6 +64,8 @@ int main(int argc, char *argv[])
# include "createMesh.H" # include "createMesh.H"
const pointConstraints& pc = pointConstraints::New(pointMesh::New(mesh));
const Switch inflate(args.args()[1]); const Switch inflate(args.args()[1]);
if (inflate) if (inflate)
@ -144,6 +149,29 @@ int main(int argc, char *argv[])
surfaceOne.write(); surfaceOne.write();
// Uniform point field
pointScalarField pointX
(
IOobject
(
"pointX",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
pointMesh::New(mesh),
dimensionedScalar("one", dimless, 1.0),
calculatedPointPatchScalarField::typeName
);
pointX.internalField() = mesh.points().component(0);
pointX.correctBoundaryConditions();
Info<< "Writing x-component field "
<< pointX.name() << " in " << runTime.timeName() << endl;
pointX.write();
// Force allocation of V. Important for any mesh changes since otherwise // Force allocation of V. Important for any mesh changes since otherwise
// old time volumes are not stored // old time volumes are not stored
const scalar totalVol = gSum(mesh.V()); const scalar totalVol = gSum(mesh.V());
@ -163,11 +191,24 @@ int main(int argc, char *argv[])
} }
mesh.moving(false);
mesh.topoChanging(false);
label action = rndGen.integer(0, 5);
if (action == 0)
{
Info<< nl << "-- moving only" << endl;
mesh.movePoints(pointField(mesh.points()));
}
else if (action == 1 || action == 2)
{
// Mesh changing engine. // Mesh changing engine.
polyTopoChange meshMod(mesh); polyTopoChange meshMod(mesh);
if (rndGen.bit()) if (action == 1)
{ {
// Refine // Refine
label nRefine = mesh.nCells()/20; label nRefine = mesh.nCells()/20;
@ -204,10 +245,8 @@ int main(int argc, char *argv[])
for (label i=0; i<nUnrefine; i++) for (label i=0; i<nUnrefine; i++)
{ {
candidates.insert label index = rndGen.integer(0, allSplitPoints.size()-1);
( candidates.insert(allSplitPoints[index]);
allSplitPoints[rndGen.integer(0, allSplitPoints.size()-1)]
);
} }
labelList splitPoints = meshCutter.consistentUnrefinement labelList splitPoints = meshCutter.consistentUnrefinement
@ -246,6 +285,13 @@ int main(int argc, char *argv[])
// Update numbering of cells/vertices. // Update numbering of cells/vertices.
Info<< nl << "-- mapping hexRef8 data" << endl; Info<< nl << "-- mapping hexRef8 data" << endl;
meshCutter.updateMesh(map); meshCutter.updateMesh(map);
}
Info<< nl<< "-- Mesh : moving:" << mesh.moving()
<< " topoChanging:" << mesh.topoChanging()
<< " changing:" << mesh.changing()
<< endl;
@ -362,6 +408,9 @@ int main(int argc, char *argv[])
<< nl << endl; << nl << endl;
} }
Info<< "pc:" << pc.patchPatchPointConstraintPoints().size() << endl;
Info<< "End\n" << endl; Info<< "End\n" << endl;
return 0; return 0;

View File

@ -20,6 +20,9 @@ DebugSwitches
primitiveMesh 1; primitiveMesh 1;
polyMesh 1; polyMesh 1;
fvMesh 1; fvMesh 1;
polyTopoChange 1;
pointMesh 1;
pointConstraints 1;
} }
application icoFoam; application icoFoam;

View File

@ -488,7 +488,7 @@ meshQualityControls
//( //(
// mesh // write intermediate meshes // mesh // write intermediate meshes
// intersections // write current mesh intersections as .obj files // intersections // write current mesh intersections as .obj files
// featureSeeds, // write information about explicit feature edge refinement // featureSeeds // write information about explicit feature edge refinement
// layerInfo // write information about layers // layerInfo // write information about layers
//); //);
// //

View File

@ -132,6 +132,11 @@ int main(int argc, char *argv[])
) )
); );
// Note: both IOsampledSets and IOsampledSurfaces read the
// same dictionary. Unregister one to make sure no duplicates
// trying to register
sSetsPtr().checkOut();
sSurfsPtr.reset sSurfsPtr.reset
( (
new IOsampledSurfaces new IOsampledSurfaces
@ -160,6 +165,8 @@ int main(int argc, char *argv[])
) )
); );
sSetsPtr().checkOut();
sSurfsPtr.reset sSurfsPtr.reset
( (
new IOsampledSurfaces new IOsampledSurfaces

View File

@ -209,6 +209,7 @@ int main(int argc, char *argv[])
} }
// Mu // Mu
if (mu != 0)
{ {
pointField newLocalPoints pointField newLocalPoints
( (

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-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -57,6 +57,26 @@ Foam::messageStream::messageStream(const dictionary& dict)
{} {}
Foam::OSstream& Foam::messageStream::masterStream(const label communicator)
{
if (UPstream::warnComm != -1 && communicator != UPstream::warnComm)
{
Pout<< "** messageStream with comm:" << communicator
<< endl;
error::printStack(Pout);
}
if (communicator == UPstream::worldComm)
{
return operator()();
}
else
{
return operator()(UPstream::master(communicator));
}
}
Foam::OSstream& Foam::messageStream::operator() Foam::OSstream& Foam::messageStream::operator()
( (
const char* functionName, const char* functionName,
@ -166,29 +186,14 @@ Foam::OSstream& Foam::messageStream::operator()
} }
Foam::OSstream& Foam::messageStream::operator()(const label communicator) Foam::OSstream& Foam::messageStream::operator()(const bool output)
{ {
if (UPstream::warnComm != -1 && communicator != UPstream::warnComm) if (output && level)
{
Pout<< "** messageStream with comm:" << communicator
<< endl;
error::printStack(Pout);
}
if (communicator == UPstream::worldComm)
{
return operator()();
}
else
{
bool master = UPstream::master(communicator);
if (level)
{ {
bool collect = (severity_ == INFO || severity_ == WARNING); bool collect = (severity_ == INFO || severity_ == WARNING);
// Report the error // Report the error
if (!master && collect) if (collect)
{ {
return Snull; return Snull;
} }
@ -214,7 +219,6 @@ Foam::OSstream& Foam::messageStream::operator()(const label communicator)
return Pout; return Pout;
} }
} }
}
return Snull; return Snull;
} }

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-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -134,6 +134,11 @@ public:
return maxErrors_; return maxErrors_;
} }
//- Convert to OSstream
// Prints to Pout for the master stream
OSstream& masterStream(const label communicator);
//- Convert to OSstream //- Convert to OSstream
// Prints basic message and returns OSstream for further info. // Prints basic message and returns OSstream for further info.
OSstream& operator() OSstream& operator()
@ -185,9 +190,8 @@ public:
); );
//- Convert to OSstream //- Convert to OSstream
// Use Info for default communicator, use Pout // Use Info for default communicator, control output using bool flag
// on master for non-default one. OSstream& operator()(const bool output);
OSstream& operator()(const label communicator);
//- Convert to OSstream for << operations //- Convert to OSstream for << operations
operator OSstream&(); operator OSstream&();

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-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -131,7 +131,7 @@ Foam::solverPerformance Foam::GAMGSolver::solve
if (debug >= 2) if (debug >= 2)
{ {
solverPerf.print(Info(matrix().mesh().comm())); solverPerf.print(Info.masterStream(matrix().mesh().comm()));
} }
} while } while
( (
@ -631,7 +631,7 @@ void Foam::GAMGSolver::solveCoarsestLevel
// //
// if (debug >= 2) // if (debug >= 2)
// { // {
// coarseSolverPerf.print(Info(coarseComm)); // coarseSolverPerf.print(Info.masterStream(coarseComm));
// } // }
// //
// Pout<< "procAgglom: coarsestSource :" << coarsestSource << endl; // Pout<< "procAgglom: coarsestSource :" << coarsestSource << endl;
@ -679,7 +679,7 @@ void Foam::GAMGSolver::solveCoarsestLevel
if (debug >= 2) if (debug >= 2)
{ {
coarseSolverPerf.print(Info(coarseComm)); coarseSolverPerf.print(Info.masterStream(coarseComm));
} }
} }

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-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -132,7 +132,7 @@ Foam::solverPerformance Foam::smoothSolver::solve
if (lduMatrix::debug >= 2) if (lduMatrix::debug >= 2)
{ {
Info(matrix().mesh().comm()) Info.masterStream(matrix().mesh().comm())
<< " Normalisation factor = " << normFactor << endl; << " Normalisation factor = " << normFactor << endl;
} }

View File

@ -34,7 +34,7 @@ License
#include "indexedOctree.H" #include "indexedOctree.H"
#include "treeDataCell.H" #include "treeDataCell.H"
#include "MeshObject.H" #include "MeshObject.H"
#include "pointMesh.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
@ -1160,6 +1160,7 @@ Foam::tmp<Foam::scalarField> Foam::polyMesh::movePoints
solutionD_ = Vector<label>::zero; solutionD_ = Vector<label>::zero;
meshObject::movePoints<polyMesh>(*this); meshObject::movePoints<polyMesh>(*this);
meshObject::movePoints<pointMesh>(*this);
const_cast<Time&>(time()).functionObjects().movePoints(*this); const_cast<Time&>(time()).functionObjects().movePoints(*this);

View File

@ -29,6 +29,7 @@ License
#include "MeshObject.H" #include "MeshObject.H"
#include "indexedOctree.H" #include "indexedOctree.H"
#include "treeDataCell.H" #include "treeDataCell.H"
#include "pointMesh.H"
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
@ -61,6 +62,7 @@ void Foam::polyMesh::clearGeom()
} }
// Clear all geometric mesh objects // Clear all geometric mesh objects
meshObject::clear<pointMesh, GeometricMeshObject>(*this);
meshObject::clear<polyMesh, GeometricMeshObject>(*this); meshObject::clear<polyMesh, GeometricMeshObject>(*this);
primitiveMesh::clearGeom(); primitiveMesh::clearGeom();
@ -108,6 +110,15 @@ void Foam::polyMesh::clearAddressing(const bool isMeshUpdate)
// Part of a mesh update. Keep meshObjects that have an updateMesh // Part of a mesh update. Keep meshObjects that have an updateMesh
// callback // callback
meshObject::clearUpto meshObject::clearUpto
<
pointMesh,
TopologicalMeshObject,
UpdateableMeshObject
>
(
*this
);
meshObject::clearUpto
< <
polyMesh, polyMesh,
TopologicalMeshObject, TopologicalMeshObject,
@ -119,6 +130,7 @@ void Foam::polyMesh::clearAddressing(const bool isMeshUpdate)
} }
else else
{ {
meshObject::clear<pointMesh, TopologicalMeshObject>(*this);
meshObject::clear<polyMesh, TopologicalMeshObject>(*this); meshObject::clear<polyMesh, TopologicalMeshObject>(*this);
} }

View File

@ -92,6 +92,7 @@ void Foam::polyMesh::updateMesh(const mapPolyMesh& mpm)
} }
meshObject::updateMesh<polyMesh>(*this, mpm); meshObject::updateMesh<polyMesh>(*this, mpm);
meshObject::updateMesh<pointMesh>(*this, mpm);
// Reset valid directions (could change by faces put into empty patches) // Reset valid directions (could change by faces put into empty patches)
geometricD_ = Vector<label>::zero; geometricD_ = Vector<label>::zero;

View File

@ -25,6 +25,7 @@ License
#include "symmetryPlanePolyPatch.H" #include "symmetryPlanePolyPatch.H"
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "symmetryPolyPatch.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -131,7 +132,11 @@ const Foam::vector& Foam::symmetryPlanePolyPatch::n() const
if (magSqr(n_ - nf[facei]) > SMALL) if (magSqr(n_ - nf[facei]) > SMALL)
{ {
FatalErrorIn("symmetryPlanePolyPatch::n()") FatalErrorIn("symmetryPlanePolyPatch::n()")
<< "Symmetry plane '" << name() << "' is not planar" << "Symmetry plane '" << name() << "' is not planar."
<< endl
<< " Either split the patch into planar parts"
<< " or use the " << symmetryPolyPatch::typeName
<< " patch type"
<< exit(FatalError); << exit(FatalError);
} }
} }

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-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -62,6 +62,7 @@ void Foam::polyPatch::movePoints(PstreamBuffers&, const pointField& p)
void Foam::polyPatch::updateMesh(PstreamBuffers&) void Foam::polyPatch::updateMesh(PstreamBuffers&)
{ {
clearAddressing(); clearAddressing();
primitivePatch::clearOut();
} }

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-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -25,6 +25,7 @@ License
#include "fvSchemes.H" #include "fvSchemes.H"
#include "Time.H" #include "Time.H"
#include "steadyStateDdtScheme.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
@ -108,6 +109,11 @@ void Foam::fvSchemes::read(const dictionary& dict)
) )
{ {
defaultDdtScheme_ = ddtSchemes_.lookup("default"); defaultDdtScheme_ = ddtSchemes_.lookup("default");
steady_ =
(
word(defaultDdtScheme_)
== fv::steadyStateDdtScheme<scalar>::typeName
);
} }
@ -364,7 +370,8 @@ Foam::fvSchemes::fvSchemes(const objectRegistry& obr)
tokenList() tokenList()
)() )()
), ),
defaultFluxRequired_(false) defaultFluxRequired_(false),
steady_(false)
{ {
// persistent settings across reads is incorrect // persistent settings across reads is incorrect
clear(); clear();

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -78,6 +78,10 @@ class fvSchemes
dictionary fluxRequired_; dictionary fluxRequired_;
bool defaultFluxRequired_; bool defaultFluxRequired_;
//- Steady-state run indicator
// Set true if the default ddtScheme is steadyState
bool steady_;
// Private Member Functions // Private Member Functions
@ -128,6 +132,18 @@ public:
bool fluxRequired(const word& name) const; bool fluxRequired(const word& name) const;
//- Return true if the default ddtScheme is steadyState
bool steady() const
{
return steady_;
}
//- Return true if the default ddtScheme is not steadyState
bool transient() const
{
return !steady_;
}
// Read // Read

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-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -2348,6 +2348,8 @@ Foam::operator&
GeometricField<Type, fvPatchField, volMesh>& Mphi = tMphi(); GeometricField<Type, fvPatchField, volMesh>& Mphi = tMphi();
// Loop over field components // Loop over field components
if (M.hasDiag())
{
for (direction cmpt=0; cmpt<pTraits<Type>::nComponents; cmpt++) for (direction cmpt=0; cmpt<pTraits<Type>::nComponents; cmpt++)
{ {
scalarField psiCmpt(psi.field().component(cmpt)); scalarField psiCmpt(psi.field().component(cmpt));
@ -2355,6 +2357,11 @@ Foam::operator&
M.addBoundaryDiag(boundaryDiagCmpt, cmpt); M.addBoundaryDiag(boundaryDiagCmpt, cmpt);
Mphi.internalField().replace(cmpt, -boundaryDiagCmpt*psiCmpt); Mphi.internalField().replace(cmpt, -boundaryDiagCmpt*psiCmpt);
} }
}
else
{
Mphi.internalField() = pTraits<Type>::zero;
}
Mphi.internalField() += M.lduMatrix::H(psi.field()) + M.source(); Mphi.internalField() += M.lduMatrix::H(psi.field()) + M.source();
M.addBoundarySource(Mphi.internalField()); M.addBoundarySource(Mphi.internalField());

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-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -60,7 +60,7 @@ Foam::solverPerformance Foam::fvMatrix<Type>::solve
{ {
if (debug) if (debug)
{ {
Info(this->mesh().comm()) Info.masterStream(this->mesh().comm())
<< "fvMatrix<Type>::solve(const dictionary& solverControls) : " << "fvMatrix<Type>::solve(const dictionary& solverControls) : "
"solving fvMatrix<Type>" "solving fvMatrix<Type>"
<< endl; << endl;
@ -108,7 +108,7 @@ Foam::solverPerformance Foam::fvMatrix<Type>::solveSegregated
{ {
if (debug) if (debug)
{ {
Info(this->mesh().comm()) Info.masterStream(this->mesh().comm())
<< "fvMatrix<Type>::solveSegregated" << "fvMatrix<Type>::solveSegregated"
"(const dictionary& solverControls) : " "(const dictionary& solverControls) : "
"solving fvMatrix<Type>" "solving fvMatrix<Type>"
@ -202,7 +202,7 @@ Foam::solverPerformance Foam::fvMatrix<Type>::solveSegregated
if (solverPerformance::debug) if (solverPerformance::debug)
{ {
solverPerf.print(Info(this->mesh().comm())); solverPerf.print(Info.masterStream(this->mesh().comm()));
} }
solverPerfVec = max(solverPerfVec, solverPerf); solverPerfVec = max(solverPerfVec, solverPerf);
@ -228,7 +228,7 @@ Foam::solverPerformance Foam::fvMatrix<Type>::solveCoupled
{ {
if (debug) if (debug)
{ {
Info(this->mesh().comm()) Info.masterStream(this->mesh().comm())
<< "fvMatrix<Type>::solveCoupled" << "fvMatrix<Type>::solveCoupled"
"(const dictionary& solverControls) : " "(const dictionary& solverControls) : "
"solving fvMatrix<Type>" "solving fvMatrix<Type>"
@ -269,7 +269,7 @@ Foam::solverPerformance Foam::fvMatrix<Type>::solveCoupled
if (SolverPerformance<Type>::debug) if (SolverPerformance<Type>::debug)
{ {
solverPerf.print(Info(this->mesh().comm())); solverPerf.print(Info.masterStream(this->mesh().comm()));
} }
psi.correctBoundaryConditions(); psi.correctBoundaryConditions();

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-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -61,7 +61,7 @@ Foam::fvMatrix<Foam::scalar>::solver
{ {
if (debug) if (debug)
{ {
Info(this->mesh().comm()) Info.masterStream(this->mesh().comm())
<< "fvMatrix<scalar>::solver(const dictionary& solverControls) : " << "fvMatrix<scalar>::solver(const dictionary& solverControls) : "
"solver for fvMatrix<scalar>" "solver for fvMatrix<scalar>"
<< endl; << endl;
@ -120,7 +120,7 @@ Foam::solverPerformance Foam::fvMatrix<Foam::scalar>::fvSolver::solve
if (solverPerformance::debug) if (solverPerformance::debug)
{ {
solverPerf.print(Info(fvMat_.mesh().comm())); solverPerf.print(Info.masterStream(fvMat_.mesh().comm()));
} }
fvMat_.diag() = saveDiag; fvMat_.diag() = saveDiag;
@ -141,7 +141,7 @@ Foam::solverPerformance Foam::fvMatrix<Foam::scalar>::solveSegregated
{ {
if (debug) if (debug)
{ {
Info(this->mesh().comm()) Info.masterStream(this->mesh().comm())
<< "fvMatrix<scalar>::solveSegregated" << "fvMatrix<scalar>::solveSegregated"
"(const dictionary& solverControls) : " "(const dictionary& solverControls) : "
"solving fvMatrix<scalar>" "solving fvMatrix<scalar>"
@ -170,7 +170,7 @@ Foam::solverPerformance Foam::fvMatrix<Foam::scalar>::solveSegregated
if (solverPerformance::debug) if (solverPerformance::debug)
{ {
solverPerf.print(Info(mesh().comm())); solverPerf.print(Info.masterStream(mesh().comm()));
} }
diag() = saveDiag; diag() = saveDiag;

View File

@ -48,7 +48,7 @@ void pointConstraints::makePatchPatchAddressing()
{ {
Pout<< "pointConstraints::makePatchPatchAddressing() : " Pout<< "pointConstraints::makePatchPatchAddressing() : "
<< "constructing boundary addressing" << "constructing boundary addressing"
<< endl; << endl << incrIndent;
} }
const pointMesh& pMesh = mesh(); const pointMesh& pMesh = mesh();
@ -72,7 +72,7 @@ void pointConstraints::makePatchPatchAddressing()
if (debug) if (debug)
{ {
Pout<< "On patch:" << pbm[patchi].name() Pout<< indent << "On patch:" << pbm[patchi].name()
<< " nBoundaryPoints:" << bp.size() << endl; << " nBoundaryPoints:" << bp.size() << endl;
} }
} }
@ -80,7 +80,8 @@ void pointConstraints::makePatchPatchAddressing()
if (debug) if (debug)
{ {
Pout<< "Found nPatchPatchPoints:" << nPatchPatchPoints << endl; Pout<< indent << "Found nPatchPatchPoints:" << nPatchPatchPoints
<< endl;
} }
@ -137,7 +138,7 @@ void pointConstraints::makePatchPatchAddressing()
if (debug) if (debug)
{ {
Pout<< "Have (local) constrained points:" Pout<< indent << "Have (local) constrained points:"
<< nPatchPatchPoints << endl; << nPatchPatchPoints << endl;
} }
@ -224,7 +225,7 @@ void pointConstraints::makePatchPatchAddressing()
if (iter == patchPatchPointSet.end()) if (iter == patchPatchPointSet.end())
{ {
//Pout<< "on meshpoint:" << meshPointI //Pout<< indent << "on meshpoint:" << meshPointI
// << " coupled:" << coupledPointI // << " coupled:" << coupledPointI
// << " at:" << mesh.points()[meshPointI] // << " at:" << mesh.points()[meshPointI]
// << " have new constraint:" // << " have new constraint:"
@ -242,7 +243,7 @@ void pointConstraints::makePatchPatchAddressing()
} }
else else
{ {
//Pout<< "on meshpoint:" << meshPointI //Pout<< indent << "on meshpoint:" << meshPointI
// << " coupled:" << coupledPointI // << " coupled:" << coupledPointI
// << " at:" << mesh.points()[meshPointI] // << " at:" << mesh.points()[meshPointI]
// << " have possibly extended constraint:" // << " have possibly extended constraint:"
@ -271,7 +272,7 @@ void pointConstraints::makePatchPatchAddressing()
if (debug) if (debug)
{ {
Pout<< "Have (global) constrained points:" Pout<< indent << "Have (global) constrained points:"
<< nPatchPatchPoints << endl; << nPatchPatchPoints << endl;
} }
@ -303,7 +304,7 @@ void pointConstraints::makePatchPatchAddressing()
if (debug) if (debug)
{ {
Pout<< "Have non-trivial constrained points:" Pout<< indent << "Have non-trivial constrained points:"
<< nConstraints << endl; << nConstraints << endl;
} }
@ -314,7 +315,8 @@ void pointConstraints::makePatchPatchAddressing()
if (debug) if (debug)
{ {
Pout<< "pointConstraints::makePatchPatchAddressing() : " Pout<< decrIndent
<< "pointConstraints::makePatchPatchAddressing() : "
<< "finished constructing boundary addressing" << "finished constructing boundary addressing"
<< endl; << endl;
} }
@ -327,6 +329,13 @@ pointConstraints::pointConstraints(const pointMesh& pm)
: :
MeshObject<pointMesh, Foam::UpdateableMeshObject, pointConstraints>(pm) MeshObject<pointMesh, Foam::UpdateableMeshObject, pointConstraints>(pm)
{ {
if (debug)
{
Pout<< "pointConstraints::pointConstraints(const pointMesh&): "
<< "Constructing from pointMesh " << pm.name()
<< endl;
}
makePatchPatchAddressing(); makePatchPatchAddressing();
} }

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-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -98,7 +98,7 @@ void Foam::CellZoneInjection<CloudType>::setPositions
injectorCells.append(cellI); injectorCells.append(cellI);
injectorTetFaces.append(cellTetIs[tetI].face()); injectorTetFaces.append(cellTetIs[tetI].face());
injectorTetPts.append(cellTetIs[tetI].faceBasePt()); injectorTetPts.append(cellTetIs[tetI].tetPt());
} }
} }
@ -240,7 +240,7 @@ void Foam::CellZoneInjection<CloudType>::updateMesh()
Info<< " cell zone size = " << nCellsTotal << endl; Info<< " cell zone size = " << nCellsTotal << endl;
Info<< " cell zone volume = " << VCellsTotal << endl; Info<< " cell zone volume = " << VCellsTotal << endl;
if ((nCells == 0) || (VCellsTotal*numberDensity_ < 1)) if ((nCellsTotal == 0) || (VCellsTotal*numberDensity_ < 1))
{ {
WarningIn("Foam::CellZoneInjection<CloudType>::updateMesh()") WarningIn("Foam::CellZoneInjection<CloudType>::updateMesh()")
<< "Number of particles to be added to cellZone " << cellZoneName_ << "Number of particles to be added to cellZone " << cellZoneName_

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -91,7 +91,8 @@ Foam::AveragingMethod<Type>::New
( (
"Foam::AveragingMethod<Type>::New" "Foam::AveragingMethod<Type>::New"
"(" "("
"const dictionary&" "const IOobject&, "
"const dictionary&, "
"const fvMesh&" "const fvMesh&"
")" ")"
) << "Unknown averaging method " << averageType ) << "Unknown averaging method " << averageType
@ -243,10 +244,10 @@ bool Foam::AveragingMethod<Type>::write() const
pointGrad.internalField() /= pointVolume; pointGrad.internalField() /= pointVolume;
// write // write
if(!cellValue.write()) return false; if (!cellValue.write()) return false;
if(!cellGrad.write()) return false; if (!cellGrad.write()) return false;
if(!pointValue.write()) return false; if (!pointValue.write()) return false;
if(!pointGrad.write()) return false; if (!pointGrad.write()) return false;
return true; return true;
} }

View File

@ -123,7 +123,7 @@ void Foam::AveragingMethods::Dual<Type>::tetGeometry
tetIs.tet(this->mesh_).barycentric(position, tetCoordinates_); tetIs.tet(this->mesh_).barycentric(position, tetCoordinates_);
tetCoordinates_ = max(tetCoordinates_, 0.0); tetCoordinates_ = max(tetCoordinates_, scalar(0));
} }

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -69,7 +69,6 @@ Foam::CorrectionLimitingMethod::New
( (
"CorrectionLimitingMethod::New" "CorrectionLimitingMethod::New"
"(" "("
"const word&, "
"const dictionary&" "const dictionary&"
")" ")"
) << "Unknown correction limiter type " << modelType ) << "Unknown correction limiter type " << modelType

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

View File

@ -198,16 +198,6 @@ void Foam::PackingModels::Implicit<CloudType>::cacheFields(const bool store)
alphaEqn.solve(); alphaEqn.solve();
//// updated stress
//tauPrime.internalField() =
// this->particleStressModel_->tauPrime
// (
// alpha_.internalField(),
// rho.internalField(),
// uSqrAverage.internalField()
// )();
//tauPrime.correctBoundaryConditions();
// Generate correction fields // Generate correction fields
// ~~~~~~~~~~~~~~~~~ // ~~~~~~~~~~~~~~~~~
@ -229,8 +219,6 @@ void Foam::PackingModels::Implicit<CloudType>::cacheFields(const bool store)
( (
cloudName + ":uCorrect", cloudName + ":uCorrect",
fvc::reconstruct(phiCorrect_()) fvc::reconstruct(phiCorrect_())
// - deltaT*fvc::grad(tauPrime)/(rho*alpha_)
// + (applyGravity_ ? deltaT*g*(1.0 - rhoc/rho) : 0.0)
) )
); );

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

View File

@ -87,7 +87,7 @@ Foam::TimeScaleModels::equilibrium::oneByTau
return return
a a
*alpha*sqrt(max(uSqr, 0.0))/max(r32, SMALL) *alpha*sqrt(max(uSqr, scalar(0)))/max(r32, SMALL)
*alphaPacked_/max(alphaPacked_ - alpha, SMALL); *alphaPacked_/max(alphaPacked_ - alpha, SMALL);
} }

View File

@ -3508,7 +3508,7 @@ void Foam::autoLayerDriver::addLayers
meshRefiner_.updateMesh(map, labelList(0)); meshRefiner_.updateMesh(map, labelList(0));
// Update numbering of faceWantedThickness // Update numbering of faceWantedThickness
meshRefinement::updateList(map().faceMap(), 0.0, faceWantedThickness); meshRefinement::updateList(map().faceMap(), scalar(0), faceWantedThickness);
// Update numbering on baffles // Update numbering on baffles
forAll(baffles, i) forAll(baffles, i)

View File

@ -35,7 +35,6 @@ License
#include "fvMeshDistribute.H" #include "fvMeshDistribute.H"
#include "polyTopoChange.H" #include "polyTopoChange.H"
#include "mapDistributePolyMesh.H" #include "mapDistributePolyMesh.H"
#include "featureEdgeMesh.H"
#include "Cloud.H" #include "Cloud.H"
//#include "globalIndex.H" //#include "globalIndex.H"
#include "OBJstream.H" #include "OBJstream.H"
@ -358,7 +357,7 @@ void Foam::meshRefinement::markFeatureCellLevel
forAll(features_, featI) forAll(features_, featI)
{ {
const featureEdgeMesh& featureMesh = features_[featI]; const edgeMesh& featureMesh = features_[featI];
const label featureLevel = features_.levels()[featI][0]; const label featureLevel = features_.levels()[featI][0];
const labelListList& pointEdges = featureMesh.pointEdges(); const labelListList& pointEdges = featureMesh.pointEdges();
@ -505,7 +504,7 @@ void Foam::meshRefinement::markFeatureCellLevel
label featI = startTp.i(); label featI = startTp.i();
label pointI = startTp.j(); label pointI = startTp.j();
const featureEdgeMesh& featureMesh = features_[featI]; const edgeMesh& featureMesh = features_[featI];
const labelList& pEdges = featureMesh.pointEdges()[pointI]; const labelList& pEdges = featureMesh.pointEdges()[pointI];
// Now shoot particles down all pEdges. // Now shoot particles down all pEdges.
@ -561,7 +560,7 @@ void Foam::meshRefinement::markFeatureCellLevel
label featI = tp.i(); label featI = tp.i();
label pointI = tp.j(); label pointI = tp.j();
const featureEdgeMesh& featureMesh = features_[featI]; const edgeMesh& featureMesh = features_[featI];
const labelList& pEdges = featureMesh.pointEdges()[pointI]; const labelList& pEdges = featureMesh.pointEdges()[pointI];
// Particle now at pointI. Check connected edges to see which one // Particle now at pointI. Check connected edges to see which one

View File

@ -186,7 +186,7 @@ void Foam::refinementFeatures::read
set(featI, new extendedFeatureEdgeMesh(featObj, eeMesh)); set(featI, new extendedFeatureEdgeMesh(featObj, eeMesh));
} }
const edgeMesh& eMesh = operator[](featI); const extendedEdgeMesh& eMesh = operator[](featI);
//eMesh.mergePoints(meshRefiner_.mergeDistance()); //eMesh.mergePoints(meshRefiner_.mergeDistance());
@ -258,13 +258,9 @@ void Foam::refinementFeatures::read
} }
void Foam::refinementFeatures::buildTrees void Foam::refinementFeatures::buildTrees(const label featI)
(
const label featI,
const labelList& featurePoints
)
{ {
const edgeMesh& eMesh = operator[](featI); const extendedEdgeMesh& eMesh = operator[](featI);
const pointField& points = eMesh.points(); const pointField& points = eMesh.points();
const edgeList& edges = eMesh.edges(); const edgeList& edges = eMesh.edges();
@ -299,6 +295,9 @@ void Foam::refinementFeatures::buildTrees
) )
); );
labelList featurePoints(identity(eMesh.nonFeatureStart()));
pointTrees_.set pointTrees_.set
( (
featI, featI,
@ -408,24 +407,7 @@ Foam::refinementFeatures::refinementFeatures
// Search engines // Search engines
forAll(*this, i) forAll(*this, i)
{ {
const extendedEdgeMesh& eMesh = operator[](i); buildTrees(i);
const labelListList& pointEdges = eMesh.pointEdges();
DynamicList<label> featurePoints;
forAll(pointEdges, pointI)
{
if (pointEdges[pointI].size() > 2)
{
featurePoints.append(pointI);
}
}
Info<< "Detected " << featurePoints.size()
<< " featurePoints out of " << pointEdges.size()
<< " points on feature " << operator[](i).name()
<< endl;
buildTrees(i, featurePoints);
} }
} }

View File

@ -76,7 +76,7 @@ private:
void read(const objectRegistry&, const PtrList<dictionary>&); void read(const objectRegistry&, const PtrList<dictionary>&);
//- Build edge tree and feature point tree //- Build edge tree and feature point tree
void buildTrees(const label, const labelList&); void buildTrees(const label);
//- Find shell level higher than ptLevel //- Find shell level higher than ptLevel
void findHigherLevel void findHigherLevel

View File

@ -90,15 +90,23 @@ Foam::trackedParticle::trackedParticle
bool Foam::trackedParticle::move bool Foam::trackedParticle::move
( (
trackingData& td, trackingData& td,
const scalar trackedParticle const scalar trackTime
) )
{ {
td.switchProcessor = false; td.switchProcessor = false;
td.keepParticle = true;
scalar tEnd = (1.0 - stepFraction())*trackedParticle; scalar tEnd = (1.0 - stepFraction())*trackTime;
scalar dtMax = tEnd; scalar dtMax = tEnd;
if (tEnd <= SMALL)
{
// Remove the particle
td.keepParticle = false;
}
else
{
td.keepParticle = true;
while (td.keepParticle && !td.switchProcessor && tEnd > SMALL) while (td.keepParticle && !td.switchProcessor && tEnd > SMALL)
{ {
// set the lagrangian time-step // set the lagrangian time-step
@ -110,7 +118,8 @@ bool Foam::trackedParticle::move
dt *= trackToFace(end_, td); dt *= trackToFace(end_, td);
tEnd -= dt; tEnd -= dt;
stepFraction() = 1.0 - tEnd/trackedParticle; stepFraction() = 1.0 - tEnd/trackTime;
}
} }
return td.keepParticle; return td.keepParticle;

View File

@ -91,10 +91,10 @@ void Foam::cyclicACMIPolyPatch::resetAMI
); );
srcMask_ = srcMask_ =
min(1.0 - tolerance_, max(tolerance_, AMI().srcWeightsSum())); min(scalar(1) - tolerance_, max(tolerance_, AMI().srcWeightsSum()));
tgtMask_ = tgtMask_ =
min(1.0 - tolerance_, max(tolerance_, AMI().tgtWeightsSum())); min(scalar(1) - tolerance_, max(tolerance_, AMI().tgtWeightsSum()));
forAll(Sf, faceI) forAll(Sf, faceI)
{ {

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -92,7 +92,7 @@ void Foam::removeRegisteredObject::execute()
void Foam::removeRegisteredObject::end() void Foam::removeRegisteredObject::end()
{ {
// Do nothing - only valid on execute execute();
} }

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -195,7 +195,7 @@ void Foam::writeDictionary::execute()
void Foam::writeDictionary::end() void Foam::writeDictionary::end()
{ {
// do nothing execute();
} }

View File

@ -34,9 +34,6 @@ streamLine/streamLineParticle.C
streamLine/streamLineParticleCloud.C streamLine/streamLineParticleCloud.C
streamLine/streamLineFunctionObject.C streamLine/streamLineFunctionObject.C
turbulenceFields/turbulenceFields.C
turbulenceFields/turbulenceFieldsFunctionObject.C
wallBoundedStreamLine/wallBoundedStreamLine.C wallBoundedStreamLine/wallBoundedStreamLine.C
wallBoundedStreamLine/wallBoundedStreamLineFunctionObject.C wallBoundedStreamLine/wallBoundedStreamLineFunctionObject.C
wallBoundedStreamLine/wallBoundedStreamLineParticle.C wallBoundedStreamLine/wallBoundedStreamLineParticle.C

View File

@ -3,11 +3,7 @@ EXE_INC = \
-I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/lagrangian/basic/lnInclude \ -I$(LIB_SRC)/lagrangian/basic/lnInclude \
-I$(LIB_SRC)/fileFormats/lnInclude \ -I$(LIB_SRC)/fileFormats/lnInclude \
-I$(LIB_SRC)/surfMesh/lnInclude \
-I$(LIB_SRC)/sampling/lnInclude \ -I$(LIB_SRC)/sampling/lnInclude \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/turbulenceModels \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/surfMesh/lnInclude -I$(LIB_SRC)/surfMesh/lnInclude
LIB_LIBS = \ LIB_LIBS = \
@ -16,8 +12,5 @@ LIB_LIBS = \
-lsurfMesh \ -lsurfMesh \
-llagrangian \ -llagrangian \
-lfileFormats \ -lfileFormats \
-lsurfMesh \
-lsampling \ -lsampling \
-lincompressibleTransportModels \ -lsurfMesh
-lcompressibleTurbulenceModel \
-lincompressibleTurbulenceModel

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-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -111,8 +111,6 @@ void Foam::fieldAverage::calcAverages()
initialize(); initialize();
} }
Info<< type() << " " << name_ << " output:" << nl;
const label currentTimeIndex = const label currentTimeIndex =
static_cast<const fvMesh&>(obr_).time().timeIndex(); static_cast<const fvMesh&>(obr_).time().timeIndex();
@ -125,6 +123,8 @@ void Foam::fieldAverage::calcAverages()
prevTimeIndex_ = currentTimeIndex; prevTimeIndex_ = currentTimeIndex;
} }
Info<< type() << " " << name_ << " output:" << nl;
Info<< " Calculating averages" << nl; Info<< " Calculating averages" << nl;
addMeanSqrToPrime2Mean<scalar, scalar>(); addMeanSqrToPrime2Mean<scalar, scalar>();
@ -317,14 +317,19 @@ void Foam::fieldAverage::execute()
if (active_) if (active_)
{ {
calcAverages(); calcAverages();
Info<< endl; Info<< endl;
} }
} }
void Foam::fieldAverage::end() void Foam::fieldAverage::end()
{} {
if (active_)
{
calcAverages();
Info<< endl;
}
}
void Foam::fieldAverage::timeSet() void Foam::fieldAverage::timeSet()

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-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -115,7 +115,10 @@ void Foam::fieldCoordinateSystemTransform::execute()
void Foam::fieldCoordinateSystemTransform::end() void Foam::fieldCoordinateSystemTransform::end()
{ {
// Do nothing if (active_)
{
execute();
}
} }

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-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -159,10 +159,7 @@ void Foam::fieldMinMax::write()
{ {
functionObjectFile::write(); functionObjectFile::write();
if (log_) Info(log_)<< type() << " " << name_ << " output:" << nl;
{
Info<< type() << " " << name_ << " output:" << nl;
}
forAll(fieldSet_, fieldI) forAll(fieldSet_, fieldI)
{ {
@ -173,10 +170,7 @@ void Foam::fieldMinMax::write()
calcMinMaxFields<tensor>(fieldSet_[fieldI], mode_); calcMinMaxFields<tensor>(fieldSet_[fieldI], mode_);
} }
if (log_) Info(log_)<< endl;
{
Info<< endl;
}
} }
} }

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-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -139,6 +139,20 @@ protected:
// Private Member Functions // Private Member Functions
//- Helper function to write the output
template<class Type>
void output
(
const word& fieldName,
const word& outputName,
const vector& minC,
const vector& maxC,
const label minProcI,
const label maxProcI,
const Type& minValue,
const Type& maxValue
);
//- Disallow default bitwise copy construct //- Disallow default bitwise copy construct
fieldMinMax(const fieldMinMax&); fieldMinMax(const fieldMinMax&);

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-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,6 +31,62 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
template<class Type>
void Foam::fieldMinMax::output
(
const word& fieldName,
const word& outputName,
const vector& minC,
const vector& maxC,
const label minProcI,
const label maxProcI,
const Type& minValue,
const Type& maxValue
)
{
file()<< obr_.time().value();
writeTabbed(file(), fieldName);
file()
<< token::TAB << minValue
<< token::TAB << minC;
if (Pstream::parRun())
{
file()<< token::TAB << minProcI;
}
file()
<< token::TAB << maxValue
<< token::TAB << maxC;
if (Pstream::parRun())
{
file()<< token::TAB << maxProcI;
}
file() << endl;
Info(log_)<< " min(" << outputName << ") = "
<< minValue << " at position " << minC;
if (Pstream::parRun())
{
Info(log_)<< " on processor " << minProcI;
}
Info(log_)<< nl << " max(" << outputName << ") = "
<< maxValue << " at position " << maxC;
if (Pstream::parRun())
{
Info(log_)<< " on processor " << maxProcI;
}
Info(log_)<< endl;
}
template<class Type> template<class Type>
void Foam::fieldMinMax::calcMinMaxFields void Foam::fieldMinMax::calcMinMaxFields
( (
@ -111,49 +167,17 @@ void Foam::fieldMinMax::calcMinMaxFields
scalar maxValue = maxVs[maxI]; scalar maxValue = maxVs[maxI];
const vector& maxC = maxCs[maxI]; const vector& maxC = maxCs[maxI];
file()<< obr_.time().value(); output
writeTabbed(file(), fieldName); (
fieldName,
file() word("mag(" + fieldName + ")"),
<< token::TAB << minValue minC,
<< token::TAB << minC; maxC,
minI,
if (Pstream::parRun()) maxI,
{ minValue,
file()<< token::TAB << minI; maxValue
} );
file()
<< token::TAB << maxValue
<< token::TAB << maxC;
if (Pstream::parRun())
{
file()<< token::TAB << maxI;
}
file() << endl;
if (log_)
{
Info<< " min(mag(" << fieldName << ")) = "
<< minValue << " at position " << minC;
if (Pstream::parRun())
{
Info<< " on processor " << minI;
}
Info<< nl << " max(mag(" << fieldName << ")) = "
<< maxValue << " at position " << maxC;
if (Pstream::parRun())
{
Info<< " on processor " << maxI;
}
Info<< endl;
}
} }
break; break;
} }
@ -216,49 +240,17 @@ void Foam::fieldMinMax::calcMinMaxFields
Type maxValue = maxVs[maxI]; Type maxValue = maxVs[maxI];
const vector& maxC = maxCs[maxI]; const vector& maxC = maxCs[maxI];
file()<< obr_.time().value(); output
writeTabbed(file(), fieldName); (
fieldName,
file() fieldName,
<< token::TAB << minValue minC,
<< token::TAB << minC; maxC,
minI,
if (Pstream::parRun()) maxI,
{ minValue,
file()<< token::TAB << minI; maxValue
} );
file()
<< token::TAB << maxValue
<< token::TAB << maxC;
if (Pstream::parRun())
{
file()<< token::TAB << maxI;
}
file() << endl;
if (log_)
{
Info<< " min(" << fieldName << ") = "
<< minValue << " at position " << minC;
if (Pstream::parRun())
{
Info<< " on processor " << minI;
}
Info<< nl << " max(" << fieldName << ") = "
<< maxValue << " at position " << maxC;
if (Pstream::parRun())
{
Info<< " on processor " << maxI;
}
Info<< endl;
}
} }
break; break;
} }

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-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -245,10 +245,7 @@ void Foam::fieldValues::cellSource::write()
file()<< endl; file()<< endl;
} }
if (log_) Info(log_)<< endl;
{
Info<< endl;
}
} }
} }

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-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -200,14 +200,11 @@ bool Foam::fieldValues::cellSource::writeValues(const word& fieldName)
file()<< tab << result; file()<< tab << result;
if (log_) Info(log_)<< " " << operationTypeNames_[operation_]
{
Info<< " " << operationTypeNames_[operation_]
<< "(" << sourceName_ << ") for " << fieldName << "(" << sourceName_ << ") for " << fieldName
<< " = " << result << endl; << " = " << result << endl;
} }
} }
}
return ok; return ok;
} }

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-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -663,10 +663,7 @@ void Foam::fieldValues::faceSource::write()
file()<< endl; file()<< endl;
} }
if (log_) Info(log_)<< endl;
{
Info<< endl;
}
} }
} }

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-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -344,14 +344,11 @@ bool Foam::fieldValues::faceSource::writeValues(const word& fieldName)
file()<< tab << result; file()<< tab << result;
if (log_) Info(log_)<< " " << operationTypeNames_[operation_]
{
Info<< " " << operationTypeNames_[operation_]
<< "(" << sourceName_ << ") for " << fieldName << "(" << sourceName_ << ") for " << fieldName
<< " = " << result << endl; << " = " << result << endl;
} }
} }
}
return ok; return ok;
} }

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-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -58,10 +58,7 @@ void Foam::fieldValue::write()
{ {
functionObjectFile::write(); functionObjectFile::write();
if (log_) Info(log_)<< type() << " " << name_ << " output:" << nl;
{
Info<< type() << " " << name_ << " output:" << nl;
}
} }
} }

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) 2012-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -158,10 +158,7 @@ void Foam::fieldValues::fieldValueDelta::write()
file()<< obr_.time().value(); file()<< obr_.time().value();
} }
if (log_) Info(log_)<< type() << " " << name_ << " output:" << endl;
{
Info<< type() << " " << name_ << " output:" << endl;
}
bool found = false; bool found = false;
processFields<scalar>(found); processFields<scalar>(found);

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) 2012-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -114,12 +114,9 @@ void Foam::fieldValues::fieldValueDelta::processFields(bool& found)
Type result = applyOperation(r1, r2); Type result = applyOperation(r1, r2);
if (log_) Info(log_)<< " " << operationTypeNames_[operation_]
{
Info<< " " << operationTypeNames_[operation_]
<< "(" << fieldName << ") = " << result << "(" << fieldName << ") = " << result
<< endl; << endl;
}
if (Pstream::master()) if (Pstream::master())
{ {

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-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -374,6 +374,11 @@ void Foam::nearWallFields::end()
{ {
Info<< "nearWallFields:end()" << endl; Info<< "nearWallFields:end()" << endl;
} }
if (active_)
{
execute();
}
} }

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-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -122,7 +122,10 @@ void Foam::processorField::execute()
void Foam::processorField::end() void Foam::processorField::end()
{ {
// Do nothing if (active_)
{
execute();
}
} }

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-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -91,8 +91,8 @@ void Foam::readFields::read(const dictionary& dict)
void Foam::readFields::execute() void Foam::readFields::execute()
{ {
//Info<< type() << " " << name_ << ":" << nl; if (active_)
{
// Clear out any previously loaded fields // Clear out any previously loaded fields
vsf_.clear(); vsf_.clear();
vvf_.clear(); vvf_.clear();
@ -108,19 +108,25 @@ void Foam::readFields::execute()
forAll(fieldSet_, fieldI) forAll(fieldSet_, fieldI)
{ {
const word& fieldName = fieldSet_[fieldI];
// If necessary load field // If necessary load field
loadField<scalar>(fieldSet_[fieldI], vsf_, ssf_); loadField<scalar>(fieldName, vsf_, ssf_);
loadField<vector>(fieldSet_[fieldI], vvf_, svf_); loadField<vector>(fieldName, vvf_, svf_);
loadField<sphericalTensor>(fieldSet_[fieldI], vSpheretf_, sSpheretf_); loadField<sphericalTensor>(fieldName, vSpheretf_, sSpheretf_);
loadField<symmTensor>(fieldSet_[fieldI], vSymmtf_, sSymmtf_); loadField<symmTensor>(fieldName, vSymmtf_, sSymmtf_);
loadField<tensor>(fieldSet_[fieldI], vtf_, stf_); loadField<tensor>(fieldName, vtf_, stf_);
}
} }
} }
void Foam::readFields::end() void Foam::readFields::end()
{ {
if (active_)
{
execute(); execute();
}
} }

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-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -114,7 +114,10 @@ void Foam::surfaceInterpolateFields::execute()
void Foam::surfaceInterpolateFields::end() void Foam::surfaceInterpolateFields::end()
{ {
// Do nothing if (active_)
{
execute();
}
} }

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-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -227,15 +227,12 @@ void Foam::forceCoeffs::write()
<< obr_.time().value() << tab << Cm << tab << Cd << obr_.time().value() << tab << Cm << tab << Cd
<< tab << Cl << tab << Clf << tab << Clr << endl; << tab << Cl << tab << Clf << tab << Clr << endl;
if (log_) Info(log_)<< type() << " " << name_ << " output:" << nl
{
Info<< type() << " " << name_ << " output:" << nl
<< " Cm = " << Cm << nl << " Cm = " << Cm << nl
<< " Cd = " << Cd << nl << " Cd = " << Cd << nl
<< " Cl = " << Cl << nl << " Cl = " << Cl << nl
<< " Cl(f) = " << Clf << nl << " Cl(f) = " << Clf << nl
<< " Cl(r) = " << Clr << endl; << " Cl(r) = " << Clr << endl;
}
if (nBin_ > 1) if (nBin_ > 1)
{ {
@ -262,10 +259,7 @@ void Foam::forceCoeffs::write()
file(1) << endl; file(1) << endl;
} }
if (log_) Info(log_)<< endl;
{
Info<< endl;
}
} }
} }

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-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -391,9 +391,8 @@ void Foam::forces::applyBins
void Foam::forces::writeForces() void Foam::forces::writeForces()
{ {
if (log_) Info(log_)
{ << type() << " " << name_ << " output:" << nl
Info<< type() << " " << name_ << " output:" << nl
<< " sum of forces:" << nl << " sum of forces:" << nl
<< " pressure : " << sum(force_[0]) << nl << " pressure : " << sum(force_[0]) << nl
<< " viscous : " << sum(force_[1]) << nl << " viscous : " << sum(force_[1]) << nl
@ -403,7 +402,6 @@ void Foam::forces::writeForces()
<< " viscous : " << sum(moment_[1]) << nl << " viscous : " << sum(moment_[1]) << nl
<< " porous : " << sum(moment_[2]) << " porous : " << sum(moment_[2])
<< endl; << endl;
}
file(0) << obr_.time().value() << tab << setw(1) << '[' file(0) << obr_.time().value() << tab << setw(1) << '['
<< sum(force_[0]) << setw(1) << ',' << sum(force_[0]) << setw(1) << ','
@ -642,10 +640,7 @@ void Foam::forces::read(const dictionary& dict)
log_ = dict.lookupOrDefault<Switch>("log", false); log_ = dict.lookupOrDefault<Switch>("log", false);
if (log_) Info(log_)<< type() << " " << name_ << ":" << nl;
{
Info<< type() << " " << name_ << ":" << nl;
}
directForceDensity_ = dict.lookupOrDefault("directForceDensity", false); directForceDensity_ = dict.lookupOrDefault("directForceDensity", false);
@ -809,10 +804,7 @@ void Foam::forces::write()
writeBins(); writeBins();
if (log_) Info(log_)<< endl;
{
Info<< endl;
}
} }
} }

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -154,7 +154,10 @@ void Foam::calcFvcDiv::execute()
void Foam::calcFvcDiv::end() void Foam::calcFvcDiv::end()
{ {
// Do nothing if (active_)
{
execute();
}
} }

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -116,7 +116,10 @@ void Foam::calcFvcGrad::execute()
void Foam::calcFvcGrad::end() void Foam::calcFvcGrad::end()
{ {
// Do nothing if (active_)
{
execute();
}
} }

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -119,7 +119,10 @@ void Foam::calcMag::execute()
void Foam::calcMag::end() void Foam::calcMag::end()
{ {
// Do nothing if (active_)
{
execute();
}
} }

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -185,7 +185,10 @@ void Foam::CourantNo::execute()
void Foam::CourantNo::end() void Foam::CourantNo::end()
{ {
// Do nothing if (active_)
{
execute();
}
} }

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -142,10 +142,7 @@ void Foam::DESModelRegions::execute()
const fvMesh& mesh = refCast<const fvMesh>(obr_); const fvMesh& mesh = refCast<const fvMesh>(obr_);
if (log_) Info(log_)<< type() << " " << name_ << " output:" << nl;
{
Info<< type() << " " << name_ << " output:" << nl;
}
volScalarField& DESModelRegions = volScalarField& DESModelRegions =
const_cast<volScalarField&> const_cast<volScalarField&>
@ -196,27 +193,25 @@ void Foam::DESModelRegions::execute()
<< endl; << endl;
} }
if (log_) Info(log_)
{ << " LES = " << prc << " % (volume)" << nl
Info<< " LES = " << prc << " % (volume)" << nl
<< " RAS = " << 100.0 - prc << " % (volume)" << endl; << " RAS = " << 100.0 - prc << " % (volume)" << endl;
} }
}
else else
{ {
if (log_) Info(log_)<< " No DES turbulence model found in database" << nl
{
Info<< " No DES turbulence model found in database" << nl
<< endl; << endl;
} }
} }
}
} }
void Foam::DESModelRegions::end() void Foam::DESModelRegions::end()
{ {
// Do nothing if (active_)
{
execute();
}
} }

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -144,7 +144,10 @@ void Foam::Lambda2::execute()
void Foam::Lambda2::end() void Foam::Lambda2::end()
{ {
// Do nothing if (active_)
{
execute();
}
} }

View File

@ -30,6 +30,9 @@ scalarTransport/scalarTransportFunctionObject.C
timeActivatedFileUpdate/timeActivatedFileUpdate.C timeActivatedFileUpdate/timeActivatedFileUpdate.C
timeActivatedFileUpdate/timeActivatedFileUpdateFunctionObject.C timeActivatedFileUpdate/timeActivatedFileUpdateFunctionObject.C
turbulenceFields/turbulenceFields.C
turbulenceFields/turbulenceFieldsFunctionObject.C
wallShearStress/wallShearStress.C wallShearStress/wallShearStress.C
wallShearStress/wallShearStressFunctionObject.C wallShearStress/wallShearStressFunctionObject.C

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -197,7 +197,10 @@ void Foam::Peclet::execute()
void Foam::Peclet::end() void Foam::Peclet::end()
{ {
// Do nothing if (active_)
{
execute();
}
} }
void Foam::Peclet::timeSet() void Foam::Peclet::timeSet()

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -137,7 +137,10 @@ void Foam::Q::execute()
void Foam::Q::end() void Foam::Q::end()
{ {
// Do nothing if (active_)
{
execute();
}
} }

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -101,7 +101,10 @@ void Foam::blendingFactor::execute()
void Foam::blendingFactor::end() void Foam::blendingFactor::end()
{ {
// Do nothing if (active_)
{
execute();
}
} }
void Foam::blendingFactor::timeSet() void Foam::blendingFactor::timeSet()

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) 2012-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -309,7 +309,10 @@ void Foam::pressureTools::execute()
void Foam::pressureTools::end() void Foam::pressureTools::end()
{ {
// Do nothing if (active_)
{
execute();
}
} }

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) 2012-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -214,6 +214,8 @@ void Foam::scalarTransport::read(const dictionary& dict)
void Foam::scalarTransport::execute() void Foam::scalarTransport::execute()
{ {
if (active_)
{
Info<< type() << " output:" << endl; Info<< type() << " output:" << endl;
const surfaceScalarField& phi = const surfaceScalarField& phi =
@ -292,14 +294,17 @@ void Foam::scalarTransport::execute()
<< dimVolume/dimTime << endl; << dimVolume/dimTime << endl;
} }
Info<< endl; Info<< endl;
}
} }
void Foam::scalarTransport::end() void Foam::scalarTransport::end()
{ {
// Do nothing if (active_)
{
execute();
}
} }

View File

@ -43,9 +43,6 @@ SourceFiles
scalarTransport.C scalarTransport.C
IOscalarTransport.H IOscalarTransport.H
SeeAlso
Foam::basicSourceList
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#ifndef scalarTransport_H #ifndef scalarTransport_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-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -132,7 +132,10 @@ void Foam::timeActivatedFileUpdate::execute()
void Foam::timeActivatedFileUpdate::end() void Foam::timeActivatedFileUpdate::end()
{ {
// Do nothing if (active_)
{
execute();
}
} }

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) 2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -257,7 +257,10 @@ void Foam::turbulenceFields::execute()
void Foam::turbulenceFields::end() void Foam::turbulenceFields::end()
{ {
// Do nothing if (active_)
{
execute();
}
} }

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

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) 2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

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) 2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

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) 2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -82,12 +82,9 @@ void Foam::wallShearStress::calcShearStress
<< endl; << endl;
} }
if (log_) Info(log_)<< " min/max(" << pp.name() << ") = "
{
Info<< " min/max(" << pp.name() << ") = "
<< minSsp << ", " << maxSsp << endl; << minSsp << ", " << maxSsp << endl;
} }
}
} }
@ -240,10 +237,7 @@ void Foam::wallShearStress::execute()
mesh.lookupObject<volVectorField>(type()) mesh.lookupObject<volVectorField>(type())
); );
if (log_) Info(log_)<< type() << " " << name_ << " output:" << nl;
{
Info<< type() << " " << name_ << " output:" << nl;
}
tmp<volSymmTensorField> Reff; tmp<volSymmTensorField> Reff;
@ -275,7 +269,10 @@ void Foam::wallShearStress::execute()
void Foam::wallShearStress::end() void Foam::wallShearStress::end()
{ {
// Do nothing if (active_)
{
execute();
}
} }
@ -294,12 +291,9 @@ void Foam::wallShearStress::write()
const volVectorField& wallShearStress = const volVectorField& wallShearStress =
obr_.lookupObject<volVectorField>(type()); obr_.lookupObject<volVectorField>(type());
if (log_) Info(log_)<< type() << " " << name_ << " output:" << nl
{
Info<< type() << " " << name_ << " output:" << nl
<< " writing field " << wallShearStress.name() << nl << " writing field " << wallShearStress.name() << nl
<< endl; << endl;
}
wallShearStress.write(); wallShearStress.write();
} }

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -94,15 +94,12 @@ void Foam::yPlusLES::calcIncompressibleYPlus
scalar maxYp = gMax(Yp); scalar maxYp = gMax(Yp);
scalar avgYp = gAverage(Yp); scalar avgYp = gAverage(Yp);
if (log_)
{
Info<< " patch " << currPatch.name()
<< " y+ : min = " << minYp << ", max = " << maxYp
<< ", average = " << avgYp << nl;
}
if (Pstream::master()) if (Pstream::master())
{ {
Info(log_)<< " patch " << currPatch.name()
<< " y+ : min = " << minYp << ", max = " << maxYp
<< ", average = " << avgYp << nl;
file() << obr_.time().value() file() << obr_.time().value()
<< token::TAB << currPatch.name() << token::TAB << currPatch.name()
<< token::TAB << minYp << token::TAB << minYp
@ -162,15 +159,12 @@ void Foam::yPlusLES::calcCompressibleYPlus
scalar maxYp = gMax(Yp); scalar maxYp = gMax(Yp);
scalar avgYp = gAverage(Yp); scalar avgYp = gAverage(Yp);
if (log_)
{
Info<< " patch " << currPatch.name()
<< " y+ : min = " << minYp << ", max = " << maxYp
<< ", average = " << avgYp << nl;
}
if (Pstream::master()) if (Pstream::master())
{ {
Info(log_)<< " patch " << currPatch.name()
<< " y+ : min = " << minYp << ", max = " << maxYp
<< ", average = " << avgYp << nl;
file() << obr_.time().value() file() << obr_.time().value()
<< token::TAB << currPatch.name() << token::TAB << currPatch.name()
<< token::TAB << minYp << token::TAB << minYp
@ -286,10 +280,7 @@ void Foam::yPlusLES::execute()
mesh.lookupObject<volScalarField>(type()) mesh.lookupObject<volScalarField>(type())
); );
if (log_) Info(log_)<< type() << " " << name_ << " output:" << nl;
{
Info<< type() << " " << name_ << " output:" << nl;
}
if (phi.dimensions() == dimMass/dimTime) if (phi.dimensions() == dimMass/dimTime)
{ {
@ -305,7 +296,10 @@ void Foam::yPlusLES::execute()
void Foam::yPlusLES::end() void Foam::yPlusLES::end()
{ {
// Do nothing if (active_)
{
execute();
}
} }
@ -324,10 +318,7 @@ void Foam::yPlusLES::write()
const volScalarField& yPlusLES = const volScalarField& yPlusLES =
obr_.lookupObject<volScalarField>(type()); obr_.lookupObject<volScalarField>(type());
if (log_) Info(log_)<< " writing field " << yPlusLES.name() << nl << endl;
{
Info<< " writing field " << yPlusLES.name() << nl << endl;
}
yPlusLES.write(); yPlusLES.write();
} }

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -89,15 +89,12 @@ void Foam::yPlusRAS::calcIncompressibleYPlus
scalar maxYp = gMax(Yp); scalar maxYp = gMax(Yp);
scalar avgYp = gAverage(Yp); scalar avgYp = gAverage(Yp);
if (log_)
{
Info<< " patch " << nutPw.patch().name()
<< " y+ : min = " << minYp << ", max = " << maxYp
<< ", average = " << avgYp << nl;
}
if (Pstream::master()) if (Pstream::master())
{ {
Info(log_)<< " patch " << nutPw.patch().name()
<< " y+ : min = " << minYp << ", max = " << maxYp
<< ", average = " << avgYp << nl;
file() << obr_.time().value() file() << obr_.time().value()
<< token::TAB << nutPw.patch().name() << token::TAB << nutPw.patch().name()
<< token::TAB << minYp << token::TAB << minYp
@ -149,15 +146,12 @@ void Foam::yPlusRAS::calcCompressibleYPlus
scalar maxYp = gMax(Yp); scalar maxYp = gMax(Yp);
scalar avgYp = gAverage(Yp); scalar avgYp = gAverage(Yp);
if (log_)
{
Info<< " patch " << mutPw.patch().name()
<< " y+ : min = " << minYp << ", max = " << maxYp
<< ", average = " << avgYp << nl;
}
if (Pstream::master()) if (Pstream::master())
{ {
Info(log_)<< " patch " << mutPw.patch().name()
<< " y+ : min = " << minYp << ", max = " << maxYp
<< ", average = " << avgYp << nl;
file() << obr_.time().value() file() << obr_.time().value()
<< token::TAB << mutPw.patch().name() << token::TAB << mutPw.patch().name()
<< token::TAB << minYp << token::TAB << minYp
@ -271,10 +265,7 @@ void Foam::yPlusRAS::execute()
mesh.lookupObject<volScalarField>(type()) mesh.lookupObject<volScalarField>(type())
); );
if (log_) Info(log_)<< type() << " " << name_ << " output:" << nl;
{
Info<< type() << " " << name_ << " output:" << nl;
}
if (phi.dimensions() == dimMass/dimTime) if (phi.dimensions() == dimMass/dimTime)
{ {
@ -290,7 +281,10 @@ void Foam::yPlusRAS::execute()
void Foam::yPlusRAS::end() void Foam::yPlusRAS::end()
{ {
// Do nothing if (active_)
{
execute();
}
} }
@ -309,10 +303,7 @@ void Foam::yPlusRAS::write()
const volScalarField& yPlusRAS = const volScalarField& yPlusRAS =
obr_.lookupObject<volScalarField>(type()); obr_.lookupObject<volScalarField>(type());
if (log_) Info(log_)<< " writing field " << yPlusRAS.name() << nl << endl;
{
Info<< " writing field " << yPlusRAS.name() << nl << endl;
}
yPlusRAS.write(); yPlusRAS.write();
} }

View File

@ -121,9 +121,9 @@ Foam::sixDoFRigidBodyMotionSolver::sixDoFRigidBodyMotionSolver
max max
( (
(do_ - pDist.internalField())/(do_ - di_), (do_ - pDist.internalField())/(do_ - di_),
0.0 scalar(0)
), ),
1.0 scalar(1)
); );
// Convert the scale function to a cosine // Convert the scale function to a cosine
@ -136,9 +136,9 @@ Foam::sixDoFRigidBodyMotionSolver::sixDoFRigidBodyMotionSolver
- 0.5 - 0.5
*cos(scale_.internalField() *cos(scale_.internalField()
*Foam::constant::mathematical::pi), *Foam::constant::mathematical::pi),
0.0 scalar(0)
), ),
1.0 scalar(1)
); );
scale_.correctBoundaryConditions(); scale_.correctBoundaryConditions();

View File

@ -86,7 +86,7 @@ castellatedMeshControls
features features
( (
{ {
file "flange.eMesh"; file "flange.extendedFeatureEdgeMesh";
level 0; level 0;
} }
); );
@ -301,12 +301,13 @@ meshQualityControls
// Advanced // Advanced
// Flags for optional output // Write flags
// 0 : only write final meshes writeFlags
// 1 : write intermediate meshes (
// 2 : write volScalarField with cellLevel for postprocessing scalarLevels // write volScalarField with cellLevel for postprocessing
// 4 : write current intersections as .obj files layerSets // write cellSets, faceSets of faces in layer
debug 0; layerFields // write volScalarField for layer coverage
);
// Merge tolerance. Is fraction of overall bounding box of initial mesh. // Merge tolerance. Is fraction of overall bounding box of initial mesh.

Some files were not shown because too many files have changed in this diff Show More