diff --git a/src/OpenFOAM/interpolations/interpolationTable/interpolationTable.H b/src/OpenFOAM/interpolations/interpolationTable/interpolationTable.H index 6ba129558ac5ec318dc1aaf272210ad6004c1f2e..09f2e74442544a312f849e20fb6c59432dd5b329 100644 --- a/src/OpenFOAM/interpolations/interpolationTable/interpolationTable.H +++ b/src/OpenFOAM/interpolations/interpolationTable/interpolationTable.H @@ -42,7 +42,7 @@ Description Read csv format: \verbatim readerType csv; - fileName "$FOAM_CASE/constant/p0vsTime.csv"; + file "$FOAM_CASE/constant/p0vsTime.csv"; hasHeaderLine true; // skip first line timeColumn 0; // time is in column 0 valueColumns (1); // value starts in column 1 diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fanPressure/fanPressureFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/fanPressure/fanPressureFvPatchScalarField.H index e8744b192c90240e0f15e742d396b485bd44b744..caaf220b7c840a6f5506c5f36e8ec0dee15b7957 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fanPressure/fanPressureFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/fanPressure/fanPressureFvPatchScalarField.H @@ -52,7 +52,7 @@ Description Usage \table Property | Description | Required | Default value - fileName | fan curve file name | yes | + file | fan curve file name | yes | outOfBounds | out of bounds handling | yes | direction | direction of flow through fan [in/out] | yes | p0 | environmental total pressure | yes | diff --git a/tutorials/incompressible/pimpleFoam/RAS/TJunctionFan/0.orig/p b/tutorials/incompressible/pimpleFoam/RAS/TJunctionFan/0.orig/p index 8260a694a24eadfaae231b941a363a69f0cbbfcc..ea3298915748482ac5d006c308e7bd635c8a330a 100644 --- a/tutorials/incompressible/pimpleFoam/RAS/TJunctionFan/0.orig/p +++ b/tutorials/incompressible/pimpleFoam/RAS/TJunctionFan/0.orig/p @@ -23,12 +23,17 @@ boundaryField { inlet { - type uniformTotalPressure; - p0 table - ( - (0 10) - (1 40) - ); + type fanPressure; + outOfBounds clamp; + direction in; + readerType openFoam; + hasHeaderLine true; + file "$FOAM_CASE/constant/FluxVsdP.dat"; + //nonDimensional true; + //rpm 300; + //dm 2e-2; + outOfBounds clamp; + p0 uniform 30; } outlet1 { diff --git a/tutorials/incompressible/pimpleFoam/RAS/TJunctionFan/constant/FluxVsdP.dat b/tutorials/incompressible/pimpleFoam/RAS/TJunctionFan/constant/FluxVsdP.dat new file mode 100644 index 0000000000000000000000000000000000000000..94cdf398acb1ac9416d6efefa2f1a07da282381c --- /dev/null +++ b/tutorials/incompressible/pimpleFoam/RAS/TJunctionFan/constant/FluxVsdP.dat @@ -0,0 +1,5 @@ +( + (0 20) + (0.0023 10) + (0.003 5) +); diff --git a/tutorials/preProcessing/createZeroDirectory/snappyMultiRegionHeater/system/bottomAir/fvSolution b/tutorials/preProcessing/createZeroDirectory/snappyMultiRegionHeater/system/bottomAir/fvSolution index 99a5b3879c78c48ea789dcca698287f05d0bc76f..0c04403a67359d90156002974692d3a0b3b9fe7d 100644 --- a/tutorials/preProcessing/createZeroDirectory/snappyMultiRegionHeater/system/bottomAir/fvSolution +++ b/tutorials/preProcessing/createZeroDirectory/snappyMultiRegionHeater/system/bottomAir/fvSolution @@ -68,6 +68,8 @@ PIMPLE momentumPredictor on; nCorrectors 2; nNonOrthogonalCorrectors 0; + pRefCell 0; + pRefValue 1e5; } relaxationFactors diff --git a/tutorials/preProcessing/createZeroDirectory/snappyMultiRegionHeater/system/topAir/fvSolution b/tutorials/preProcessing/createZeroDirectory/snappyMultiRegionHeater/system/topAir/fvSolution index 7f5e19a75e5394e7e5025e5db7f393daddec862e..cf4dd593b8635ffc81527a341d6a32a1f4b0c216 100644 --- a/tutorials/preProcessing/createZeroDirectory/snappyMultiRegionHeater/system/topAir/fvSolution +++ b/tutorials/preProcessing/createZeroDirectory/snappyMultiRegionHeater/system/topAir/fvSolution @@ -68,6 +68,8 @@ PIMPLE momentumPredictor on; nCorrectors 2; nNonOrthogonalCorrectors 0; + pRefCell 0; + pRefValue 1e5; } relaxationFactors