From de42f4f5d2656a6a5372263f4ac47c94a5558c35 Mon Sep 17 00:00:00 2001 From: Andrew Heather Date: Wed, 25 Nov 2015 07:57:05 +0000 Subject: [PATCH 1/3] ENH: boundaryDataSurfaceWriter - updated header documentation --- .../boundaryData/boundaryDataSurfaceWriter.H | 33 ++++++++++--------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/src/sampling/sampledSurface/writers/boundaryData/boundaryDataSurfaceWriter.H b/src/sampling/sampledSurface/writers/boundaryData/boundaryDataSurfaceWriter.H index c58e073f36..1e031289b3 100644 --- a/src/sampling/sampledSurface/writers/boundaryData/boundaryDataSurfaceWriter.H +++ b/src/sampling/sampledSurface/writers/boundaryData/boundaryDataSurfaceWriter.H @@ -27,29 +27,32 @@ Class Description A surfaceWriter for outputting to a form useable for the timeVaryingMapped boundary condition. This reads the data from - constant/boundaryData/ + constant/boundaryData/\ directory Typical way of working: - use a sampledSurface of type 'patch' (to sample a patch): + \verbatim + surfaces + { + type surfaces; + surfaceFormat boundaryData; + fields ( p ); surfaces - { - type surfaces; - surfaceFormat boundaryData; - fields ( p ); - surfaces - ( - outlet - { - type patch; - patches (outlet); - interpolate false; - } - ); + ( + outlet + { + type patch; + patches (outlet); + interpolate false; + } + ); + } + \endverbatim - write using this writer. - move postProcessing/surfaces/outlet to constant/boundaryData/outlet in your destination case. - - use a timeVaryingMappedFixedValue bc to read&interpolate + - use a timeVaryingMappedFixedValue condition to read and interpolate the profile: type timeVaryingMappedFixedValue; setAverage false; // do not use read average From f4de5d17e498f32dd4ebdc00cb5d27b8510b6839 Mon Sep 17 00:00:00 2001 From: Andrew Heather Date: Wed, 25 Nov 2015 17:05:13 +0000 Subject: [PATCH 2/3] ENH: fvcCellReduce - allow setting of initial value, and loop over surface field boundaries --- .../finiteVolume/fvc/fvcCellReduce.C | 40 +++++++++++++------ .../finiteVolume/fvc/fvcCellReduce.H | 8 ++-- 2 files changed, 33 insertions(+), 15 deletions(-) diff --git a/src/finiteVolume/finiteVolume/fvc/fvcCellReduce.C b/src/finiteVolume/finiteVolume/fvc/fvcCellReduce.C index 63c718375b..7d8294b1e6 100644 --- a/src/finiteVolume/finiteVolume/fvc/fvcCellReduce.C +++ b/src/finiteVolume/finiteVolume/fvc/fvcCellReduce.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -45,7 +45,8 @@ template tmp > cellReduce ( const GeometricField& ssf, - const CombineOp& cop + const CombineOp& cop, + const Type& nullValue ) { typedef GeometricField volFieldType; @@ -65,7 +66,7 @@ tmp > cellReduce IOobject::NO_WRITE ), mesh, - dimensioned("0", ssf.dimensions(), pTraits::zero), + dimensioned("initialValue", ssf.dimensions(), nullValue), zeroGradientFvPatchField::typeName ) ); @@ -75,15 +76,29 @@ tmp > cellReduce const labelUList& own = mesh.owner(); const labelUList& nbr = mesh.neighbour(); - forAll(own, i) + // Internal field + const Field& iField = ssf.internalField(); + forAll(iField, faceI) { - label cellI = own[i]; - cop(result[cellI], ssf[i]); + label cellOwn = own[faceI]; + cop(result[cellOwn], iField[faceI]); + + label cellNbr = nbr[faceI]; + cop(result[cellNbr], iField[faceI]); } - forAll(nbr, i) + + // Boundary field + forAll(ssf.boundaryField(), patchI) { - label cellI = nbr[i]; - cop(result[cellI], ssf[i]); + const fvsPatchField& pf = ssf.boundaryField()[patchI]; + const label start = pf.patch().start(); + + forAll(pf, i) + { + label faceI = start + i; + label cellI = own[faceI]; + cop(result[cellI], pf[i]); + } } result.correctBoundaryConditions(); @@ -96,13 +111,14 @@ template tmp > cellReduce ( const tmp&> tssf, - const CombineOp& cop + const CombineOp& cop, + const Type& nullValue ) { tmp > - tvf(cellReduce(cop, tssf)); + tvf(cellReduce(cop, tssf, nullValue)); - tssf.clear(); + tssf.clear(); return tvf; } diff --git a/src/finiteVolume/finiteVolume/fvc/fvcCellReduce.H b/src/finiteVolume/finiteVolume/fvc/fvcCellReduce.H index 19bd24135a..d355fd4a51 100644 --- a/src/finiteVolume/finiteVolume/fvc/fvcCellReduce.H +++ b/src/finiteVolume/finiteVolume/fvc/fvcCellReduce.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -53,14 +53,16 @@ namespace fvc tmp > cellReduce ( const GeometricField&, - const CombineOp& cop + const CombineOp& cop, + const Type& nullValue = pTraits::zero ); template tmp > cellReduce ( const tmp >&, - const CombineOp& cop + const CombineOp& cop, + const Type& nullValue = pTraits::zero ); } From 6838df9cd27ccd41c174f667af928aac8c2dc5c2 Mon Sep 17 00:00:00 2001 From: Andrew Heather Date: Wed, 25 Nov 2015 17:19:06 +0000 Subject: [PATCH 3/3] ENH: Multiple updates to function objects Updated objects - corrected Peclet number for compressible cases - propagated log flag and resultName across objects New function objects - new fluxSummary: - calculates positive, negative, absolute and net flux across face zones - new runTimeControl - abort the calculation when a user-defined metric is achieved. Available options include: - average value remains unchanged wrt a given threshold - equation initial residual exceeds a threshold - useful to abort diverging cases - equation max iterations exceeds a threshold - useful to abort diverging cases - min/max of a function object value - min time step exceeds a threshold - useful to abort diverging cases - new valueAverage: - average singular values from other function objects, e.g. Cd, Cl and Cm from the forceCoeffs function object --- .../outputFilterOutputControl.C | 15 +- .../outputFilterOutputControl.H | 5 +- src/TurbulenceModels/compressible/Make/files | 1 - src/finiteVolume/Make/files | 1 - .../externalCoupledMixedFvPatchField.C | 851 --------------- .../externalCoupledMixedFvPatchField.H | 355 ------- .../IO/partialWrite/partialWrite.C | 38 +- .../IO/partialWrite/partialWrite.H | 9 +- .../IO/partialWrite/partialWriteTemplates.C | 4 +- .../removeRegisteredObject.C | 10 +- .../removeRegisteredObject.H | 10 +- .../writeRegisteredObject.C | 13 +- .../writeRegisteredObject.H | 23 +- .../cloud/cloudInfo/cloudInfo.C | 18 +- .../functionObjects/doc/functionObjects.dox | 1 + .../functionObjects/field/Make/files | 15 +- .../fieldAverage/fieldAverage/fieldAverage.C | 36 +- .../fieldAverage/fieldAverageTemplates.C | 26 +- .../fieldCoordinateSystemTransform.C | 15 +- .../fieldCoordinateSystemTransform.H | 6 +- .../fieldCoordinateSystemTransformTemplates.C | 4 +- .../field/fieldValues/cellSource/cellSource.C | 14 +- .../cellSource/cellSourceTemplates.C | 10 +- .../faceSource/faceSourceTemplates.C | 10 +- .../field/nearWallFields/nearWallFields.H | 8 +- .../nearWallFields/nearWallFieldsTemplates.C | 16 +- .../field/processorField/processorField.C | 20 +- .../field/processorField/processorField.H | 7 + .../field/readFields/readFields.C | 29 +- .../field/readFields/readFields.H | 34 +- .../field/readFields/readFieldsTemplates.C | 33 +- .../regionSizeDistribution.C | 120 +-- .../field/streamLine/controlDict | 4 + .../field/streamLine/streamLine.C | 651 +----------- .../field/streamLine/streamLine.H | 133 +-- .../field/streamLine/streamLineBase.C | 976 ++++++++++++++++++ .../field/streamLine/streamLineBase.H | 246 +++++ .../surfaceInterpolateFields.C | 16 +- .../surfaceInterpolateFields.H | 7 +- .../surfaceInterpolateFieldsTemplates.C | 10 +- .../field/valueAverage/IOvalueAverage.H | 49 + .../field/valueAverage/valueAverage.C | 202 ++++ .../field/valueAverage/valueAverage.H | 209 ++++ .../valueAverage/valueAverageFunctionObject.C | 42 + .../valueAverage/valueAverageFunctionObject.H | 54 + .../valueAverage/valueAverageTemplates.C | 60 ++ .../field/wallBoundedStreamLine/controlDict | 3 + .../wallBoundedParticle.C | 38 +- .../wallBoundedParticle.H | 9 - .../wallBoundedStreamLine.C | 630 +---------- .../wallBoundedStreamLine.H | 148 +-- .../forces/forceCoeffs/forceCoeffs.C | 20 +- .../fvTools/calcFvcDiv/calcFvcDiv.C | 16 +- .../fvTools/calcFvcDiv/calcFvcDiv.H | 31 +- .../fvTools/calcFvcGrad/calcFvcGrad.C | 16 +- .../fvTools/calcFvcGrad/calcFvcGrad.H | 31 +- .../functionObjects/fvTools/calcMag/calcMag.C | 16 +- .../functionObjects/fvTools/calcMag/calcMag.H | 24 +- .../graphics/doc/graphicsFunctionObjectsDoc.H | 30 + .../runTimePostProcessing.H | 5 +- .../functionObjects/jobControl/Make/files | 16 + .../functionObjects/jobControl/Make/options | 10 + .../{ => doc}/jobControlFunctionObjectsDoc.H | 0 .../externalCoupledFunctionObject.C | 947 +++++++++++++++++ .../externalCoupledFunctionObject.H | 383 +++++++ .../externalCoupledFunctionObjectTemplates.C | 459 ++++++++ .../externalCoupledMixedFvPatchField.C | 168 +++ .../externalCoupledMixedFvPatchField.H | 174 ++++ .../externalCoupledMixedFvPatchFields.C | 2 +- .../externalCoupledMixedFvPatchFields.H | 2 +- .../externalCoupledMixedFvPatchFieldsFwd.H | 2 +- ...oupledTemperatureMixedFvPatchScalarField.C | 159 ++- ...oupledTemperatureMixedFvPatchScalarField.H | 89 +- .../runTimeControl/IOrunTimeControl.H | 49 + .../averageCondition/averageCondition.C | 179 ++++ .../averageCondition/averageCondition.H | 136 +++ .../averageConditionTemplates.C | 73 ++ .../equationInitialResidualCondition.C | 222 ++++ .../equationInitialResidualCondition.H | 119 +++ .../equationMaxIterCondition.C | 183 ++++ .../equationMaxIterCondition.H | 105 ++ .../minMaxCondition/minMaxCondition.C | 165 +++ .../minMaxCondition/minMaxCondition.H | 145 +++ .../minMaxConditionTemplates.C | 46 + .../minTimeStepCondition.C | 91 ++ .../minTimeStepCondition.H | 99 ++ .../runTimeCondition/runTimeCondition.C | 110 ++ .../runTimeCondition/runTimeCondition.H | 167 +++ .../runTimeCondition/runTimeConditionNew.C | 70 ++ .../runTimeControl/runTimeControl.C | 264 +++++ .../runTimeControl/runTimeControl.H | 161 +++ .../runTimeControlFunctionObject.C | 42 + .../runTimeControlFunctionObject.H | 54 + .../utilities/CourantNo/CourantNo.C | 22 +- .../utilities/CourantNo/CourantNo.H | 29 +- .../utilities/Lambda2/Lambda2.C | 27 +- .../utilities/Lambda2/Lambda2.H | 27 +- .../functionObjects/utilities/Make/files | 22 +- .../functionObjects/utilities/Make/options | 6 +- .../functionObjects/utilities/Peclet/Peclet.C | 40 +- .../functionObjects/utilities/Peclet/Peclet.H | 30 +- .../functionObjects/utilities/Q/Q.C | 25 +- .../functionObjects/utilities/Q/Q.H | 32 +- .../utilities/blendingFactor/blendingFactor.C | 100 +- .../utilities/blendingFactor/blendingFactor.H | 85 +- .../blendingFactor/blendingFactorTemplates.C | 98 +- .../utilities/dsmcFields/dsmcFields.C | 101 +- .../utilities/dsmcFields/dsmcFields.H | 27 +- .../utilities/fluxSummary/IOfluxSummary.H | 49 + .../utilities/fluxSummary/fluxSummary.C | 956 +++++++++++++++++ .../utilities/fluxSummary/fluxSummary.H | 302 ++++++ .../fluxSummary/fluxSummaryFunctionObject.C | 42 + .../fluxSummary/fluxSummaryFunctionObject.H | 53 + .../utilities/pressureTools/pressureTools.C | 82 +- .../utilities/pressureTools/pressureTools.H | 17 +- .../scalarTransport/scalarTransport.C | 21 +- .../scalarTransport/scalarTransport.H | 51 +- .../setTimeStep/setTimeStepFunctionObject.C | 6 +- .../setTimeStep/setTimeStepFunctionObject.H | 34 +- .../timeActivatedFileUpdate.C | 22 +- .../timeActivatedFileUpdate.H | 23 +- .../turbulenceFields/turbulenceFields.C | 26 +- .../turbulenceFields/turbulenceFields.H | 6 +- .../utilities/vorticity/vorticity.C | 24 +- .../utilities/vorticity/vorticity.H | 30 +- .../wallShearStress/wallShearStress.C | 18 +- .../wallShearStress/wallShearStress.H | 2 +- .../functionObjects/utilities/yPlus/yPlus.C | 11 +- .../utilities/yPlus/yPlusTemplates.C | 9 +- 129 files changed, 9233 insertions(+), 3546 deletions(-) delete mode 100644 src/finiteVolume/fields/fvPatchFields/derived/externalCoupledMixed/externalCoupledMixedFvPatchField.C delete mode 100644 src/finiteVolume/fields/fvPatchFields/derived/externalCoupledMixed/externalCoupledMixedFvPatchField.H create mode 100644 src/postProcessing/functionObjects/field/streamLine/streamLineBase.C create mode 100644 src/postProcessing/functionObjects/field/streamLine/streamLineBase.H create mode 100644 src/postProcessing/functionObjects/field/valueAverage/IOvalueAverage.H create mode 100644 src/postProcessing/functionObjects/field/valueAverage/valueAverage.C create mode 100644 src/postProcessing/functionObjects/field/valueAverage/valueAverage.H create mode 100644 src/postProcessing/functionObjects/field/valueAverage/valueAverageFunctionObject.C create mode 100644 src/postProcessing/functionObjects/field/valueAverage/valueAverageFunctionObject.H create mode 100644 src/postProcessing/functionObjects/field/valueAverage/valueAverageTemplates.C create mode 100644 src/postProcessing/functionObjects/graphics/doc/graphicsFunctionObjectsDoc.H rename src/postProcessing/functionObjects/jobControl/{ => doc}/jobControlFunctionObjectsDoc.H (100%) create mode 100644 src/postProcessing/functionObjects/jobControl/externalCoupled/externalCoupledFunctionObject.C create mode 100644 src/postProcessing/functionObjects/jobControl/externalCoupled/externalCoupledFunctionObject.H create mode 100644 src/postProcessing/functionObjects/jobControl/externalCoupled/externalCoupledFunctionObjectTemplates.C create mode 100644 src/postProcessing/functionObjects/jobControl/externalCoupled/externalCoupledMixed/externalCoupledMixedFvPatchField.C create mode 100644 src/postProcessing/functionObjects/jobControl/externalCoupled/externalCoupledMixed/externalCoupledMixedFvPatchField.H rename src/{finiteVolume/fields/fvPatchFields/derived => postProcessing/functionObjects/jobControl/externalCoupled}/externalCoupledMixed/externalCoupledMixedFvPatchFields.C (95%) rename src/{finiteVolume/fields/fvPatchFields/derived => postProcessing/functionObjects/jobControl/externalCoupled}/externalCoupledMixed/externalCoupledMixedFvPatchFields.H (95%) rename src/{finiteVolume/fields/fvPatchFields/derived => postProcessing/functionObjects/jobControl/externalCoupled}/externalCoupledMixed/externalCoupledMixedFvPatchFieldsFwd.H (95%) rename src/{TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields => postProcessing/functionObjects/jobControl/externalCoupled}/externalCoupledTemperatureMixed/externalCoupledTemperatureMixedFvPatchScalarField.C (65%) rename src/{TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields => postProcessing/functionObjects/jobControl/externalCoupled}/externalCoupledTemperatureMixed/externalCoupledTemperatureMixedFvPatchScalarField.H (67%) create mode 100644 src/postProcessing/functionObjects/jobControl/runTimeControl/IOrunTimeControl.H create mode 100644 src/postProcessing/functionObjects/jobControl/runTimeControl/runTimeCondition/averageCondition/averageCondition.C create mode 100644 src/postProcessing/functionObjects/jobControl/runTimeControl/runTimeCondition/averageCondition/averageCondition.H create mode 100644 src/postProcessing/functionObjects/jobControl/runTimeControl/runTimeCondition/averageCondition/averageConditionTemplates.C create mode 100644 src/postProcessing/functionObjects/jobControl/runTimeControl/runTimeCondition/equationInitialResidualCondition/equationInitialResidualCondition.C create mode 100644 src/postProcessing/functionObjects/jobControl/runTimeControl/runTimeCondition/equationInitialResidualCondition/equationInitialResidualCondition.H create mode 100644 src/postProcessing/functionObjects/jobControl/runTimeControl/runTimeCondition/equationMaxIterCondition/equationMaxIterCondition.C create mode 100644 src/postProcessing/functionObjects/jobControl/runTimeControl/runTimeCondition/equationMaxIterCondition/equationMaxIterCondition.H create mode 100644 src/postProcessing/functionObjects/jobControl/runTimeControl/runTimeCondition/minMaxCondition/minMaxCondition.C create mode 100644 src/postProcessing/functionObjects/jobControl/runTimeControl/runTimeCondition/minMaxCondition/minMaxCondition.H create mode 100644 src/postProcessing/functionObjects/jobControl/runTimeControl/runTimeCondition/minMaxCondition/minMaxConditionTemplates.C create mode 100644 src/postProcessing/functionObjects/jobControl/runTimeControl/runTimeCondition/minTimeStepCondition/minTimeStepCondition.C create mode 100644 src/postProcessing/functionObjects/jobControl/runTimeControl/runTimeCondition/minTimeStepCondition/minTimeStepCondition.H create mode 100644 src/postProcessing/functionObjects/jobControl/runTimeControl/runTimeCondition/runTimeCondition/runTimeCondition.C create mode 100644 src/postProcessing/functionObjects/jobControl/runTimeControl/runTimeCondition/runTimeCondition/runTimeCondition.H create mode 100644 src/postProcessing/functionObjects/jobControl/runTimeControl/runTimeCondition/runTimeCondition/runTimeConditionNew.C create mode 100644 src/postProcessing/functionObjects/jobControl/runTimeControl/runTimeControl.C create mode 100644 src/postProcessing/functionObjects/jobControl/runTimeControl/runTimeControl.H create mode 100644 src/postProcessing/functionObjects/jobControl/runTimeControl/runTimeControlFunctionObject.C create mode 100644 src/postProcessing/functionObjects/jobControl/runTimeControl/runTimeControlFunctionObject.H create mode 100644 src/postProcessing/functionObjects/utilities/fluxSummary/IOfluxSummary.H create mode 100644 src/postProcessing/functionObjects/utilities/fluxSummary/fluxSummary.C create mode 100644 src/postProcessing/functionObjects/utilities/fluxSummary/fluxSummary.H create mode 100644 src/postProcessing/functionObjects/utilities/fluxSummary/fluxSummaryFunctionObject.C create mode 100644 src/postProcessing/functionObjects/utilities/fluxSummary/fluxSummaryFunctionObject.H diff --git a/src/OpenFOAM/db/functionObjects/outputFilterOutputControl/outputFilterOutputControl.C b/src/OpenFOAM/db/functionObjects/outputFilterOutputControl/outputFilterOutputControl.C index 5ddb9d564b..e220d9a4c4 100644 --- a/src/OpenFOAM/db/functionObjects/outputFilterOutputControl/outputFilterOutputControl.C +++ b/src/OpenFOAM/db/functionObjects/outputFilterOutputControl/outputFilterOutputControl.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -31,7 +31,7 @@ License namespace Foam { template<> - const char* NamedEnum:: + const char* NamedEnum:: names[] = { "timeStep", @@ -40,11 +40,12 @@ namespace Foam "runTime", "clockTime", "cpuTime", + "onEnd", "none" }; } -const Foam::NamedEnum +const Foam::NamedEnum Foam::outputFilterOutputControl::outputControlNames_; @@ -113,6 +114,7 @@ void Foam::outputFilterOutputControl::read(const dictionary& dict) break; } + case ocOnEnd: default: { // do nothing @@ -196,6 +198,13 @@ bool Foam::outputFilterOutputControl::output() break; } + case ocOnEnd: + { + scalar endTime = time_.endTime().value() - 0.5*time_.deltaTValue(); + return time_.value() > endTime; + break; + } + case ocNone: { return false; diff --git a/src/OpenFOAM/db/functionObjects/outputFilterOutputControl/outputFilterOutputControl.H b/src/OpenFOAM/db/functionObjects/outputFilterOutputControl/outputFilterOutputControl.H index 1818fe1700..6cef209c15 100644 --- a/src/OpenFOAM/db/functionObjects/outputFilterOutputControl/outputFilterOutputControl.H +++ b/src/OpenFOAM/db/functionObjects/outputFilterOutputControl/outputFilterOutputControl.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -62,6 +62,7 @@ public: ocRunTime, /*!< run time for dumping */ ocClockTime, /*!< clock time for dumping */ ocCpuTime, /*!< cpu time for dumping */ + ocOnEnd, /*!< on end of run*/ ocNone /*!< no output */ }; @@ -77,7 +78,7 @@ private: const word prefix_; //- String representation of outputControls enums - static const NamedEnum outputControlNames_; + static const NamedEnum outputControlNames_; //- Type of output outputControls outputControl_; diff --git a/src/TurbulenceModels/compressible/Make/files b/src/TurbulenceModels/compressible/Make/files index c4aab94251..2c2366c37d 100644 --- a/src/TurbulenceModels/compressible/Make/files +++ b/src/TurbulenceModels/compressible/Make/files @@ -10,7 +10,6 @@ $(BCs)/totalFlowRateAdvectiveDiffusive/totalFlowRateAdvectiveDiffusiveFvPatchSca $(BCs)/turbulentTemperatureRadCoupledMixed/turbulentTemperatureRadCoupledMixedFvPatchScalarField.C $(BCs)/externalWallHeatFluxTemperature/externalWallHeatFluxTemperatureFvPatchScalarField.C $(BCs)/wallHeatTransfer/wallHeatTransferFvPatchScalarField.C -$(BCs)/externalCoupledTemperatureMixed/externalCoupledTemperatureMixedFvPatchScalarField.C $(BCs)/convectiveHeatTransfer/convectiveHeatTransferFvPatchScalarField.C turbulentFluidThermoModels/derivedFvPatchFields/wallFunctions/alphatWallFunctions/alphatWallFunction/alphatWallFunctionFvPatchScalarField.C diff --git a/src/finiteVolume/Make/files b/src/finiteVolume/Make/files index 3dec7db168..4f62284474 100644 --- a/src/finiteVolume/Make/files +++ b/src/finiteVolume/Make/files @@ -133,7 +133,6 @@ $(derivedFvPatchFields)/advective/advectiveFvPatchFields.C $(derivedFvPatchFields)/codedFixedValue/codedFixedValueFvPatchFields.C $(derivedFvPatchFields)/codedMixed/codedMixedFvPatchFields.C $(derivedFvPatchFields)/cylindricalInletVelocity/cylindricalInletVelocityFvPatchVectorField.C -$(derivedFvPatchFields)/externalCoupledMixed/externalCoupledMixedFvPatchFields.C $(derivedFvPatchFields)/fan/fanFvPatchFields.C $(derivedFvPatchFields)/fanPressure/fanPressureFvPatchScalarField.C $(derivedFvPatchFields)/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C diff --git a/src/finiteVolume/fields/fvPatchFields/derived/externalCoupledMixed/externalCoupledMixedFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/externalCoupledMixed/externalCoupledMixedFvPatchField.C deleted file mode 100644 index f930a1ef5c..0000000000 --- a/src/finiteVolume/fields/fvPatchFields/derived/externalCoupledMixed/externalCoupledMixedFvPatchField.C +++ /dev/null @@ -1,851 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 2013 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 . - -\*---------------------------------------------------------------------------*/ - -#include "externalCoupledMixedFvPatchField.H" -#include "fvPatchFieldMapper.H" -#include "volFields.H" -#include "IFstream.H" -#include "globalIndex.H" - -// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // - -template -Foam::word Foam::externalCoupledMixedFvPatchField::lockName = "OpenFOAM"; - -template -Foam::string -Foam::externalCoupledMixedFvPatchField::patchKey = "# Patch: "; - - -// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // - -template -Foam::fileName Foam::externalCoupledMixedFvPatchField::baseDir() const -{ - word regionName(this->dimensionedInternalField().mesh().name()); - if (regionName == polyMesh::defaultRegion) - { - regionName = "."; - } - - fileName result(commsDir_/regionName); - result.clean(); - - return result; -} - - -template -void Foam::externalCoupledMixedFvPatchField::setMaster -( - const labelList& patchIDs -) -{ - const volFieldType& cvf = - static_cast(this->dimensionedInternalField()); - - volFieldType& vf = const_cast(cvf); - - typename volFieldType::GeometricBoundaryField& bf = vf.boundaryField(); - - // number of patches can be different in parallel... - label nPatch = bf.size(); - reduce(nPatch, maxOp