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

[surface handling] surfaceMeshTriangulate for only selected patches

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By tomf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 31, 2018, 11:25
Default surfaceMeshTriangulate for only selected patches
  #1
New Member
 
Yesaswi
Join Date: Jan 2014
Posts: 26
Rep Power: 12
yesaswi92 is on a distinguished road
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:perator>>(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
yesaswi92 is offline   Reply With Quote

Old   June 1, 2018, 02:46
Default
  #2
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 634
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
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
Tobi and SHUBHAM9595 like this.
tomf is offline   Reply With Quote

Old   June 1, 2018, 15:09
Default
  #3
New Member
 
Yesaswi
Join Date: Jan 2014
Posts: 26
Rep Power: 12
yesaswi92 is on a distinguished road
Thank you!! That works
yesaswi92 is offline   Reply With Quote

Reply

Tags
-patches, surfacemeshtriangulate


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
Problem using AMI vinz OpenFOAM Running, Solving & CFD 298 November 13, 2023 08:19
Foam::error::PrintStack almir OpenFOAM Running, Solving & CFD 91 December 21, 2022 04:50
[snappyHexMesh] snappyHexMesh error "Cannot determine normal vector from patches." lethu OpenFOAM Meshing & Mesh Conversion 1 June 3, 2020 07:49
Possible bug with stitchMesh and cyclics in OpenFoam Jack001 OpenFOAM Pre-Processing 0 May 21, 2016 08:00
Cyclic boundaries in OF 21x morard OpenFOAM 25 May 13, 2013 22:35


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