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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 31, 2017, 12: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: 351
Rep Power: 14
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, 08:13
Default
  #2
New Member
 
Ashvin Chaudhari
Join Date: Aug 2011
Location: Finland
Posts: 23
Rep Power: 13
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, 04:38
Default
  #3
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 351
Rep Power: 14
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, 10:37
Default sample surfaces problem while running in parallel
  #4
New Member
 
Naira
Join Date: Sep 2021
Posts: 5
Rep Power: 3
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 11:51
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 14:06
[Gmsh] Import problem ARC OpenFOAM Meshing & Mesh Conversion 0 February 27, 2010 11:56
Parallel FOAM FATAL IO ERROR msrinath80 OpenFOAM Running, Solving & CFD 1 July 28, 2006 13:48


All times are GMT -4. The time now is 08:01.