View Issue Details

IDProjectCategoryView StatusLast Update
0003881OpenFOAMBugpublic2022-09-13 08:24
Reporterheinten Assigned Towill  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
PlatformGNU/LinuxOSOtherOS Version(please specify)
Product Versiondev 
Fixed in Version10 
Summary0003881: topoSet - patchDistanceToCell crashes
DescriptiontopoSet crashes always when patchDistanceToCell is used for creating a cellSet. This happens both in OpenFOAM 10 and dev, but does not occur in OpenFOAM 9.

The error message is as follows:

Time = 0s
    mesh not changed.
Created cellSet mucusLayer
    Applying source patchDistanceToCell
    Adding cells a distance less than 0.2 from patches 1(movingWall) ...
#0 Foam::error::printStack(Foam::Ostream&) at ??:?
#1 Foam::sigSegv::sigHandler(int) at ??:?
#2 ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3 Foam::patchDistWave::wave(Foam::polyMesh const&, Foam::List<int> const&, Foam::Field<double>&) at ??:?
#4 Foam::patchDistWave::calculate(Foam::polyMesh const&, Foam::HashSet<int, Foam::Hash<int> > const&, Foam::Field<double>&) at ??:?
#5 Foam::patchDistanceToCell::combine(Foam::topoSet&, bool) const at ??:?
#6 ? in "/app2/OpenFOAM/OpenFOAM-10/platforms/linux64GccDPInt32Opt/bin/topoSet"
#7 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#8 ? in "/app2/OpenFOAM/OpenFOAM-10/platforms/linux64GccDPInt32Opt/bin/topoSet"
Speicherzugriffsfehler
Steps To ReproduceJust take the cavity tutorial case for icoFoam and use the appended topoSetDict. It should create a cellSet containing cells, which are 0.2 or less away from the top wall ('movingwall').
TagsNo tags attached.

Activities

wyldckat

2022-09-12 11:11

updater   ~0012725

@heinten: you wrote "use the appended topoSetDict"... if you meant "attached" instead of appended, it's not yet attached to this report.

heinten

2022-09-12 11:42

reporter   ~0012726

Sorry, I forgot to attach it. Here it is…
topoSetDict (925 bytes)   
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  10
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


actions
(
   // Create cellSet for setFields
   {
      name   mucusLayer;
      type   cellSet;
      action new;
      source patchDistanceToCell;
      
      sourceInfo
      {
          distance  0.2;
          patch     movingWall;
      }
   }

); 

// ************************************************************************* //
topoSetDict (925 bytes)   

will

2022-09-13 08:24

manager   ~0012727

Thanks for the report. Fixed in 10 and dev by the following commits:

https://github.com/OpenFOAM/OpenFOAM-10/commit/8d73542293f9f15151181b5ba0c7696e03bb2ad5
https://github.com/OpenFOAM/OpenFOAM-dev/commit/251f549a24cae3453cb2379ac2028a4e441a975e

Issue History

Date Modified Username Field Change
2022-09-12 10:45 heinten New Issue
2022-09-12 11:11 wyldckat Note Added: 0012725
2022-09-12 11:42 heinten Note Added: 0012726
2022-09-12 11:42 heinten File Added: topoSetDict
2022-09-13 08:24 will Assigned To => will
2022-09-13 08:24 will Status new => resolved
2022-09-13 08:24 will Resolution open => fixed
2022-09-13 08:24 will Fixed in Version => 10
2022-09-13 08:24 will Note Added: 0012727