From 90ee8d433f1e83c260e563207a5f379e2ac4b427 Mon Sep 17 00:00:00 2001 From: Andrew Heather <a.heather@opencfd.co.uk> Date: Tue, 26 Apr 2016 14:34:27 +0100 Subject: [PATCH] ENH: Integration updates --- .../vtkPVFoam/vtkPVFoamVolFields.H | 55 +------------------ .../meshRefinement/meshRefinementTemplates.C | 2 +- .../cyclicPeriodicAMIPolyPatch.C | 23 ++++---- .../kinematicSingleLayer.C | 7 +-- 4 files changed, 19 insertions(+), 68 deletions(-) diff --git a/applications/utilities/postProcessing/graphics/PVReaders/PVFoamReader/vtkPVFoam/vtkPVFoamVolFields.H b/applications/utilities/postProcessing/graphics/PVReaders/PVFoamReader/vtkPVFoam/vtkPVFoamVolFields.H index ea4287beb0b..7a34bbca1ca 100644 --- a/applications/utilities/postProcessing/graphics/PVReaders/PVFoamReader/vtkPVFoam/vtkPVFoamVolFields.H +++ b/applications/utilities/postProcessing/graphics/PVReaders/PVFoamReader/vtkPVFoam/vtkPVFoamVolFields.H @@ -2,11 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | -<<<<<<< HEAD:applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/vtkPV4Foam/vtkPV4FoamVolFields.H - \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation -======= \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation ->>>>>>> foundation:applications/utilities/postProcessing/graphics/PVReaders/PVFoamReader/vtkPVFoam/vtkPVFoamVolFields.H \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -48,18 +44,10 @@ InClass // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // template<class Type> -<<<<<<< HEAD:applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/vtkPV4Foam/vtkPV4FoamVolFields.H -void Foam::vtkPV4Foam::convertVolField +void Foam::vtkPVFoam::convertVolField ( const PtrList<PrimitivePatchInterpolation<primitivePatch>>& ppInterpList, const GeometricField<Type, fvPatchField, volMesh>& tf, -======= -void Foam::vtkPVFoam::convertVolFields -( - const fvMesh& mesh, - const PtrList<PrimitivePatchInterpolation<primitivePatch>>& ppInterpList, - const IOobjectList& objects, ->>>>>>> foundation:applications/utilities/postProcessing/graphics/PVReaders/PVFoamReader/vtkPVFoam/vtkPVFoamVolFields.H const bool interpFields, vtkMultiBlockDataSet* output ) @@ -81,27 +69,7 @@ void Foam::vtkPVFoam::convertVolFields ( volPointInterpolation::New(mesh).interpolate(tf).ptr() ); -<<<<<<< HEAD:applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/vtkPV4Foam/vtkPV4FoamVolFields.H } -======= - - // Interpolated field (demand driven) - autoPtr<GeometricField<Type, pointPatchField, pointMesh>> ptfPtr; - if (interpFields) - { - if (debug) - { - Info<< "convertVolFieldBlock interpolating:" << tf.name() - << endl; - } - - ptfPtr.reset - ( - volPointInterpolation::New(tf.mesh()).interpolate(tf).ptr() - ); - } ->>>>>>> foundation:applications/utilities/postProcessing/graphics/PVReaders/PVFoamReader/vtkPVFoam/vtkPVFoamVolFields.H - // Convert activated internalMesh regions convertVolFieldBlock @@ -169,7 +137,6 @@ void Foam::vtkPVFoam::convertVolFields tmp<Field<Type>> tpptf ( -<<<<<<< HEAD:applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/vtkPV4Foam/vtkPV4FoamVolFields.H fvPatchField<Type>(p, tf).patchInternalField() ); @@ -181,22 +148,6 @@ void Foam::vtkPVFoam::convertVolFields arrayRangePatches_, datasetNo ); -======= - isType<emptyFvPatchField<Type>>(ptf) - || - ( - reader_->GetExtrapolatePatches() - && !polyPatch::constraintType(patches[patchId].type()) - ) - ) - { - fvPatch p(ptf.patch().patch(), tf.mesh().boundary()); - - tmp<Field<Type>> tpptf - ( - fvPatchField<Type>(p, tf).patchInternalField() - ); ->>>>>>> foundation:applications/utilities/postProcessing/graphics/PVReaders/PVFoamReader/vtkPVFoam/vtkPVFoamVolFields.H if (interpFields) { @@ -310,7 +261,7 @@ void Foam::vtkPVFoam::convertVolFields template<class Type> -void Foam::vtkPV4Foam::convertVolFields +void Foam::vtkPVFoam::convertVolFields ( const fvMesh& mesh, const PtrList<PrimitivePatchInterpolation<primitivePatch>>& ppInterpList, @@ -345,7 +296,7 @@ void Foam::vtkPV4Foam::convertVolFields template<class Type> -void Foam::vtkPV4Foam::convertDimFields +void Foam::vtkPVFoam::convertDimFields ( const fvMesh& mesh, const PtrList<PrimitivePatchInterpolation<primitivePatch>>& ppInterpList, diff --git a/src/mesh/snappyHexMesh/meshRefinement/meshRefinementTemplates.C b/src/mesh/snappyHexMesh/meshRefinement/meshRefinementTemplates.C index 2eb6e8e92ba..a6f0414d1f9 100644 --- a/src/mesh/snappyHexMesh/meshRefinement/meshRefinementTemplates.C +++ b/src/mesh/snappyHexMesh/meshRefinement/meshRefinementTemplates.C @@ -305,7 +305,7 @@ void Foam::meshRefinement::weightedSum } sum.setSize(meshPoints.size()); - sum = Type(zero); + sum = Type(Zero); forAll(edges, edgeI) { diff --git a/src/meshTools/AMIInterpolation/patches/cyclicPeriodicAMI/cyclicPeriodicAMIPolyPatch/cyclicPeriodicAMIPolyPatch.C b/src/meshTools/AMIInterpolation/patches/cyclicPeriodicAMI/cyclicPeriodicAMIPolyPatch/cyclicPeriodicAMIPolyPatch.C index 15a23a608c1..fcbf9dd6ab0 100644 --- a/src/meshTools/AMIInterpolation/patches/cyclicPeriodicAMI/cyclicPeriodicAMIPolyPatch/cyclicPeriodicAMIPolyPatch.C +++ b/src/meshTools/AMIInterpolation/patches/cyclicPeriodicAMI/cyclicPeriodicAMIPolyPatch/cyclicPeriodicAMIPolyPatch.C @@ -284,7 +284,8 @@ void Foam::cyclicPeriodicAMIPolyPatch::resetAMI ownStr.reset(new OBJstream(dir/name() + postfix)); neiStr.reset(new OBJstream(dir/neighbPatch().name() + postfix)); - Info<< "cyclicPeriodicAMIPolyPatch::resetAMI : patch:" << name() + InfoInFunction + << "patch:" << name() << " writing accumulated AMI to " << ownStr().name() << " and " << neiStr().name() << endl; } @@ -368,7 +369,8 @@ void Foam::cyclicPeriodicAMIPolyPatch::resetAMI if (debug) { - Info<< "cyclicPeriodicAMIPolyPatch::resetAMI : patch:" << name() + InfoInFunction + << "patch:" << name() << " srcSum:" << srcSum << " tgtSum:" << tgtSum << " direction:" << direction @@ -391,8 +393,8 @@ void Foam::cyclicPeriodicAMIPolyPatch::resetAMI if (debug) { - Info<< "cyclicPeriodicAMIPolyPatch::resetAMI : patch:" - << name() + InfoInFunction + << "patch:" << name() << " moving this side from:" << gAverage(thisPatch.points()) << " to:" << gAverage(thisPoints) << endl; @@ -402,8 +404,8 @@ void Foam::cyclicPeriodicAMIPolyPatch::resetAMI if (debug) { - Info<< "cyclicPeriodicAMIPolyPatch::resetAMI : patch:" - << name() + InfoInFunction + << "patch:" << name() << " appending weights with untransformed slave side" << endl; } @@ -421,8 +423,8 @@ void Foam::cyclicPeriodicAMIPolyPatch::resetAMI if (debug) { - Info<< "cyclicPeriodicAMIPolyPatch::resetAMI : patch:" - << name() + InfoInFunction + << "patch:" << name() << " moving neighbour side from:" << gAverage(nbrPatch.points()) << " to:" << gAverage(nbrPoints) << endl; @@ -453,11 +455,12 @@ void Foam::cyclicPeriodicAMIPolyPatch::resetAMI nTransforms_ += direction ? +1 : -1; - ++ iter; + ++iter; if (debug) { - Info<< "cyclicPeriodicAMIPolyPatch::resetAMI : patch:" << name() + InfoInFunction + << "patch:" << name() << " iteration:" << iter << " srcSum:" << srcSum << " tgtSum:" << tgtSum diff --git a/src/regionModels/surfaceFilmModels/kinematicSingleLayer/kinematicSingleLayer.C b/src/regionModels/surfaceFilmModels/kinematicSingleLayer/kinematicSingleLayer.C index 226597ecd20..cf1460066b1 100644 --- a/src/regionModels/surfaceFilmModels/kinematicSingleLayer/kinematicSingleLayer.C +++ b/src/regionModels/surfaceFilmModels/kinematicSingleLayer/kinematicSingleLayer.C @@ -95,10 +95,7 @@ void kinematicSingleLayer::resetPrimaryRegionSourceTerms() void kinematicSingleLayer::transferPrimaryRegionThermoFields() { - if (debug) - { - InfoInFunction << endl; - } + DebugInFunction << endl; // Update fields from primary region via direct mapped // (coupled) boundary conditions @@ -928,7 +925,7 @@ void kinematicSingleLayer::postEvolveRegion() { if (debug) { - Info<< "kinematicSingleLayer::postEvolveRegion()" << endl; + InfoInFunction << endl; } // Reset source terms for next time integration -- GitLab