|
[Sponsors] |
[mesh manipulation] Not able to read stl file provided in topoSetDict |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 16, 2022, 11:24 |
Not able to read stl file provided in topoSetDict
|
#1 | |
New Member
Kishan Shukla
Join Date: Jan 2022
Posts: 5
Rep Power: 4 |
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:
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; } // } ); // ************************************************************************* // |
||
January 17, 2022, 09:09 |
|
#2 |
Senior Member
M
Join Date: Dec 2017
Posts: 703
Rep Power: 13 |
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?
|
|
January 17, 2022, 11:50 |
|
#3 |
New Member
Clemens Goessnitzer
Join Date: Nov 2021
Posts: 6
Rep Power: 5 |
You need to specify it with $FOAM_CASE:
Code:
file "$FOAM_CASE/constant/triSurface/pipeSurface.stl"; |
|
Tags |
refinemesh, surfacetocell, toposet |
|
|
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 |