CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   libsampling.o does not sample surfaces when in parallel using foam-extend. Bug? (https://www.cfd-online.com/Forums/openfoam-bugs/185712-libsampling-o-does-not-sample-surfaces-when-parallel-using-foam-extend-bug.html)

Santiago March 31, 2017 11:13

libsampling.o does not sample surfaces when in parallel using foam-extend. Bug?
 
So, I've been trying to extract some surfaces on runtime using a solver I have developed for foam-extend 4.0. The usual way is:

Code:

functions
{
// ... other function objects
        sampledSurface
        {
                functionObjectLibs ( "libsampling.so" );
                type surfaces;
                outputControl timeStep;
                outputInterval 1;
                enabled true;

                surfaceFormat foamFile;
                interpolationScheme none;
                interpolate false;
                triangulate false;

                fields
                (
                    U
                );

                surfaces
                (
                        inlet
                        {
                                type patch;
                                patchName inout1;
                        }
                );
        }
};

Inserted at the end of controlDict. The problem is that the code doesn't generate the planes when running in parallel, but it does generate the planes when running in serial. Additionally, the other function objects work like a charm. Is this a bug?

ashvinc9 June 15, 2017 07:13

Hi Santiago,

I found the same problem in OF 2.2. Have you come up with any solution?

Santiago June 16, 2017 03:38

Yes and no, I changed the surfaceFormat to 'raw' and it worked in parallel. I'd like to report this bug, but I haven't had the time to do so.

Sent from my Lenovo A5000 using CFD Online Forum mobile app

Naira February 4, 2022 09:37

sample surfaces problem while running in parallel
 
Hello


I am having the same problem,while running in parallel it only generates the planeA but not the left_x patch
Does anyone know ?
Thank you





sampledSurface
{
type surfaces;
libs ("libsampling.so");
libs ("libOpenFOAM.so");

writeControl timeStep;
writeInterval 1;
enabled true;

surfaceFormat boundaryData;
interpolationScheme none;
interpolate false;
triangulate false;

fields
(
U
p
);
surfaces
(
left_x
{
type patch;
patches ("left_x");
triangulate false;
}

planeA
{
type plane;
triangulate false;
planeType pointAndNormal;
pointAndNormalDict
{
point (4.186 4.18 2);
normal (1 0 0);
triangulate false;
//zone zone2;
}
}


All times are GMT -4. The time now is 07:17.