CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

libsampling.o does not sample surfaces when in parallel using foam-extend. Bug?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 31, 2017, 11:13
Default libsampling.o does not sample surfaces when in parallel using foam-extend. Bug?
  #1
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 15
Santiago is on a distinguished road
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?
Santiago is offline   Reply With Quote

Old   June 15, 2017, 07:13
Default
  #2
New Member
 
Ashvin Chaudhari
Join Date: Aug 2011
Location: Finland
Posts: 23
Rep Power: 14
ashvinc9 is on a distinguished road
Hi Santiago,

I found the same problem in OF 2.2. Have you come up with any solution?
ashvinc9 is offline   Reply With Quote

Old   June 16, 2017, 03:38
Default
  #3
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 15
Santiago is on a distinguished road
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
Santiago is offline   Reply With Quote

Old   February 4, 2022, 09:37
Default sample surfaces problem while running in parallel
  #4
New Member
 
Join Date: Sep 2021
Posts: 6
Rep Power: 4
Naira is on a distinguished road
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;
}
}
Naira is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[blockMesh] Errors during blockMesh meshing Madeleine P. Vincent OpenFOAM Meshing & Mesh Conversion 51 May 30, 2016 10:51
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 13:06
[Gmsh] Import problem ARC OpenFOAM Meshing & Mesh Conversion 0 February 27, 2010 10:56
Parallel FOAM FATAL IO ERROR msrinath80 OpenFOAM Running, Solving & CFD 1 July 28, 2006 12:48


All times are GMT -4. The time now is 16:34.