CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[mesh manipulation] Not able to read stl file provided in topoSetDict

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 16, 2022, 11:24
Default Not able to read stl file provided in topoSetDict
  #1
New Member
 
Kishan Shukla
Join Date: Jan 2022
Posts: 5
Rep Power: 4
engg_student is on a distinguished road
I am trying to refine a pipe surface (an annular cylinder). I am using surfaceToCell to make cellSet from the stl file of the pipe. But on running topoSet, I get following error:
Quote:
--> FOAM FATAL ERROR:
Cannot read "/home/kishan/OpenFoam-Simulations/concentric-tube-heat-exchanger-new/constant/triSurface/pipeSurface.stl"

From function bool Foam::triSurface::read(const Foam::fileName&, const Foam::word&, bool)
in file triSurface/triSurface.C at line 304.

FOAM exiting

Here's my topoSet:

Code:
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  8
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

actions
(
    {
        name    c0;
        type    cellSet;
        action  new;
        source cylinderToCell;
        sourceInfo
        {
            p1 (0 0 0);
            p2 (0 0 1);
            radius 0.0125;
        }
    }

    {
        name    InnerFluid;
        type    cellZoneSet;
        action  new;
        source setToCellZone;
        sourceInfo
        { set c0;  }
    }

    {
        name    c1;
        type    cellSet;
        action  new;
        source cylinderAnnulusToCell;
        sourceInfo
        {
            p1 (0 0 0);
            p2 (0 0 1);
            outerRadius 0.015;
            innerRadius 0.0125;
        }
    }

    {
        name    Pipe;
        type    cellZoneSet;
        action  new;
        source setToCellZone;
        sourceInfo
        { set c1;  }
    }

    {
        name    c2;
        type    cellSet;
        action  new;
        source cylinderAnnulusToCell;
        sourceInfo
        {
            p1 (0 0 0);
            p2 (0 0 1);
            outerRadius 0.0375;
            innerRadius 0.015;
        }
    }

    {
        name    OuterFluid;
        type    cellZoneSet;
        action  new;
        source setToCellZone;
        sourceInfo
        { set c2;  }
    }

    {
        // Mandatory (inherited) entries
        name        pipeSurfaceCells;
        type        cellSet;
        action      new;

        // Mandatory entries
        source             surfaceToCell;
        sourceInfo
        {
            file        "./constant/triSurface/pipeSurface.stl";
            outsidePoints
            ((0.0370 0.0 0.5));
            includeCut      true;
            includeInside   false;
            includeOutside  false;
            nearDistance    0.001;
            curvature       1.0;
            fileType        stl;
        }
        

        // Optional entries
        // useSurfaceOrientation false;
        // scale           2.0;
    }

    // {
    //     name    pipeSurfaceCells;
    //     type    cellZoneSet;
    //     action  new;
    //     source setToCellZone;
    //     sourceInfo
    //     { set c3;  }
    // }
);

// ************************************************************************* //
engg_student is offline   Reply With Quote

Old   January 17, 2022, 09:09
Default
  #2
Senior Member
 
M
Join Date: Dec 2017
Posts: 703
Rep Power: 13
AtoHM is on a distinguished road
Not 100% sure, but I think it looks into constant/triSurface/ on its own. Have you tried providing only the file name without any path?
AtoHM is offline   Reply With Quote

Old   January 17, 2022, 11:50
Default
  #3
New Member
 
Clemens Goessnitzer
Join Date: Nov 2021
Posts: 6
Rep Power: 5
cgoessni is on a distinguished road
You need to specify it with $FOAM_CASE:

Code:
file  "$FOAM_CASE/constant/triSurface/pipeSurface.stl";
cgoessni is offline   Reply With Quote

Reply

Tags
refinemesh, surfacetocell, toposet


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
[Other] Tabulated thermophysicalProperties library chriss85 OpenFOAM Community Contributions 62 October 2, 2022 04:50
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 19:13
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 04:23
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 11:57
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08


All times are GMT -4. The time now is 13:40.