From d7f85054e8eac027fdbd446c6f37298d533bd209 Mon Sep 17 00:00:00 2001 From: Mark Olesen <Mark.Olesen@Germany> Date: Mon, 7 Jul 2008 08:49:35 +0200 Subject: [PATCH] minor fixup for flowRate bcs. --- .../flowRateInletVelocityFvPatchVectorField.C | 4 ++-- .../flowRateInletVelocityFvPatchVectorField.H | 7 ++++--- .../timeVaryingFlowRateInletVelocityFvPatchVectorField.H | 2 +- .../timeVaryingUniformFixedValueFvPatchField.H | 2 +- .../timeVaryingUniformTotalPressureFvPatchScalarField.H | 7 +++++-- tutorials/rhoPimpleFoam/angledDuct/0/U | 4 ++-- tutorials/rhoPorousSimpleFoam/angledDuctImplicit/0/U | 4 ++-- 7 files changed, 17 insertions(+), 13 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.C index c3427b4bded..2d2f6f204c4 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.C @@ -156,8 +156,8 @@ void Foam::flowRateInletVelocityFvPatchVectorField::updateCoeffs() FatalErrorIn ( "flowRateInletVelocityFvPatchVectorField::updateCoeffs()" - ) << "dimensions of phi are incorrect" - << "\n on patch " << this->patch().name() + ) << "dimensions of " << phiName_ << " are incorrect" << nl + << " on patch " << this->patch().name() << " of field " << this->dimensionedInternalField().name() << " in file " << this->dimensionedInternalField().objectPath() << nl << exit(FatalError); diff --git a/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.H index b0c8de9b2f0..ff5b0e4afc0 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.H @@ -26,12 +26,13 @@ Class Foam::flowRateInletVelocityFvPatchVectorField Description - Describes an volumetric/mass flow normal vector boundary condition by its + Describes a volumetric/mass flow normal vector boundary condition by its magnitude as an integral over its area. + The basis of the patch (volumetric or mass) is determined by the dimensions of the flux, phi. - The current density is used to correct the velocity when applying the mass - basis. + The current density is used to correct the velocity when applying the + mass basis. Example of the boundary condition specification: @verbatim diff --git a/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingFlowRateInletVelocity/timeVaryingFlowRateInletVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingFlowRateInletVelocity/timeVaryingFlowRateInletVelocityFvPatchVectorField.H index cbacacb4c54..21198d936ea 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingFlowRateInletVelocity/timeVaryingFlowRateInletVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingFlowRateInletVelocity/timeVaryingFlowRateInletVelocityFvPatchVectorField.H @@ -46,7 +46,7 @@ Note - strange behaviour with potentialFoam since the U equation is not solved See Also - Foam::timeSeries and Foam::flowRateInletVelocityFvPatchVectorField + Foam::interpolationTable and Foam::flowRateInletVelocityFvPatchVectorField SourceFiles timeVaryingFlowRateInletVelocityFvPatchVectorField.C diff --git a/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingUniformFixedValue/timeVaryingUniformFixedValueFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingUniformFixedValue/timeVaryingUniformFixedValueFvPatchField.H index bd073c24b1c..b6ce246cc6d 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingUniformFixedValue/timeVaryingUniformFixedValueFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingUniformFixedValue/timeVaryingUniformFixedValueFvPatchField.H @@ -43,7 +43,7 @@ Note a uniformFixedValue patch. See Also - Foam::timeSeries and Foam::fixedValueFvPatchField + Foam::interpolationTable and Foam::fixedValueFvPatchField SourceFiles timeVaryingUniformFixedValueFvPatchField.C diff --git a/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingUniformTotalPressure/timeVaryingUniformTotalPressureFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingUniformTotalPressure/timeVaryingUniformTotalPressureFvPatchScalarField.H index 4bfead28d1c..8d02bcefeb8 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingUniformTotalPressure/timeVaryingUniformTotalPressureFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingUniformTotalPressure/timeVaryingUniformTotalPressureFvPatchScalarField.H @@ -26,8 +26,11 @@ Class Foam::timeVaryingUniformTotalPressureFvPatchScalarField Description - See timeVaryingUniformFixedValueFvPatchField.H - and totalPressureFvPatchScalarField.H + A time-varying form of a uniform total pressure boundary condition. + +See Also + Foam::timeVaryingUniformFixedValueFvPatchField + and Foam::totalPressureFvPatchScalarField.H SourceFiles timeVaryingUniformTotalPressureFvPatchScalarField.C diff --git a/tutorials/rhoPimpleFoam/angledDuct/0/U b/tutorials/rhoPimpleFoam/angledDuct/0/U index f18de82fff1..54bfd05ea93 100644 --- a/tutorials/rhoPimpleFoam/angledDuct/0/U +++ b/tutorials/rhoPimpleFoam/angledDuct/0/U @@ -42,8 +42,8 @@ boundaryField } inlet { - type massFlowRateInletVelocity; - massFlowRate 0.1; + type flowRateInletVelocity; + flowRate 0.1; value uniform (0 0 0); } outlet diff --git a/tutorials/rhoPorousSimpleFoam/angledDuctImplicit/0/U b/tutorials/rhoPorousSimpleFoam/angledDuctImplicit/0/U index e6ded2df85a..afea1eb58d6 100644 --- a/tutorials/rhoPorousSimpleFoam/angledDuctImplicit/0/U +++ b/tutorials/rhoPorousSimpleFoam/angledDuctImplicit/0/U @@ -42,8 +42,8 @@ boundaryField } inlet { - type massFlowRateInletVelocity; - massFlowRate 0.1; + type flowRateInletVelocity; + flowRate 0.1; value uniform (0 0 0); } outlet -- GitLab