From 0fd7a699112be8620b827326c504d50028c52b4e Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Fri, 15 Oct 2010 16:22:18 +0100 Subject: [PATCH] ENH: setFields : allow faceSets for patchField setting --- .../hotRoom/system/setFieldsDict | 37 +++++++++++++++++++ .../hotRoom/system/setFieldsDict | 37 +++++++++++++++++++ .../hotRoom/system/setFieldsDict | 37 +++++++++++++++++++ .../hotRoom/system/setFieldsDict | 37 +++++++++++++++++++ 4 files changed, 148 insertions(+) create mode 100644 tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/hotRoom/system/setFieldsDict create mode 100644 tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/system/setFieldsDict create mode 100644 tutorials/heatTransfer/buoyantPimpleFoam/hotRoom/system/setFieldsDict create mode 100644 tutorials/heatTransfer/buoyantSimpleFoam/hotRoom/system/setFieldsDict diff --git a/tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/hotRoom/system/setFieldsDict b/tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/hotRoom/system/setFieldsDict new file mode 100644 index 00000000000..6c4da7bc6a8 --- /dev/null +++ b/tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/hotRoom/system/setFieldsDict @@ -0,0 +1,37 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object setFieldsDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +defaultFieldValues +( + volScalarFieldValue T 300 +); + +regions +( + // Set patch values (using ==) + boxToFace + { + box (4.5 -1000 4.5) (5.5 1E-5 5.5); + + fieldValues + ( + volScalarFieldValue T 600 + ); + } +); + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/system/setFieldsDict b/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/system/setFieldsDict new file mode 100644 index 00000000000..6c4da7bc6a8 --- /dev/null +++ b/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/system/setFieldsDict @@ -0,0 +1,37 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object setFieldsDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +defaultFieldValues +( + volScalarFieldValue T 300 +); + +regions +( + // Set patch values (using ==) + boxToFace + { + box (4.5 -1000 4.5) (5.5 1E-5 5.5); + + fieldValues + ( + volScalarFieldValue T 600 + ); + } +); + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/buoyantPimpleFoam/hotRoom/system/setFieldsDict b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoom/system/setFieldsDict new file mode 100644 index 00000000000..6c4da7bc6a8 --- /dev/null +++ b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoom/system/setFieldsDict @@ -0,0 +1,37 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object setFieldsDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +defaultFieldValues +( + volScalarFieldValue T 300 +); + +regions +( + // Set patch values (using ==) + boxToFace + { + box (4.5 -1000 4.5) (5.5 1E-5 5.5); + + fieldValues + ( + volScalarFieldValue T 600 + ); + } +); + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/buoyantSimpleFoam/hotRoom/system/setFieldsDict b/tutorials/heatTransfer/buoyantSimpleFoam/hotRoom/system/setFieldsDict new file mode 100644 index 00000000000..6c4da7bc6a8 --- /dev/null +++ b/tutorials/heatTransfer/buoyantSimpleFoam/hotRoom/system/setFieldsDict @@ -0,0 +1,37 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object setFieldsDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +defaultFieldValues +( + volScalarFieldValue T 300 +); + +regions +( + // Set patch values (using ==) + boxToFace + { + box (4.5 -1000 4.5) (5.5 1E-5 5.5); + + fieldValues + ( + volScalarFieldValue T 600 + ); + } +); + +// ************************************************************************* // -- GitLab