|
[Sponsors] |
[snappyHexMesh] a new boundary appears after sHM |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 19, 2017, 10:34 |
a new boundary appears after sHM
|
#1 |
New Member
Huang Peng
Join Date: Jun 2011
Posts: 3
Rep Power: 14 |
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; } ) // ************************************************** *********************** // |
|
September 19, 2017, 21:28 |
|
#2 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 15 |
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 |
|
September 20, 2017, 09:51 |
|
#3 | |
New Member
Huang Peng
Join Date: Jun 2011
Posts: 3
Rep Power: 14 |
Quote:
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. |
||
September 20, 2017, 22:22 |
|
#4 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 15 |
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 |
|
September 25, 2017, 10:36 |
|
#5 | |
New Member
Huang Peng
Join Date: Jun 2011
Posts: 3
Rep Power: 14 |
Quote:
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 if this cause the problem? thanks. |
||
|
|
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 |