|
[Sponsors] |
October 21, 2015, 11:31 |
Output cell face area from all patches
|
#1 |
New Member
Nikolai Tauber
Join Date: Sep 2015
Location: Aarhus, Denmark
Posts: 14
Rep Power: 10 |
Dear Foamers,
I am trying to make my solver output the cell face area from all my boundary patches. In createFields I have added Code:
IOField<scalar> SfOut ( IOobject ( "Sf", mesh.time().timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), mesh.magSf().boundaryField()[1] ); SfOut.write(); Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class scalarField; location "200"; object Sf; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 20 ( 1e-07 1e-07 1e-07 1e-07 1e-07 1e-07 1e-07 1e-07 1e-07 1e-07 4.54238e-08 5.29882e-08 6.18123e-08 7.21058e-08 8.41136e-08 9.81209e-08 1.14461e-07 1.33522e-07 1.55757e-07 1.81695e-07 ) // ************************************************************************* // Code:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 3 -3 0 0 0 0]; internalField uniform 0; boundaryField { outlet { type cyclic; } inlet { type cyclic; } bottomLeft { type symmetry; } bottomRight { type symmetry; } topLeft { type symmetry; } topRight { type symmetry; } cylLeft { type calculated; value nonuniform List<scalar> 60 ( -6069.48 -6117.97 -6190.55 -6273.09 -6361.34 -6458.12 -6559.21 -6668.83 -6784.17 -6906.63 -7034.82 -7170.15 .... and so on. |
|
October 23, 2015, 09:03 |
|
#2 |
New Member
Nikolai Tauber
Join Date: Sep 2015
Location: Aarhus, Denmark
Posts: 14
Rep Power: 10 |
Apperantly the writeCellCentres utility writes the cell face areas of type:
- patch - wall but not for type - symmetry - cyclic Why is this the case, and how do I modify the tool, so it writes the areas for all boundaries? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to set periodic boundary conditions | Ganesh | FLUENT | 15 | November 18, 2020 06:09 |
[blockMesh] Internal walls of zero thickness | anger | OpenFOAM Meshing & Mesh Conversion | 23 | February 6, 2020 18:25 |
[blockMesh] non-orthogonal faces and incorrect orientation? | nennbs | OpenFOAM Meshing & Mesh Conversion | 7 | April 17, 2013 05:42 |
Hydrostatic Pressure and Gravity | miliante | OpenFOAM Running, Solving & CFD | 132 | October 7, 2012 22:50 |
WARNING: non-positive face area exist. | Alan | Main CFD Forum | 4 | August 17, 2006 07:33 |