CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

Create patches from a very complex geometry

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By fabian_roesler

Reply
 
LinkBack Thread Tools Display Modes
Old   January 8, 2015, 06:56
Post Create patches from a very complex geometry
  #1
New Member
 
Julie Correncon
Join Date: Oct 2014
Posts: 7
Rep Power: 2
CoSponge is on a distinguished road
Hello everybody,

I am wondering if it is possible to create patches and different region automatically from a .stl file.

For a simple geometry I tried to isolate the faces belonged to the different regions I'd like to have in the .stl file manually. It works perfectly
But now I have a very complex geometry, isolating the region is impossible by hand.

AutoPatch doesn't work, because it isolates some single points as a region (the mesh is not perfect) or the whole geometry, depending on the angle.

I know I could do it with the tool createPatches or making different blockMesh regions for each patch.

Does anyone knows the best option??

Thanks in avdance for the help,

Julie

Last edited by CoSponge; January 8, 2015 at 08:38.
CoSponge is offline   Reply With Quote

Old   January 9, 2015, 02:46
Default surfaceToPatch
  #2
Senior Member
 
fabian_roesler's Avatar
 
Fabian Roesler
Join Date: Mar 2009
Location: Bad Friedrichshall, Germany
Posts: 154
Rep Power: 8
fabian_roesler is on a distinguished road
Have you tried surfaceToPatch? With this tool you can identify faces close to a stl surface and automatically create a path out of them.

Cheers

Fabian
fumiya likes this.
fabian_roesler is offline   Reply With Quote

Old   January 12, 2015, 05:23
Default Error
  #3
New Member
 
Julie Correncon
Join Date: Oct 2014
Posts: 7
Rep Power: 2
CoSponge is on a distinguished road
Hey Fabian,

thank you a lot for your reply

I've tried, but I got this error:


// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create polyMesh for time = 0

Reading surface from "pipe.stl" ...
Patching all boundary faces according to nearest surface triangle ...
All boundary faces further away than 0.001 of mesh bounding box (-0.04 -0.2 -0.15) (0.04 0.04 0.2) will keep their patch label ...
Before patching:
patch size
defaultFaces 34385



--> FOAM FATAL ERROR:
Cannnot read "pipe.stl"

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

FOAM exiting

I should apply surfaceToPatch after snappyHexMesh, right?

Thanks in advance for the help,
greetings

Julie
CoSponge is offline   Reply With Quote

Old   January 13, 2015, 03:32
Default check the tutorials
  #4
Senior Member
 
fabian_roesler's Avatar
 
Fabian Roesler
Join Date: Mar 2009
Location: Bad Friedrichshall, Germany
Posts: 154
Rep Power: 8
fabian_roesler is on a distinguished road
When you're using snappy you can follow the chtMultiRegionFoam tutorials. They describe how to produce a multi region mesh with snappy. The basic work flow is the following:
  1. Create a single region mesh with cellZone for each region you want to create
  2. Run splitMeshRegions on the mesh (this will create the multi region mesh)
  3. Run changeDictionary to set the initial and boundary conditions for the regions
  4. Run the case
Cheers


Fabian
fabian_roesler is offline   Reply With Quote

Reply

Tags
complex geometry, patches, regions, stl file

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ANSYS Meshing] Problem with meshing a complex Geometry (Hex) fluent_beiyo ANSYS Meshing & Geometry 8 April 26, 2014 04:55
Case running in serial, but Parallel run gives error atmcfd OpenFOAM Running, Solving & CFD 10 November 24, 2013 07:35
[ICEM] Create geometry (iges or step file) from fluent mesh muketa ANSYS Meshing & Geometry 7 July 26, 2013 12:51
[ICEM] How to deal with a really complex geometry mountaineer ANSYS Meshing & Geometry 1 February 21, 2012 12:57
Include list of points Hikachu OpenFOAM Native Meshers: blockMesh 0 June 20, 2011 09:03


All times are GMT -4. The time now is 03:36.