CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   create an IOobject with the mesh surfaces (https://www.cfd-online.com/Forums/openfoam-solving/242227-create-ioobject-mesh-surfaces.html)

MarcDP April 11, 2022 10:35

create an IOobject with the mesh surfaces
 
Hello everyone,

I am trying to do something that should be quite easy with no success. My idea is to create an IOobject with the values of the surfaces of hte mesh elements. I am modifying the scalar transport solver. In the createFields.h, I added:

Code:

surfaceScalarField faceSurfs
 (
    IOobject
    (
        "faceSurfs",
        runTime.timeName(),
        mesh,
        IOobject::NO_READ,
        IOobject::AUTO_WRITE
    ),
    mesh,
    dimensionedScalar("zero", dimArea, 0.0)
 );

 faceSurfs.ref() = mesh.magSf();

However this calculate the areas only of the elements of the internal mesh and not on the boundary faces. Anyone can help? it is quite urgent :confused: :confused:

Thanks!

MarcDP April 13, 2022 11:17

Bump!

hopefully somebody has some help for this


All times are GMT -4. The time now is 18:51.