mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updated Info, Warning and Error messages
This commit is contained in:
@ -160,7 +160,7 @@ void Foam::fieldMinMax::write()
|
||||
{
|
||||
if (active_)
|
||||
{
|
||||
if (!writeLocation_) writeTime(obr_.time().value());
|
||||
if (!writeLocation_) writeTime(file());
|
||||
|
||||
if (log_) Info<< type() << " " << name_ << " output:" << nl;
|
||||
|
||||
|
||||
@ -180,7 +180,7 @@ void Foam::fieldValues::fieldValueDelta::execute()
|
||||
|
||||
if (entries1.size() != entries2.size())
|
||||
{
|
||||
FatalErrorIn("void Foam::fieldValues::fieldValueDelta::execute()")
|
||||
FatalErrorInFunction
|
||||
<< name_ << ": objects must generate the same number of results"
|
||||
<< nl
|
||||
<< " " << name1 << " objects: " << entries1 << nl
|
||||
@ -197,10 +197,7 @@ void Foam::fieldValues::fieldValueDelta::execute()
|
||||
|
||||
if (type1 != type2)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void Foam::fieldValues::fieldValueDelta::execute()"
|
||||
)
|
||||
FatalErrorInFunction
|
||||
<< name_
|
||||
<< ": input values for operation must be of the same type"
|
||||
<< nl
|
||||
|
||||
@ -47,13 +47,7 @@ void Foam::nearWallFields::createFields
|
||||
|
||||
if (obr_.found(sampleFldName))
|
||||
{
|
||||
WarningIn
|
||||
(
|
||||
"void Foam::nearWallFields::createFields"
|
||||
"("
|
||||
"PtrList<GeometricField<Type, fvPatchField, volMesh> >&"
|
||||
") const"
|
||||
)
|
||||
WarningInFunction
|
||||
<< " a field named " << sampleFldName
|
||||
<< " already exists on the mesh"
|
||||
<< endl;
|
||||
|
||||
@ -165,7 +165,7 @@ void Foam::streamLineBase::initInterpolations
|
||||
}
|
||||
else
|
||||
{
|
||||
FatalErrorIn("streamLineBase::track()")
|
||||
FatalErrorInFunction
|
||||
<< "Cannot find field " << fields_[i] << nl
|
||||
<< "Valid scalar fields are:"
|
||||
<< mesh.names(volScalarField::typeName) << nl
|
||||
@ -238,7 +238,7 @@ void Foam::streamLineBase::initInterpolations
|
||||
|
||||
if (UIndex == -1)
|
||||
{
|
||||
FatalErrorIn("streamLineBase::track()")
|
||||
FatalErrorInFunction
|
||||
<< "Cannot find field to move particles with : " << UName_ << nl
|
||||
<< "This field has to be present in the sampled fields " << fields_
|
||||
<< " and in the objectRegistry."
|
||||
@ -575,7 +575,7 @@ void Foam::streamLineBase::read(const dictionary& dict)
|
||||
UName_ = "U";
|
||||
if (dict.found("U"))
|
||||
{
|
||||
IOWarningIn("streamLineBase::read(const dictionary&)", dict)
|
||||
IOWarningInFunction(dict)
|
||||
<< "Using deprecated entry \"U\"."
|
||||
<< " Please use \"UName\" instead."
|
||||
<< endl;
|
||||
@ -585,7 +585,7 @@ void Foam::streamLineBase::read(const dictionary& dict)
|
||||
|
||||
if (findIndex(fields_, UName_) == -1)
|
||||
{
|
||||
FatalIOErrorIn("streamLineBase::read(const dictionary&)", dict)
|
||||
FatalIOErrorInFunction(dict)
|
||||
<< "Velocity field for tracking " << UName_
|
||||
<< " should be present in the list of fields " << fields_
|
||||
<< exit(FatalIOError);
|
||||
@ -596,7 +596,7 @@ void Foam::streamLineBase::read(const dictionary& dict)
|
||||
dict.lookup("lifeTime") >> lifeTime_;
|
||||
if (lifeTime_ < 1)
|
||||
{
|
||||
FatalErrorIn(":streamLineBase::read(const dictionary&)")
|
||||
FatalErrorInFunction
|
||||
<< "Illegal value " << lifeTime_ << " for lifeTime"
|
||||
<< exit(FatalError);
|
||||
}
|
||||
|
||||
@ -162,7 +162,7 @@ void Foam::valueAverage::execute()
|
||||
|
||||
if (unprocessedFields.size())
|
||||
{
|
||||
WarningIn("bool Foam::valueAverage::execute()")
|
||||
WarningInFunction
|
||||
<< "From function object: " << functionObjectName_ << nl
|
||||
<< "Unprocessed fields:" << nl;
|
||||
|
||||
|
||||
@ -923,10 +923,8 @@ void Foam::forces::read(const dictionary& dict)
|
||||
|
||||
if (nBin_ < 0)
|
||||
{
|
||||
FatalIOErrorIn
|
||||
(
|
||||
"void Foam::forces::read(const dictionary&)", dict
|
||||
) << "Number of bins (nBin) must be zero or greater"
|
||||
FatalIOErrorInFunction(dict)
|
||||
<< "Number of bins (nBin) must be zero or greater"
|
||||
<< exit(FatalIOError);
|
||||
}
|
||||
else if (nBin_ == 0)
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -407,19 +407,7 @@ void Foam::fieldVisualisationBase::addGlyphs
|
||||
}
|
||||
else
|
||||
{
|
||||
WarningIn
|
||||
(
|
||||
"void Foam::fieldVisualisationBase::addGlyphs"
|
||||
"("
|
||||
"const scalar, "
|
||||
"const word&, "
|
||||
"const word&, "
|
||||
"const scalar, "
|
||||
"vtkPolyData*, "
|
||||
"vtkActor*, "
|
||||
"vtkRenderer*"
|
||||
") const"
|
||||
)
|
||||
WarningInFunction
|
||||
<< "Glyphs can only be added to " << pTraits<scalar>::typeName
|
||||
<< " and " << pTraits<vector>::typeName << " fields. "
|
||||
<< " Field " << scaleFieldName << " has " << nComponents
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -102,14 +102,7 @@ void Foam::functionObjectCloud::addGeometryToScene
|
||||
|
||||
if (fName.empty())
|
||||
{
|
||||
WarningIn
|
||||
(
|
||||
"void Foam::functionObjectCloud::addToScene"
|
||||
"("
|
||||
"const scalar, "
|
||||
"vtkRenderer*"
|
||||
")"
|
||||
)
|
||||
WarningInFunction
|
||||
<< "Unable to find function object " << functionObject_
|
||||
<< " output for field " << fieldName_
|
||||
<< ". Line will not be processed"
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -93,14 +93,7 @@ void Foam::functionObjectLine::addGeometryToScene
|
||||
fileName fName;
|
||||
if (!dict.readIfPresent("file", fName))
|
||||
{
|
||||
WarningIn
|
||||
(
|
||||
"void Foam::functionObjectLine::addToScene"
|
||||
"("
|
||||
"const scalar, "
|
||||
"vtkRenderer*"
|
||||
")"
|
||||
)
|
||||
WarningInFunction
|
||||
<< "Unable to find function object " << functionObject_
|
||||
<< " output for field " << fieldName_
|
||||
<< ". Line will not be processed"
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -95,14 +95,7 @@ void Foam::functionObjectSurface::addGeometryToScene
|
||||
fileName fName;
|
||||
if (!dict.readIfPresent("file", fName))
|
||||
{
|
||||
WarningIn
|
||||
(
|
||||
"void Foam::functionObjectSurface::addToScene"
|
||||
"("
|
||||
"const scalar, "
|
||||
"vtkRenderer*"
|
||||
")"
|
||||
)
|
||||
WarningInFunction
|
||||
<< "Unable to find function object " << functionObject_
|
||||
<< " output for field " << fieldName_
|
||||
<< ". Surface will not be processed"
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -64,15 +64,7 @@ void Foam::geometrySurface::addGeometryToScene
|
||||
{
|
||||
if (representation_ == rtGlyph)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void Foam::geometrySurface::addGeometryToScene"
|
||||
"("
|
||||
"const label, "
|
||||
"vtkRenderer*, "
|
||||
"const fileName&"
|
||||
") const"
|
||||
)
|
||||
FatalErrorInFunction
|
||||
<< "Glyph representation not available for " << typeName
|
||||
<< "object" << exit(FatalError);
|
||||
}
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -182,16 +182,8 @@ Foam::autoPtr<Foam::pathline> Foam::pathline::New
|
||||
|
||||
if (cstrIter == dictionaryConstructorTablePtr_->end())
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"Foam::autoPtr<Foam::pathline> Foam::pathline::New"
|
||||
"("
|
||||
"const runTimePostProcessing&, "
|
||||
"const dictionary&, "
|
||||
"const HashPtrTable<DataEntry<vector>, word>&, "
|
||||
"const word&"
|
||||
")"
|
||||
) << "Unknown pathline type "
|
||||
FatalErrorInFunction
|
||||
<< "Unknown pathline type "
|
||||
<< pathlineType << nl << nl
|
||||
<< "Valid pathline types are:" << endl
|
||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -142,16 +142,8 @@ Foam::autoPtr<Foam::pointData> Foam::pointData::New
|
||||
|
||||
if (cstrIter == dictionaryConstructorTablePtr_->end())
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"Foam::autoPtr<Foam::pointData> Foam::pointData::New"
|
||||
"("
|
||||
"const runTimePostProcessing&, "
|
||||
"const dictionary&, "
|
||||
"const HashPtrTable<DataEntry<vector>, word>&, "
|
||||
"const word&"
|
||||
")"
|
||||
) << "Unknown pointData type "
|
||||
FatalErrorInFunction
|
||||
<< "Unknown pointData type "
|
||||
<< pointDataType << nl << nl
|
||||
<< "Valid pointData types are:" << endl
|
||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -102,11 +102,7 @@ void Foam::runTimePostProcessing::read(const dictionary& dict)
|
||||
{
|
||||
if (!iter().isDict())
|
||||
{
|
||||
FatalIOErrorIn
|
||||
(
|
||||
"void Foam::runTimePostProcessing::read(const dictionary&)",
|
||||
textDict
|
||||
)
|
||||
FatalIOErrorInFunction(textDict)
|
||||
<< "text must be specified in dictionary format"
|
||||
<< exit(FatalIOError);
|
||||
}
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -37,15 +37,7 @@ void Foam::runTimePostProcessing::readObjects
|
||||
{
|
||||
if (!iter().isDict())
|
||||
{
|
||||
FatalIOErrorIn
|
||||
(
|
||||
"void Foam::runTimePostProcessing::readObjects"
|
||||
"("
|
||||
"const dictionary&, "
|
||||
"PtrList<Type>&"
|
||||
")",
|
||||
dict
|
||||
)
|
||||
FatalIOErrorInFunction(dict)
|
||||
<< dict.dictName()
|
||||
<< " objects must be specified in dictionary format"
|
||||
<< exit(FatalIOError);
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -61,11 +61,8 @@ void Foam::scene::readCamera(const dictionary& dict)
|
||||
{
|
||||
if (nFrameTotal_ < 1)
|
||||
{
|
||||
FatalIOErrorIn
|
||||
(
|
||||
"void Foam::scene::readCamera(const dictionary&)",
|
||||
dict
|
||||
) << "nFrameTotal must be 1 or greater"
|
||||
FatalIOErrorInFunction(dict)
|
||||
<< "nFrameTotal must be 1 or greater"
|
||||
<< exit(FatalIOError);
|
||||
}
|
||||
}
|
||||
@ -74,11 +71,8 @@ void Foam::scene::readCamera(const dictionary& dict)
|
||||
{
|
||||
if ((position_ < 0) || (position_ > 1))
|
||||
{
|
||||
FatalIOErrorIn
|
||||
(
|
||||
"void Foam::scene::readCamera(const dictionary&)",
|
||||
dict
|
||||
) << "startPosition must be in the range 0-1"
|
||||
FatalIOErrorInFunction(dict)
|
||||
<< "startPosition must be in the range 0-1"
|
||||
<< exit(FatalIOError);
|
||||
}
|
||||
}
|
||||
@ -91,11 +85,8 @@ void Foam::scene::readCamera(const dictionary& dict)
|
||||
scalar endPosition = dict.lookupOrDefault<scalar>("endPosition", 1);
|
||||
if ((endPosition < 0) || (endPosition > 1))
|
||||
{
|
||||
FatalIOErrorIn
|
||||
(
|
||||
"void Foam::scene::readCamera(const dictionary&)",
|
||||
dict
|
||||
) << "endPosition must be in the range 0-1"
|
||||
FatalIOErrorInFunction(dict)
|
||||
<< "endPosition must be in the range 0-1"
|
||||
<< exit(FatalIOError);
|
||||
}
|
||||
dPosition_ = (endPosition - position_)/scalar(nFrameTotal_ - 1);
|
||||
@ -137,7 +128,7 @@ void Foam::scene::readCamera(const dictionary& dict)
|
||||
}
|
||||
default:
|
||||
{
|
||||
FatalErrorIn("void Foam::scene::read(const dictionary&)")
|
||||
FatalErrorInFunction
|
||||
<< "Unhandled enumeration " << modeTypeNames_[mode_]
|
||||
<< abort(FatalError);
|
||||
}
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -205,16 +205,8 @@ Foam::autoPtr<Foam::surface> Foam::surface::New
|
||||
|
||||
if (cstrIter == dictionaryConstructorTablePtr_->end())
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"Foam::autoPtr<Foam::surface> Foam::surface::New"
|
||||
"("
|
||||
"const runTimePostProcessing&, "
|
||||
"const dictionary&, "
|
||||
"const HashPtrTable<DataEntry<vector>, word>&, "
|
||||
"const word&"
|
||||
")"
|
||||
) << "Unknown surface type "
|
||||
FatalErrorInFunction
|
||||
<< "Unknown surface type "
|
||||
<< surfaceType << nl << nl
|
||||
<< "Valid surface types are:" << endl
|
||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
||||
|
||||
@ -203,12 +203,7 @@ void Foam::externalCoupledFunctionObject::wait() const
|
||||
{
|
||||
if (totalTime > timeOut_)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void "
|
||||
"Foam::externalCoupledFunctionObject::wait() "
|
||||
"const"
|
||||
)
|
||||
FatalErrorInFunction
|
||||
<< "Wait time exceeded time out time of " << timeOut_
|
||||
<< " s" << abort(FatalError);
|
||||
}
|
||||
@ -280,11 +275,8 @@ void Foam::externalCoupledFunctionObject::readColumns
|
||||
{
|
||||
if (!masterFilePtr().good())
|
||||
{
|
||||
FatalIOErrorIn
|
||||
(
|
||||
"externalCoupledFunctionObject::readColumns()",
|
||||
masterFilePtr()
|
||||
) << "Trying to read data for processor " << procI
|
||||
FatalIOErrorInFunction(masterFilePtr())
|
||||
<< "Trying to read data for processor " << procI
|
||||
<< " row " << rowI
|
||||
<< ". Does your file have as many rows as there are"
|
||||
<< " patch faces (" << globalFaces.size()
|
||||
@ -347,11 +339,8 @@ void Foam::externalCoupledFunctionObject::readLines
|
||||
{
|
||||
if (!masterFilePtr().good())
|
||||
{
|
||||
FatalIOErrorIn
|
||||
(
|
||||
"externalCoupledFunctionObject::readColumns()",
|
||||
masterFilePtr()
|
||||
) << "Trying to read data for processor " << procI
|
||||
FatalIOErrorInFunction(masterFilePtr())
|
||||
<< "Trying to read data for processor " << procI
|
||||
<< " row " << rowI
|
||||
<< ". Does your file have as many rows as there are"
|
||||
<< " patch faces (" << globalFaces.size()
|
||||
@ -542,10 +531,8 @@ Foam::word Foam::externalCoupledFunctionObject::compositeName
|
||||
{
|
||||
if (regionNames.size() == 0)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"externalCoupledFunctionObject::compositeName(const wordList&)"
|
||||
) << "Empty regionNames" << abort(FatalError);
|
||||
FatalErrorInFunction
|
||||
<< "Empty regionNames" << abort(FatalError);
|
||||
return word::null;
|
||||
}
|
||||
else if (regionNames.size() == 1)
|
||||
@ -586,10 +573,8 @@ void Foam::externalCoupledFunctionObject::checkOrder
|
||||
sortedOrder(regionNames, order);
|
||||
if (order != identity(regionNames.size()))
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"externalCoupledFunctionObject::checkOrder(const wordList&)"
|
||||
) << "regionNames " << regionNames << " not in alphabetical order :"
|
||||
FatalErrorInFunction
|
||||
<< "regionNames " << regionNames << " not in alphabetical order :"
|
||||
<< order << exit(FatalError);
|
||||
}
|
||||
}
|
||||
@ -655,10 +640,7 @@ void Foam::externalCoupledFunctionObject::readData()
|
||||
|
||||
if (!ok)
|
||||
{
|
||||
WarningIn
|
||||
(
|
||||
"void Foam::externalCoupledFunctionObject::readData()"
|
||||
)
|
||||
WarningInFunction
|
||||
<< "Field " << fieldName << " in regions " << compName
|
||||
<< " was not found." << endl;
|
||||
}
|
||||
@ -728,10 +710,7 @@ void Foam::externalCoupledFunctionObject::writeData() const
|
||||
|
||||
if (!ok)
|
||||
{
|
||||
WarningIn
|
||||
(
|
||||
"void Foam::externalCoupledFunctionObject::writeData()"
|
||||
)
|
||||
WarningInFunction
|
||||
<< "Field " << fieldName << " in regions " << compName
|
||||
<< " was not found." << endl;
|
||||
}
|
||||
@ -948,12 +927,7 @@ bool Foam::externalCoupledFunctionObject::read(const dictionary& dict)
|
||||
{
|
||||
if (!iter().isDict())
|
||||
{
|
||||
FatalIOErrorIn
|
||||
(
|
||||
"void Foam::externalCoupledFunctionObject::read"
|
||||
"(const dictionary&)",
|
||||
allRegionsDict
|
||||
)
|
||||
FatalIOErrorInFunction(allRegionsDict)
|
||||
<< "Regions must be specified in dictionary format"
|
||||
<< exit(FatalIOError);
|
||||
}
|
||||
@ -973,12 +947,7 @@ bool Foam::externalCoupledFunctionObject::read(const dictionary& dict)
|
||||
{
|
||||
if (!regionIter().isDict())
|
||||
{
|
||||
FatalIOErrorIn
|
||||
(
|
||||
"void Foam::externalCoupledFunctionObject::read"
|
||||
"(const dictionary&)",
|
||||
regionDict
|
||||
)
|
||||
FatalIOErrorInFunction(regionDict)
|
||||
<< "Regions must be specified in dictionary format"
|
||||
<< exit(FatalIOError);
|
||||
}
|
||||
|
||||
@ -73,16 +73,8 @@ bool Foam::externalCoupledFunctionObject::readData
|
||||
|
||||
if (!masterFilePtr().good())
|
||||
{
|
||||
FatalIOErrorIn
|
||||
(
|
||||
"void externalCoupledFunctionObject::readData"
|
||||
"("
|
||||
"const UPtrList<const fvMesh>&, "
|
||||
"const wordRe&, "
|
||||
"const word&"
|
||||
")",
|
||||
masterFilePtr()
|
||||
) << "Cannot open file for region " << compositeName(regionNames)
|
||||
FatalIOErrorInFunction(masterFilePtr())
|
||||
<< "Cannot open file for region " << compositeName(regionNames)
|
||||
<< ", field " << fieldName
|
||||
<< exit(FatalIOError);
|
||||
}
|
||||
@ -285,15 +277,7 @@ bool Foam::externalCoupledFunctionObject::readData
|
||||
}
|
||||
else
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void externalCoupledFunctionObject::readData"
|
||||
"("
|
||||
"const UPtrList<const fvMesh>&, "
|
||||
"const wordRe&, "
|
||||
"const word&"
|
||||
")"
|
||||
)
|
||||
FatalErrorInFunction
|
||||
<< "Unsupported boundary condition " << bf[patchI].type()
|
||||
<< " for patch " << bf[patchI].patch().name()
|
||||
<< " in region " << mesh.name()
|
||||
@ -389,16 +373,8 @@ bool Foam::externalCoupledFunctionObject::writeData
|
||||
|
||||
if (!masterFilePtr().good())
|
||||
{
|
||||
FatalIOErrorIn
|
||||
(
|
||||
"externalCoupledFunctionObject::writeData"
|
||||
"("
|
||||
"const UPtrList<const fvMesh>&, "
|
||||
"const wordRe&, "
|
||||
"const word&"
|
||||
") const",
|
||||
masterFilePtr()
|
||||
) << "Cannot open file for region " << compositeName(regionNames)
|
||||
FatalIOErrorInFunction(masterFilePtr())
|
||||
<< "Cannot open file for region " << compositeName(regionNames)
|
||||
<< ", field " << fieldName
|
||||
<< exit(FatalIOError);
|
||||
}
|
||||
|
||||
@ -135,7 +135,7 @@ bool Foam::averageCondition::apply()
|
||||
|
||||
if (unprocessedFields.size())
|
||||
{
|
||||
WarningIn("bool Foam::averageCondition::apply()")
|
||||
WarningInFunction
|
||||
<< "From function object: " << functionObjectName_ << nl
|
||||
<< "Unprocessed fields:" << nl;
|
||||
|
||||
|
||||
@ -74,17 +74,7 @@ Foam::equationInitialResidualCondition::equationInitialResidualCondition
|
||||
{
|
||||
if (!fieldNames_.size())
|
||||
{
|
||||
WarningIn
|
||||
(
|
||||
"Foam::equationInitialResidualCondition::"
|
||||
"equationInitialResidualCondition"
|
||||
"("
|
||||
"const word&, "
|
||||
"const objectRegistry&, "
|
||||
"const dictionary&, "
|
||||
"functionObjectState&"
|
||||
")"
|
||||
)
|
||||
WarningInFunction
|
||||
<< "No fields supplied: deactivating" << endl;
|
||||
|
||||
active_ = false;
|
||||
@ -151,10 +141,7 @@ bool Foam::equationInitialResidualCondition::apply()
|
||||
}
|
||||
default:
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"bool Foam::equationInitialResidualCondition::apply()"
|
||||
)
|
||||
FatalErrorInFunction
|
||||
<< "Unhandled enumeration "
|
||||
<< operatingModeNames[mode_]
|
||||
<< abort(FatalError);
|
||||
@ -168,7 +155,7 @@ bool Foam::equationInitialResidualCondition::apply()
|
||||
{
|
||||
if (result[i] < 0)
|
||||
{
|
||||
WarningIn("bool Foam::equationInitialResidualCondition::apply()")
|
||||
WarningInFunction
|
||||
<< "Initial residual data not found for field "
|
||||
<< fieldNames_[i] << endl;
|
||||
}
|
||||
@ -180,7 +167,7 @@ bool Foam::equationInitialResidualCondition::apply()
|
||||
|
||||
if (!valid)
|
||||
{
|
||||
WarningIn("bool Foam::equationInitialResidualCondition::apply()")
|
||||
WarningInFunction
|
||||
<< "Initial residual data not found for any fields: "
|
||||
<< "deactivating" << endl;
|
||||
|
||||
|
||||
@ -59,17 +59,7 @@ Foam::equationMaxIterCondition::equationMaxIterCondition
|
||||
{
|
||||
if (!fieldNames_.size())
|
||||
{
|
||||
WarningIn
|
||||
(
|
||||
"Foam::equationMaxIterCondition::"
|
||||
"equationMaxIterCondition"
|
||||
"("
|
||||
"const word&, "
|
||||
"const objectRegistry&, "
|
||||
"const dictionary&, "
|
||||
"functionObjectState&"
|
||||
")"
|
||||
)
|
||||
WarningInFunction
|
||||
<< "No fields supplied: deactivating" << endl;
|
||||
|
||||
active_ = false;
|
||||
@ -129,7 +119,7 @@ bool Foam::equationMaxIterCondition::apply()
|
||||
{
|
||||
if (result[i] < 0)
|
||||
{
|
||||
WarningIn("bool Foam::equationMaxIterCondition::apply()")
|
||||
WarningInFunction
|
||||
<< "Number of iterations data not found for field "
|
||||
<< fieldNames_[i] << endl;
|
||||
}
|
||||
@ -141,7 +131,7 @@ bool Foam::equationMaxIterCondition::apply()
|
||||
|
||||
if (!valid)
|
||||
{
|
||||
WarningIn("bool Foam::equationMaxIterCondition::apply()")
|
||||
WarningInFunction
|
||||
<< "Number of iterations data not found for any fields: "
|
||||
<< "deactivating" << endl;
|
||||
|
||||
|
||||
@ -104,7 +104,7 @@ bool Foam::minMaxCondition::apply()
|
||||
|
||||
if (valueType == word::null)
|
||||
{
|
||||
WarningIn("bool Foam::minMaxCondition::apply()")
|
||||
WarningInFunction
|
||||
<< "Unable to find entry " << fieldName
|
||||
<< " for function object " << functionObjectName_
|
||||
<< ". Condition will not be applied."
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -44,16 +44,8 @@ Foam::autoPtr<Foam::runTimeCondition> Foam::runTimeCondition::New
|
||||
|
||||
if (cstrIter == dictionaryConstructorTablePtr_->end())
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"runTimeCondition::New"
|
||||
"("
|
||||
"const word&, "
|
||||
"const objectRegistry&, "
|
||||
"const dictionary&, "
|
||||
"functionObjectState&"
|
||||
")"
|
||||
) << "Unknown runTimeCondition type "
|
||||
FatalErrorInFunction
|
||||
<< "Unknown runTimeCondition type "
|
||||
<< conditionType << nl << nl
|
||||
<< "Valid runTimeCondition types are:" << nl
|
||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -163,7 +163,7 @@ void Foam::runTimeControl::execute()
|
||||
|
||||
if (conditionIter == groupMap_.end())
|
||||
{
|
||||
FatalErrorIn("void Foam::runTimeControl::execute()")
|
||||
FatalErrorInFunction
|
||||
<< "group " << groupI << " not found in map"
|
||||
<< abort(FatalError);
|
||||
}
|
||||
|
||||
@ -70,16 +70,8 @@ Foam::DESModelRegions::DESModelRegions
|
||||
if (!isA<fvMesh>(obr_))
|
||||
{
|
||||
active_ = false;
|
||||
WarningIn
|
||||
(
|
||||
"DESModelRegions::DESModelRegions"
|
||||
"("
|
||||
"const word&, "
|
||||
"const objectRegistry&, "
|
||||
"const dictionary&, "
|
||||
"const bool"
|
||||
")"
|
||||
) << "No fvMesh available, deactivating " << name_ << nl
|
||||
WarningInFunction
|
||||
<< "No fvMesh available, deactivating " << name_ << nl
|
||||
<< endl;
|
||||
}
|
||||
|
||||
|
||||
@ -126,7 +126,7 @@ void Foam::blendingFactor::read(const dictionary& dict)
|
||||
dict.readIfPresent("tolerance", tolerance_);
|
||||
if ((tolerance_ < 0) || (tolerance_ > 1))
|
||||
{
|
||||
FatalErrorIn("void Foam::blendingFactor::read(const dictionary&)")
|
||||
FatalErrorInFunction
|
||||
<< "tolerance must be in the range 0 to 1. Supplied value: "
|
||||
<< tolerance_ << exit(FatalError);
|
||||
}
|
||||
|
||||
@ -75,17 +75,7 @@ void Foam::fluxSummary::initialiseFaceZone
|
||||
|
||||
if (zoneI == -1)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void Foam::fluxSummary::initialiseFaceZone"
|
||||
"("
|
||||
"const word&, "
|
||||
"DynamicList<word>&, "
|
||||
"DynamicList<List<label> >&, "
|
||||
"DynamicList<List<label> >&, "
|
||||
"DynamicList<List<scalar> >&"
|
||||
") const"
|
||||
)
|
||||
FatalErrorInFunction
|
||||
<< "Unable to find faceZone " << faceZoneName
|
||||
<< ". Valid faceZones are: " << mesh.faceZones().names()
|
||||
<< exit(FatalError);
|
||||
@ -178,19 +168,7 @@ void Foam::fluxSummary::initialiseFaceZoneAndDirection
|
||||
|
||||
if (zoneI == -1)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void Foam::fluxSummary::initialiseFaceZoneAndDirection"
|
||||
"("
|
||||
"const word&, "
|
||||
"const vector&, "
|
||||
"DynamicList<vector>&, "
|
||||
"DynamicList<word>&, "
|
||||
"DynamicList<List<label> >&, "
|
||||
"DynamicList<List<label> >&, "
|
||||
"DynamicList<List<scalar> >&"
|
||||
") const"
|
||||
)
|
||||
FatalErrorInFunction
|
||||
<< "Unable to find faceZone " << faceZoneName
|
||||
<< ". Valid faceZones are: " << mesh.faceZones().names()
|
||||
<< exit(FatalError);
|
||||
@ -299,19 +277,7 @@ void Foam::fluxSummary::initialiseCellZoneAndDirection
|
||||
|
||||
if (cellZoneI == -1)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void Foam::fluxSummary::initialiseCellZoneAndDirection"
|
||||
"("
|
||||
"const word&, "
|
||||
"const vector&, "
|
||||
"DynamicList<vector>&, "
|
||||
"DynamicList<word>&, "
|
||||
"DynamicList<List<label> >&, "
|
||||
"DynamicList<List<label> >&, "
|
||||
"DynamicList<List<scalar> >&"
|
||||
") const"
|
||||
)
|
||||
FatalErrorInFunction
|
||||
<< "Unable to find cellZone " << cellZoneName
|
||||
<< ". Valid zones are: " << mesh.cellZones().names()
|
||||
<< exit(FatalError);
|
||||
@ -474,19 +440,8 @@ void Foam::fluxSummary::initialiseCellZoneAndDirection
|
||||
{
|
||||
if (allEdgeInfo[fEdges[i]].region() != -1)
|
||||
{
|
||||
WarningIn
|
||||
(
|
||||
"void Foam::fluxSummary::initialiseCellZoneAndDirection"
|
||||
"("
|
||||
"const word&, "
|
||||
"const vector&, "
|
||||
"DynamicList<vector>&, "
|
||||
"DynamicList<word>&, "
|
||||
"DynamicList<List<label> >&, "
|
||||
"DynamicList<List<label> >&, "
|
||||
"DynamicList<List<scalar> >&"
|
||||
") const"
|
||||
) << "Problem in edge face wave: attempted to assign a "
|
||||
WarningInFunction
|
||||
<< "Problem in edge face wave: attempted to assign a "
|
||||
<< "value to an edge that has already been visited. "
|
||||
<< "Edge info: " << allEdgeInfo[fEdges[i]]
|
||||
<< endl;
|
||||
@ -650,16 +605,8 @@ Foam::fluxSummary::fluxSummary
|
||||
if (!isA<fvMesh>(obr_))
|
||||
{
|
||||
active_ = false;
|
||||
WarningIn
|
||||
(
|
||||
"fluxSummary::fluxSummary"
|
||||
"("
|
||||
"const word&, "
|
||||
"const objectRegistry&, "
|
||||
"const dictionary&, "
|
||||
"const bool"
|
||||
")"
|
||||
) << "No fvMesh available, deactivating " << name_
|
||||
WarningInFunction
|
||||
<< "No fvMesh available, deactivating " << name_
|
||||
<< endl;
|
||||
}
|
||||
|
||||
@ -759,11 +706,7 @@ void Foam::fluxSummary::read(const dictionary& dict)
|
||||
}
|
||||
default:
|
||||
{
|
||||
FatalIOErrorIn
|
||||
(
|
||||
"void Foam::fluxSummary::read(const dictionary&)",
|
||||
dict
|
||||
)
|
||||
FatalIOErrorInFunction(dict)
|
||||
<< "unhandled enumeration " << modeTypeNames_[mode_]
|
||||
<< abort(FatalIOError);
|
||||
}
|
||||
@ -887,7 +830,7 @@ void Foam::fluxSummary::write()
|
||||
}
|
||||
else
|
||||
{
|
||||
FatalErrorIn("void Foam::fluxSummary::write()")
|
||||
FatalErrorInFunction
|
||||
<< "Unsupported flux field " << phi.name() << " with dimensions "
|
||||
<< phi.dimensions() << ". Expected eithe mass flow or volumetric "
|
||||
<< "flow rate" << abort(FatalError);
|
||||
|
||||
@ -66,13 +66,7 @@ Foam::tmp<Foam::volScalarField> Foam::pressureTools::rho
|
||||
{
|
||||
if (!rhoInfInitialised_)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"Foam::tmp<Foam::volScalarField> Foam::pressureTools::rho"
|
||||
"("
|
||||
" const volScalarField&"
|
||||
") const"
|
||||
)
|
||||
FatalErrorInFunction
|
||||
<< type() << " " << name_ << ": "
|
||||
<< "pressure identified as incompressible, but reference "
|
||||
<< "density is not set. Please set rhoName to rhoInf, and "
|
||||
|
||||
@ -162,7 +162,7 @@ void Foam::yPlus::execute()
|
||||
}
|
||||
else
|
||||
{
|
||||
WarningIn("void Foam::yPlus::execute()")
|
||||
WarningInFunction
|
||||
<< "Unable to find compressible turbulence model in the "
|
||||
<< "database: yPlus will not be calculated" << endl;
|
||||
}
|
||||
@ -181,14 +181,14 @@ void Foam::yPlus::execute()
|
||||
}
|
||||
else
|
||||
{
|
||||
WarningIn("void Foam::yPlus::execute()")
|
||||
WarningInFunction
|
||||
<< "Unable to find incompressible turbulence model in the "
|
||||
<< "database: yPlus will not be calculated" << endl;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
WarningIn("void Foam::yPlus::execute()")
|
||||
WarningInFunction
|
||||
<< "Unknown " << phiName_ << " dimensions: "
|
||||
<< phi.dimensions() << nl
|
||||
<< "Expected either " << dimMass/dimTime << " or "
|
||||
|
||||
@ -80,7 +80,6 @@ void Foam::yPlus::calcYPlus
|
||||
<< token::TAB << maxYplus
|
||||
<< token::TAB << avgYplus
|
||||
<< endl;
|
||||
}
|
||||
}
|
||||
else if (isA<wallFvPatch>(patch))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user