mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
changed back the handling of verbose flag
This commit is contained in:
@ -78,11 +78,11 @@ cfdemCloud::cfdemCloud
|
|||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
solveFlow_(couplingProperties_.lookupOrDefault<bool>("solveFlow", true)),
|
solveFlow_(couplingProperties_.found("solveFlow")),
|
||||||
verbose_(couplingProperties_.lookupOrDefault<bool>("verbose", false)),
|
verbose_(couplingProperties_.found("verbose")),
|
||||||
ignore_(couplingProperties_.lookupOrDefault<bool>("ignore", false)),
|
ignore_(couplingProperties_.found("ignore")),
|
||||||
allowCFDsubTimestep_(true),
|
allowCFDsubTimestep_(true),
|
||||||
limitDEMForces_(couplingProperties_.lookupOrDefault<bool>("limitDEMForces",false)),
|
limitDEMForces_(couplingProperties_.found("limitDEMForces")),
|
||||||
maxDEMForce_(0.),
|
maxDEMForce_(0.),
|
||||||
modelType_(couplingProperties_.lookup("modelType")),
|
modelType_(couplingProperties_.lookup("modelType")),
|
||||||
positions_(NULL),
|
positions_(NULL),
|
||||||
@ -224,8 +224,7 @@ cfdemCloud::cfdemCloud
|
|||||||
buildInfo.info();
|
buildInfo.info();
|
||||||
|
|
||||||
Info << "If BC are important, please provide volScalarFields -imp/expParticleForces-" << endl;
|
Info << "If BC are important, please provide volScalarFields -imp/expParticleForces-" << endl;
|
||||||
/*if (couplingProperties_.found("solveFlow"))
|
|
||||||
solveFlow_=Switch(couplingProperties_.lookup("solveFlow"));*/
|
|
||||||
if (couplingProperties_.found("imExSplitFactor"))
|
if (couplingProperties_.found("imExSplitFactor"))
|
||||||
imExSplitFactor_ = readScalar(couplingProperties_.lookup("imExSplitFactor"));
|
imExSplitFactor_ = readScalar(couplingProperties_.lookup("imExSplitFactor"));
|
||||||
|
|
||||||
|
|||||||
@ -64,16 +64,16 @@ KochHillRWDrag::KochHillRWDrag
|
|||||||
:
|
:
|
||||||
forceModel(dict,sm),
|
forceModel(dict,sm),
|
||||||
propsDict_(dict.subDict(typeName + "Props")),
|
propsDict_(dict.subDict(typeName + "Props")),
|
||||||
verbose_(propsDict_.lookupOrDefault<bool>("verbose", false)),
|
verbose_(propsDict_.found("verbose")),
|
||||||
velFieldName_(propsDict_.lookup("velFieldName")),
|
velFieldName_(propsDict_.lookup("velFieldName")),
|
||||||
U_(sm.mesh().lookupObject<volVectorField> (velFieldName_)),
|
U_(sm.mesh().lookupObject<volVectorField> (velFieldName_)),
|
||||||
voidfractionFieldName_(propsDict_.lookup("voidfractionFieldName")),
|
voidfractionFieldName_(propsDict_.lookup("voidfractionFieldName")),
|
||||||
voidfraction_(sm.mesh().lookupObject<volScalarField> (voidfractionFieldName_)),
|
voidfraction_(sm.mesh().lookupObject<volScalarField> (voidfractionFieldName_)),
|
||||||
UsFieldName_(propsDict_.lookupOrDefault("granVelFieldName",word("Us"))),
|
UsFieldName_(propsDict_.lookupOrDefault("granVelFieldName",word("Us"))),
|
||||||
UsField_(sm.mesh().lookupObject<volVectorField> (UsFieldName_)),
|
UsField_(sm.mesh().lookupObject<volVectorField> (UsFieldName_)),
|
||||||
interpolation_(propsDict_.lookupOrDefault<bool>("interpolation", false)),
|
interpolation_(propsDict_.found("interpolation")),
|
||||||
scale_(1.),
|
scale_(1.),
|
||||||
randomTauE_(propsDict_.lookupOrDefault<bool>("randomTauE", false)),
|
randomTauE_(propsDict_.found("randomTauE")),
|
||||||
partTime_(NULL),
|
partTime_(NULL),
|
||||||
partUfluct_(NULL),
|
partUfluct_(NULL),
|
||||||
RanGen_(label(0))
|
RanGen_(label(0))
|
||||||
|
|||||||
@ -64,7 +64,7 @@ SchillerNaumannDrag::SchillerNaumannDrag
|
|||||||
:
|
:
|
||||||
forceModel(dict,sm),
|
forceModel(dict,sm),
|
||||||
propsDict_(dict.subDict(typeName + "Props")),
|
propsDict_(dict.subDict(typeName + "Props")),
|
||||||
verbose_(propsDict_.lookupOrDefault<bool>("verbose", false)),
|
verbose_(propsDict_.found("verbose")),
|
||||||
velFieldName_(propsDict_.lookup("velFieldName")),
|
velFieldName_(propsDict_.lookup("velFieldName")),
|
||||||
U_(sm.mesh().lookupObject<volVectorField> (velFieldName_))
|
U_(sm.mesh().lookupObject<volVectorField> (velFieldName_))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -63,8 +63,8 @@ ShirgaonkarIB::ShirgaonkarIB
|
|||||||
:
|
:
|
||||||
forceModel(dict,sm),
|
forceModel(dict,sm),
|
||||||
propsDict_(dict.subDict(typeName + "Props")),
|
propsDict_(dict.subDict(typeName + "Props")),
|
||||||
verbose_(propsDict_.lookupOrDefault<bool>("verbose", false)),
|
verbose_(propsDict_.found("verbose")),
|
||||||
twoDimensional_(propsDict_.lookupOrDefault<bool>("twoDimensional", false)),
|
twoDimensional_(propsDict_.found("twoDimensional")),
|
||||||
depth_(1),
|
depth_(1),
|
||||||
velFieldName_(propsDict_.lookup("velFieldName")),
|
velFieldName_(propsDict_.lookup("velFieldName")),
|
||||||
U_(sm.mesh().lookupObject<volVectorField> (velFieldName_)),
|
U_(sm.mesh().lookupObject<volVectorField> (velFieldName_)),
|
||||||
|
|||||||
@ -62,9 +62,9 @@ noDrag::noDrag
|
|||||||
:
|
:
|
||||||
forceModel(dict,sm),
|
forceModel(dict,sm),
|
||||||
propsDict_(dict),
|
propsDict_(dict),
|
||||||
verbose_(propsDict_.lookupOrDefault<bool>("verbose", false)),
|
verbose_(propsDict_.found("verbose")),
|
||||||
noDEMForce_(propsDict_.lookupOrDefault<bool>("noDEMForce", false)),
|
noDEMForce_(propsDict_.found("noDEMForce")),
|
||||||
keepCFDForce_(propsDict_.lookupOrDefault<bool>("keepCFDForce", false))
|
keepCFDForce_(propsDict_.found("keepCFDForce"))
|
||||||
{
|
{
|
||||||
if(dict.found(word(typeName + "Props")))
|
if(dict.found(word(typeName + "Props")))
|
||||||
propsDict_=dictionary(dict.subDict(typeName + "Props"));
|
propsDict_=dictionary(dict.subDict(typeName + "Props"));
|
||||||
|
|||||||
@ -94,7 +94,7 @@ particleCellVolume::particleCellVolume
|
|||||||
),
|
),
|
||||||
upperThreshold_(readScalar(propsDict_.lookup("upperThreshold"))),
|
upperThreshold_(readScalar(propsDict_.lookup("upperThreshold"))),
|
||||||
lowerThreshold_(readScalar(propsDict_.lookup("lowerThreshold"))),
|
lowerThreshold_(readScalar(propsDict_.lookup("lowerThreshold"))),
|
||||||
verbose_(propsDict_.lookupOrDefault<bool>("verbose", false))
|
verbose_(propsDict_.found("verbose"))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -70,7 +70,7 @@ virtualMassForce::virtualMassForce
|
|||||||
phiFieldName_(propsDict_.lookup("phiFieldName")),
|
phiFieldName_(propsDict_.lookup("phiFieldName")),
|
||||||
phi_(sm.mesh().lookupObject<surfaceScalarField> (phiFieldName_)),
|
phi_(sm.mesh().lookupObject<surfaceScalarField> (phiFieldName_)),
|
||||||
UrelOld_(NULL),
|
UrelOld_(NULL),
|
||||||
splitUrelCalculation_(propsDict_.lookupOrDefault<bool>("splitUrelCalculation", false)),
|
splitUrelCalculation_(propsDict_.found("splitUrelCalculation")),
|
||||||
Cadd_(0.5)
|
Cadd_(0.5)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@ -69,7 +69,7 @@ volWeightedAverage::volWeightedAverage
|
|||||||
vectorFieldNames_(propsDict_.lookup("vectorFieldNames")),
|
vectorFieldNames_(propsDict_.lookup("vectorFieldNames")),
|
||||||
upperThreshold_(readScalar(propsDict_.lookup("upperThreshold"))),
|
upperThreshold_(readScalar(propsDict_.lookup("upperThreshold"))),
|
||||||
lowerThreshold_(readScalar(propsDict_.lookup("lowerThreshold"))),
|
lowerThreshold_(readScalar(propsDict_.lookup("lowerThreshold"))),
|
||||||
verbose_(propsDict_.lookupOrDefault<bool>("verbose", false))
|
verbose_(propsDict_.found("verbose"))
|
||||||
{
|
{
|
||||||
// create vol weighted average scalar fields
|
// create vol weighted average scalar fields
|
||||||
scalarFields_.setSize(scalarFieldNames_.size());
|
scalarFields_.setSize(scalarFieldNames_.size());
|
||||||
|
|||||||
@ -66,10 +66,7 @@ runLiggghts::runLiggghts
|
|||||||
command_("run"),
|
command_("run"),
|
||||||
preNo_(propsDict_.lookupOrDefault<bool>("preNo", true))
|
preNo_(propsDict_.lookupOrDefault<bool>("preNo", true))
|
||||||
{
|
{
|
||||||
if (propsDict_.found("verbose"))
|
verbose_ = propsDict_.found("verbose");
|
||||||
{
|
|
||||||
verbose_ = propsDict_.lookup("verbose");
|
|
||||||
}
|
|
||||||
|
|
||||||
runEveryCouplingStep_ = true;
|
runEveryCouplingStep_ = true;
|
||||||
|
|
||||||
@ -94,11 +91,10 @@ const char* runLiggghts::command(int commandLine)
|
|||||||
|
|
||||||
string runLiggghts::createCommand( word command, int interval, word appendix, word appendix2, word appendix3, word appendix4)
|
string runLiggghts::createCommand( word command, int interval, word appendix, word appendix2, word appendix3, word appendix4)
|
||||||
{
|
{
|
||||||
fileName add;
|
OStringStream oStrStream;
|
||||||
char h[50];
|
oStrStream << interval;
|
||||||
sprintf(h, "%d", interval);
|
|
||||||
add = h;
|
command += " " + oStrStream.str() + " " + appendix + " " + appendix2 + " " + appendix3 + " " + appendix4;
|
||||||
command += " " + add + " " + appendix + " " + appendix2 + " " + appendix3 + " " + appendix4;
|
|
||||||
|
|
||||||
return string(command);
|
return string(command);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -70,10 +70,7 @@ writeLiggghts::writeLiggghts
|
|||||||
overwrite_(false)
|
overwrite_(false)
|
||||||
{
|
{
|
||||||
// check if verbose
|
// check if verbose
|
||||||
if (propsDict_.found("verbose"))
|
verbose_ = propsDict_.found("verbose");
|
||||||
{
|
|
||||||
verbose_ = propsDict_.lookup("verbose");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (propsDict_.found("path"))
|
if (propsDict_.found("path"))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -68,16 +68,16 @@ particleProbe::particleProbe
|
|||||||
propsDict_(dict.subDict(typeName + "Props")),
|
propsDict_(dict.subDict(typeName + "Props")),
|
||||||
name_(typeName),
|
name_(typeName),
|
||||||
particleCloud_(sm),
|
particleCloud_(sm),
|
||||||
verbose_(propsDict_.lookupOrDefault<bool>("verbose", false)),
|
verbose_(propsDict_.found("verbose")),
|
||||||
verboseToFile_(propsDict_.lookupOrDefault<bool>("verboseToFile", false)),
|
verboseToFile_(propsDict_.found("verboseToFile")),
|
||||||
writePrecision_(propsDict_.lookupOrDefault<int>("writePrecision", 3)),
|
writePrecision_(propsDict_.lookupOrDefault<int>("writePrecision", 3)),
|
||||||
dirName_("particleProbes"),
|
dirName_("particleProbes"),
|
||||||
rank_(-1),
|
rank_(-1),
|
||||||
sPtr(NULL),
|
sPtr(NULL),
|
||||||
printEvery_(propsDict_.lookupOrDefault<int>("printEvery", 1)),
|
printEvery_(propsDict_.lookupOrDefault<int>("printEvery", 1)),
|
||||||
sampleAll_(propsDict_.lookupOrDefault<bool>("sampleAll", false)),
|
sampleAll_(propsDict_.found("sampleAll")),
|
||||||
probeDebug_(propsDict_.lookupOrDefault<bool>("probeDebug", false)),
|
probeDebug_(propsDict_.found("probeDebug")),
|
||||||
includePosition_(propsDict_.lookupOrDefault<bool>("includePosition", false)),
|
includePosition_(propsDict_.found("includePosition")),
|
||||||
particleIDsToSample_(propsDict_.lookup("particleIDsToSample")),
|
particleIDsToSample_(propsDict_.lookup("particleIDsToSample")),
|
||||||
itemCounter_(0),
|
itemCounter_(0),
|
||||||
currItemId_(0),
|
currItemId_(0),
|
||||||
|
|||||||
@ -68,7 +68,7 @@ constDiffSmoothing::constDiffSmoothing
|
|||||||
smoothingLength_(dimensionedScalar("smoothingLength", dimLength, readScalar(propsDict_.lookup("smoothingLength")))),
|
smoothingLength_(dimensionedScalar("smoothingLength", dimLength, readScalar(propsDict_.lookup("smoothingLength")))),
|
||||||
smoothingLengthReferenceField_(dimensionedScalar("smoothingLengthReferenceField", dimLength, readScalar(propsDict_.lookup("smoothingLength")))),
|
smoothingLengthReferenceField_(dimensionedScalar("smoothingLengthReferenceField", dimLength, readScalar(propsDict_.lookup("smoothingLength")))),
|
||||||
DT_("DT", dimensionSet(0,2,-1,0,0), 0.),
|
DT_("DT", dimensionSet(0,2,-1,0,0), 0.),
|
||||||
verbose_(propsDict_.lookupOrDefault<bool>("verbose", false))
|
verbose_(propsDict_.found("verbose"))
|
||||||
{
|
{
|
||||||
if(propsDict_.found("smoothingLengthReferenceField"))
|
if(propsDict_.found("smoothingLengthReferenceField"))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -64,12 +64,12 @@ dividedVoidFraction::dividedVoidFraction
|
|||||||
:
|
:
|
||||||
voidFractionModel(dict,sm),
|
voidFractionModel(dict,sm),
|
||||||
propsDict_(dict.subDict(typeName + "Props")),
|
propsDict_(dict.subDict(typeName + "Props")),
|
||||||
verbose_(propsDict_.lookupOrDefault<bool>("verbose", false)),
|
verbose_(propsDict_.found("verbose")),
|
||||||
procBoundaryCorrection_(propsDict_.lookupOrDefault<Switch>("procBoundaryCorrection", false)),
|
procBoundaryCorrection_(propsDict_.lookupOrDefault<Switch>("procBoundaryCorrection", false)),
|
||||||
alphaMin_(readScalar(propsDict_.lookup("alphaMin"))),
|
alphaMin_(readScalar(propsDict_.lookup("alphaMin"))),
|
||||||
alphaLimited_(0),
|
alphaLimited_(0),
|
||||||
tooMuch_(0.0),
|
tooMuch_(0.0),
|
||||||
interpolation_(propsDict_.lookupOrDefault<bool>("interpolation", false)),
|
interpolation_(propsDict_.found("interpolation")),
|
||||||
cfdemUseOnly_(propsDict_.lookupOrDefault<bool>("cfdemUseOnly", false))
|
cfdemUseOnly_(propsDict_.lookupOrDefault<bool>("cfdemUseOnly", false))
|
||||||
{
|
{
|
||||||
maxCellsPerParticle_ = numberOfMarkerPoints;
|
maxCellsPerParticle_ = numberOfMarkerPoints;
|
||||||
|
|||||||
Reference in New Issue
Block a user