CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [surface handling] surfaceMeshTriangulate for only selected patches (https://www.cfd-online.com/Forums/openfoam-meshing/202457-surfacemeshtriangulate-only-selected-patches.html)

yesaswi92 May 31, 2018 11:25

surfaceMeshTriangulate for only selected patches
 
Hello,

I generated polyMesh using blockMesh utility with three patches: sideWall, topWall and bottomWall. I then used the surfaceMeshTriangulate utility to generate stl file.

Now, I'm trying to generate an stl file, separately for each patch. In the help option for surfaceMeshTriangulate, there is an option named -patches for that. But I'm unable to make use of it due to formatting.

The following is what I'm trying:
surfaceMeshTriangulate -patches sideWall myMesh.stl

But I'm getting the following error,
--> FOAM FATAL IO ERROR:
incorrect first token, expected <int> or '(', found on line 0 the word 'sideWall'

file: IStringStream.sourceFile at line 0.

From function Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::List<T>&) [with T = Foam::wordRe]
in file /usr/local/usrapps/gould/CFD-DEM/OpenFOAM/OpenFOAM-5.x/src/OpenFOAM/lnInclude/ListIO.C at line 148.


Can someone help me out with this?

Thank You

tomf June 1, 2018 02:46

Hi,

Usually this means OpenFOAM is expecting something like this:

Code:

surfaceMeshTriangulate -patches '(sideWall)' myMesh.stl
Where potentially you could include other patches as:

Code:

surfaceMeshTriangulate -patches '(sideWall otherWall thirdWall)' myMesh.stl

yesaswi92 June 1, 2018 15:09

Thank you!! That works


All times are GMT -4. The time now is 20:07.