diff --git a/src/finiteArea/Make/files b/src/finiteArea/Make/files index 9e8ffce86..65abb8311 100644 --- a/src/finiteArea/Make/files +++ b/src/finiteArea/Make/files @@ -22,26 +22,37 @@ $(faMeshMapper)/faPatchMapper.C faPatchFields = fields/faPatchFields $(faPatchFields)/faPatchField/faPatchFields.C +$(faPatchFields)/faPatchField/faPatchVectorNFields.C basicFaPatchFields = $(faPatchFields)/basic $(basicFaPatchFields)/basicSymmetry/basicSymmetryFaPatchFields.C $(basicFaPatchFields)/basicSymmetry/basicSymmetryFaPatchScalarField.C $(basicFaPatchFields)/calculated/calculatedFaPatchFields.C +$(basicFaPatchFields)/calculated/calculatedFaPatchVectorNFields.C $(basicFaPatchFields)/coupled/coupledFaPatchFields.C +$(basicFaPatchFields)/coupled/coupledFaPatchVectorNFields.C $(basicFaPatchFields)/zeroGradient/zeroGradientFaPatchFields.C +$(basicFaPatchFields)/zeroGradient/zeroGradientFaPatchVectorNFields.C $(basicFaPatchFields)/fixedValue/fixedValueFaPatchFields.C +$(basicFaPatchFields)/fixedValue/fixedValueFaPatchVectorNFields.C $(basicFaPatchFields)/fixedGradient/fixedGradientFaPatchFields.C +$(basicFaPatchFields)/fixedGradient/fixedGradientFaPatchVectorNFields.C $(basicFaPatchFields)/mixed/mixedFaPatchFields.C $(basicFaPatchFields)/transform/transformFaPatchFields.C $(basicFaPatchFields)/transform/transformFaPatchScalarField.C +$(basicFaPatchFields)/transform/transformFaPatchVectorNFields.C constraintFaPatchFields = $(faPatchFields)/constraint $(constraintFaPatchFields)/empty/emptyFaPatchFields.C +$(constraintFaPatchFields)/empty/emptyFaPatchVectorNFields.C $(constraintFaPatchFields)/processor/processorFaPatchFields.C $(constraintFaPatchFields)/processor/processorFaPatchScalarField.C +$(constraintFaPatchFields)/processor/processorFaPatchVectorNFields.C $(constraintFaPatchFields)/wedge/wedgeFaPatchFields.C $(constraintFaPatchFields)/wedge/wedgeFaPatchScalarField.C +$(constraintFaPatchFields)/wedge/wedgeFaPatchVectorNFields.C $(constraintFaPatchFields)/cyclic/cyclicFaPatchFields.C +$(constraintFaPatchFields)/cyclic/cyclicFaPatchVectorNFields.C $(constraintFaPatchFields)/symmetry/symmetryFaPatchFields.C derivedFaPatchFields = $(faPatchFields)/derived @@ -66,8 +77,18 @@ $(constraintFaePatchFields)/wedge/wedgeFaePatchFields.C $(constraintFaePatchFields)/cyclic/cyclicFaePatchFields.C $(constraintFaePatchFields)/symmetry/symmetryFaePatchFields.C +faePatchVectorNFields = $(faePatchFields)/faePatchVectorNFields +$(faePatchVectorNFields)/faePatchVectorNFields.C +$(faePatchVectorNFields)/calculatedFaePatchVectorNFields.C +$(faePatchVectorNFields)/emptyFaePatchVectorNFields.C +$(faePatchVectorNFields)/wedgeFaePatchVectorNFields.C +$(faePatchVectorNFields)/coupledFaePatchVectorNFields.C +$(faePatchVectorNFields)/processorFaePatchVectorNFields.C + fields/areaFields/areaFields.C +fields/areaFields/areaVectorNFields.C fields/edgeFields/edgeFields.C +fields/edgeFields/edgeVectorNFields.C faMatrices/faMatrices.C faMatrices/faScalarMatrix/faScalarMatrix.C @@ -122,4 +143,12 @@ convectionSchemes = finiteArea/convectionSchemes $(convectionSchemes)/faConvectionScheme/faConvectionSchemes.C $(convectionSchemes)/gaussFaConvectionScheme/gaussFaConvectionSchemes.C +general = cfdTools/general + +solutionFaControl = $(general)/solutionFaControl +$(solutionFaControl)/solutionFaControl/solutionFaControl.C +$(solutionFaControl)/simpleFaControl/simpleFaControl.C +$(solutionFaControl)/pimpleFaControl/pimpleFaControl.C +$(solutionFaControl)/pisoFaControl/pisoFaControl.C + LIB = $(FOAM_LIBBIN)/libfiniteArea diff --git a/src/finiteArea/cfdTools/general/solutionFaControl/pimpleFaControl/pimpleFaControl.C b/src/finiteArea/cfdTools/general/solutionFaControl/pimpleFaControl/pimpleFaControl.C new file mode 100644 index 000000000..cd6312f9f --- /dev/null +++ b/src/finiteArea/cfdTools/general/solutionFaControl/pimpleFaControl/pimpleFaControl.C @@ -0,0 +1,239 @@ +/*---------------------------------------------------------------------------*\ + ========= | + \\ / F ield | foam-extend: Open Source CFD + \\ / O peration | Version: 4.0 + \\ / A nd | Web: http://www.foam-extend.org + \\/ M anipulation | For copyright notice see file Copyright +------------------------------------------------------------------------------- +License + This file is part of foam-extend. + + foam-extend 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. + + foam-extend 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 foam-extend. If not, see . + +\*---------------------------------------------------------------------------*/ + +#include "pimpleFaControl.H" +#include "Switch.H" + +// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // + +namespace Foam +{ + defineTypeNameAndDebug(pimpleFaControl, 0); +} + + +// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * // + +void Foam::pimpleFaControl::read() +{ + solutionFaControl::read(false); + + // Read solution controls + const dictionary& pimpleDict = dict(); + nCorrPIMPLE_ = pimpleDict.lookupOrDefault