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

[snappyHexMesh] refine from stl without creating a patch

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By apostolos

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 18, 2019, 04:56
Default refine from stl without creating a patch
  #1
Senior Member
 
louisgag's Avatar
 
Louis Gagnon
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 338
Rep Power: 18
louisgag is on a distinguished road
Send a message via ICQ to louisgag
Hi everyone,
I'm creating a mesh using snappyHexMesh and one of the stl files I use to define the refinement levels should not create a patch (but rather only be used to refine the region). Is that possible?
I tried various approaches, and also stitchMesh/mergeMesh and deleting the patch from the boundary file, but nothing does it. At best my refinement region gets totally ignored.
Regards,
-Louis
louisgag is offline   Reply With Quote

Old   August 22, 2019, 07:09
Default
  #2
Senior Member
 
Muhammad Waqas
Join Date: Jul 2014
Location: Germany
Posts: 122
Rep Power: 11
mwaqas is on a distinguished road
Send a message via Skype™ to mwaqas
Hello Louis,
There are couple of things you can do.
It is strange that your refinement region gets ignored. Double check, the coordinates of your refinement region and also have a look on example tutorial to use refinement region correctly. I used it many time and I don't see any reason for it getting ignored.
If you are using stl file to refine mesh, you can use createPatchDict to combine it with neighboring patch.


Quote:

pointSync false;

// Patches to create.
patches
(
{
// Name of new patch
name solid_4_to_top_4;

// Dictionary to construct new patch from
patchInfo
{
type mappedWall; // can be wall or patch
neighbourPatch wall;
sampleMode nearestPatchFace;
sampleRegion top_4;
samplePatch top_4_to_solid_4;
offset (0.000001 0.000001 0.000001);

}

// How to construct: either from 'patches' or 'set'
constructFrom patches;

// If constructFrom = patches : names of patches. Wildcards allowed.
patches (patch1 patch2);

}
);
mwaqas is offline   Reply With Quote

Old   August 28, 2019, 05:39
Default
  #3
Senior Member
 
louisgag's Avatar
 
Louis Gagnon
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 338
Rep Power: 18
louisgag is on a distinguished road
Send a message via ICQ to louisgag
Hi Muhammad,
Thank you for your reply.
I was not clear enough: my region gets refined without problem (with stl or boxes/cylinders/etc).
My issue is that it always creates a patch in correspondence to the stl file's geometry and I don't want that patch!
Kind regards,
-Louis
louisgag is offline   Reply With Quote

Old   August 28, 2019, 06:18
Default
  #4
Senior Member
 
Muhammad Waqas
Join Date: Jul 2014
Location: Germany
Posts: 122
Rep Power: 11
mwaqas is on a distinguished road
Send a message via Skype™ to mwaqas
Hello Loius,


I understood what your concern is.


First of all, I never tried this approach (stl file only for refinement purpose without creating patch).

You can try by using same name of two stl patches that you want to combine (I am not sure about it as I never tried this). It might work.

Quote:
geometry
{
patch1.stl { type triSurfaceMesh; name patch1; }

patch2.stl { type triSurfaceMesh; name patch1; }

patch3.stl { type triSurfaceMesh; name patch3; }

};

The best approach is to use single stl file for patches and use searchable region for refinement


Regards
mwaqas is offline   Reply With Quote

Old   November 7, 2019, 05:58
Default
  #5
New Member
 
Apostolos
Join Date: Apr 2019
Posts: 1
Rep Power: 0
apostolos is on a distinguished road
you probably figured it out by now, but the answer is that you should only use your .stl at the refinementRegion entrance and ignore the refinementSurface one
Ngaru likes this.
apostolos is offline   Reply With Quote

Old   November 9, 2019, 03:08
Default
  #6
Senior Member
 
louisgag's Avatar
 
Louis Gagnon
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 338
Rep Power: 18
louisgag is on a distinguished road
Send a message via ICQ to louisgag
thanks for the tip, but I am pretty certain that this method will only create a refinement region and no "snapped" surface. I wanted the snapped surface without a patch while I was comparing a case with AMI to one without.
louisgag is offline   Reply With Quote

Old   February 10, 2020, 17:46
Default
  #7
Member
 
benoit paillard
Join Date: Mar 2010
Posts: 96
Rep Power: 16
bennn is on a distinguished road
Again, a little late to the party, but I'd say best practice in AMI case is to create two geometry files base on a common rotating boundary, then create two separate meshes, and eventually merge the two meshes into a single case.


I have never seen an AMI case where the meshing is done in a single step.
bennn is offline   Reply With Quote

Old   October 12, 2021, 07:28
Default Using faceType internal
  #8
Member
 
Wouter
Join Date: Aug 2013
Posts: 41
Rep Power: 12
wouterremmerie is on a distinguished road
We tried something similar and in the end it worked by doing this:

At the beginning, when declaring the geometry:

object.stl
{
type triSurfaceMesh;
object;
}


Under surface refinement:

object
faceType internal;
faceZone object_zone;


It creates 2 complementary patches, but they are not seen as a real wall.
Not sure if the faces actually match. If that's required, you could consider using faceType baffle instead?

Hope it helps!
wouterremmerie is offline   Reply With Quote

Reply


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
[Commercial meshers] Fluent3DMeshToFoam simvun OpenFOAM Meshing & Mesh Conversion 50 January 19, 2020 15:33
steadyUniversalMRFFoam Tutorial fails in MixingPlane HenrikJohansson OpenFOAM Bugs 0 February 14, 2019 04:48
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 19:43
[Other] How to create an MRF zone ? aminem OpenFOAM Meshing & Mesh Conversion 2 December 8, 2014 10:45
mapFields : internal edges Gearb0x OpenFOAM Running, Solving & CFD 3 April 19, 2010 09:02


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