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

[snappyHexMesh] a new boundary appears after sHM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 19, 2017, 10:34
Default a new boundary appears after sHM
  #1
K.O
New Member
 
Huang Peng
Join Date: Jun 2011
Posts: 3
Rep Power: 14
K.O is on a distinguished road
Hi, i used three STL files to generate mesh with sHM, but after that there were four boundaries, three of them were defined in STL files, the last boundary contains all the three boundaries mentioned before, how to remove the last boundary.


/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

4
(
allBoundary
{
type patch;
nFaces 0;
startFace 856356;
}
inlet
{
type wall;
inGroups 1(wall);
nFaces 428;
startFace 856356;
}
outlet
{
type wall;
inGroups 1(wall);
nFaces 428;
startFace 856784;
}
wall
{
type wall;
inGroups 1(wall);
nFaces 28008;
startFace 857212;
}
)

// ************************************************** *********************** //
K.O is offline   Reply With Quote

Old   September 19, 2017, 21:28
Default
  #2
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

You can run createPatch with the attached createPatchDict (I think there is a thread here that discusses that solution). And it will remove your empty boundary

Note that in your case, the reason why it will work is because the allBoundary patch has 0 faces. If it is not 0 faces, then using createPatch to remove the extra boundary will not work.

Cheers,
Antimony
Attached Files
File Type: txt createPatchDict.txt (812 Bytes, 7 views)
Antimony is offline   Reply With Quote

Old   September 20, 2017, 09:51
Default
  #3
K.O
New Member
 
Huang Peng
Join Date: Jun 2011
Posts: 3
Rep Power: 14
K.O is on a distinguished road
Quote:
Originally Posted by Antimony View Post
Hi,

You can run createPatch with the attached createPatchDict (I think there is a thread here that discusses that solution). And it will remove your empty boundary

Note that in your case, the reason why it will work is because the allBoundary patch has 0 faces. If it is not 0 faces, then using createPatch to remove the extra boundary will not work.

Cheers,
Antimony

Hi, Antimony
Thanks for your advise, i've just delete the following lines in in boundary file, then it worked.
allBoundary
{
type patch;
nFaces 0;
startFace 856356;
}

but i don't know if it will lead some other problems.
And later i will try you method. thanks.
K.O is offline   Reply With Quote

Old   September 20, 2017, 22:22
Default
  #4
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

Yes, deleting it also works - but is sometimes quite dangerous. That is why I prefer to use createPatch with an empty createPatchDict.

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   September 25, 2017, 10:36
Default
  #5
K.O
New Member
 
Huang Peng
Join Date: Jun 2011
Posts: 3
Rep Power: 14
K.O is on a distinguished road
Quote:
Originally Posted by Antimony View Post
Hi,

Yes, deleting it also works - but is sometimes quite dangerous. That is why I prefer to use createPatch with an empty createPatchDict.

Cheers,
Antimony
Hi, Antimony

i use your createPatchDict, but there is a problem
Code:
--> FOAM FATAL IO ERROR: cannot open file
file: /home/hp/OpenFOAM/hp-2.3.1/run/pipeFlow/pipeflow_5/system/createPatchDict at line 0.   
 From function regIOobject::readStream()    
in file db/regIOobject/regIOobjectRead.C at line 87.FOAM exiting
and i see your file is version 2.2.x, and i am using 2.3.x.
if this cause the problem?
thanks.
K.O 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
Centrifugal fan-reverse flow in outlet lesds to a mass in flow field xiexing CFX 3 March 29, 2017 10:00
Low torque values on Screw Turbine Shaun Waters CFX 34 July 23, 2015 08:16
Waterwheel shaped turbine inside a pipe simulation problem mshahed91 CFX 3 January 10, 2015 11:19
domain imbalance for enrgy equation happy CFX 14 September 6, 2012 01:54
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 04:05


All times are GMT -4. The time now is 06:56.