CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [blockMesh] --> FOAM FATAL ERROR: Trying to specify a boundary face (https://www.cfd-online.com/Forums/openfoam-meshing/105409-foam-fatal-error-trying-specify-boundary-face.html)

A.A. July 30, 2012 10:11

--> FOAM FATAL ERROR: Trying to specify a boundary face
 
Hi,
I am getting the following error message when I type blockMesh in the terminal:



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

Creating block mesh from
"/home/gzabos/OpenFOAM/gzabos-2.1.1/run/tutorials/incompressible/pimpleDyMFoam/hybro2/constant/polyMesh/blockMeshDict"
Creating curved edges
Creating topology blocks
Creating topology patches

Reading patches section

Creating block mesh topology

Reading physicalType from existing boundary file

Default patch type set to empty


--> FOAM FATAL ERROR:
Trying to specify a boundary face 4(22 19 219 222) on the face on cell 6 which is either an internal face or already belongs to some other patch. This is face 0 of patch 0 named profile1.

From function polyMesh::setTopology
(
const cellShapeList& cellsAsShapes,
const faceListList& boundaryFaces,
const wordList& boundaryPatchNames,
labelList& patchSizes,
labelList& patchStarts,
label& defaultPatchStart,
label& nFaces,
cellList& cells
)
in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 360.

FOAM aborting


My blockMeshDict file looks as follows:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 0.001;

vertices
(
(0 0 0) //0//
(-50 0 141.421) //1//
(50 0 141.421) //2//
(94.281 0 266.667) //3//
(-94.281 0 266.667) //4//
(0 0 150) //5//
(0 0 200) //6//
(-94.281 0 333.333) //7//
(-128.866 0 431.154) //8//
(-150 0 424.264) //9//
(-100 0 300) //10//
(150 0 424.264) //11//
(128.866 0 431.154) //12//
(94.281 0 333.333) //13//
(100 0 300) //14//
(0 0 450) //15//
(0 0 400) //16//
(-75 0 290) //17//
(75 0 290) //18//
(75 0 300) //19//
(75 0 310) //20//
(-75 0 310) //21//
(-75 0 300) //22//
(224.488 0 172.062) //23//
(88.149 0 121.366) //24//
(166.216 0 228.85) //25//
(357.158 0 273.748) //26//
(264.448 0 364.098) //27//
(149.95 0 -3.851) //28//
(282.75 0 -7.262) //29//
(190.211 0 61.803) //30//
(287.884 0 192.672) //31//
(370.23 0 255.793) //32//
(262.14 0 164.034) //33//
(449.852 0 -11.554) //34//
(449.874 0 10.675) //35//
(346.153 0 13.339) //36//
(316.219 0 -2.401) //37//
(298.983 0 18.286) //38//
(308.493 0 21.376) //39//
(318.004 0 24.466) //40//
(271.651 0 167.125) //41//
(262.141 0 164.034) //42//
(252.630 0 160.944) //43//
(380.423 0 123.607) //44//
(427.975 0 139.058) //45//
(123.572 0 -85.029) //46//
(142.666 0 -46.331) //47//
(233.011 0 -160.331) //48//
(269.013 0 -87.362) //49//
(370.718 0 -255.085) //50//
(428.009 0 -139.031) //51//
(42.674 0 -143.801) //52//
(88.168 0 -121.353) //53//
(80.468 0 -271.155) //54//
(117.557 0 -161.803) //55//
(119.653 0 -325.089) //56//
(115.659 0 -286.789) //57//
(128.024 0 -431.405) //58//
(149.171 0 -424.556) //59//
(357.681 0 -273.065) //60//
(272.203 0 -214.255) //61//
(275.237 0 -183.927) //62//
(235.114 0 -323.607) //63//
(264.503 0 -364.058) //64//
(109.781 0 -278.699) //65//
(115.659 0 -286.789) //66//
(121.537 0 -294.879) //67//
(242.89 0 -206.711) //68//
(237.012 0 -198.621) //69//
(231.134 0 -190.531) //70//
(119.053 0 91.249) //71//
(-42.681 0 -143.8) //72//
(0.023 0 -150) //73//
(-80.479 0 -271.152) //74//
(0.043 0 -282.843) //75//
(-128.042 0 -431.399) //76//
(0.0685 0 -450.0) //77//
(-123.576 0 -85.023) //78//
(-88.168 0 -121.353) //79//
(-233.018 0 -160.321) //80//
(-117.557 0 -161.803) //81//
(-272.203 0 -214.255) //82//
(-237.012 0 -198.621) //83//
(-370.729 0 -255.069) //84//
(-357.681 0 -273.065) //85//
(-264.503 0 -364.058) //86//
(-235.114 0 -323.607) //87//
(-149.171 0 -424.556) //88//
(-119.653 0 -325.089) //89//
(-95.434 0 -301.484) //90//
(-231.134 0 -190.531) //91//
(-237.012 0 -198.621) //92//
(-242.89 0 -206.711) //93//
(-121.537 0 -294.879) //94//
(-115.659 0 -286.789) //95//
(-109.781 0 -278.699) //96//
(-149.951 0 -3.844) //97//
(-142.651 0 -46.375) //98//
(-282.75 0 -7.25) //99//
(-268.986 0 -87.442) //100//
(-449.852 0 -11.535) //101//
(-427.954 0 -139.123) //102//
(-119.049 0 91.254) //103//
(-142.659 0 46.353) //104//
(-224.481 0 172.071) //105//
(-190.211 0 61.803) //106//
(-287.884 0 192.672) //107//
(-254.415 0 187.811) //108//
(-357.147 0 273.763) //109//
(-370.23 0 255.793) //110//
(-427.975 0 139.058) //111//
(-449.874 0 10.675) //112//
(-346.153 0 13.339) //113//
(-316.219 0 -2.4) //114//
(-252.63 0 160.944) //115//
(-262.14 0 164.034) //116//
(-271.651 0 167.125) //117//
(-318.004 0 24.466) //118//
(-308.493 0 21.376) //119//
(-298.983 0 18.286) //120//
(-380.423 0 123.607) //121//
(-88.186 0 121.339) //122//
(-166.286 0 228.799) //123//
(-264.559 0 364.018) //124//
(-357.681 0 -1500) //125//
(-149.171 0 -1500) //126//
(-128.042 0 -1500) //127//
(128.024 0 -1500) //128//
(149.171 0 -1500) //129//
(357.681 0 -1500) //130//
(3000 0 -273.065) //131//
(3000 0 -255.085) //132//
(3000 0 -11.554) //133//
(3000 0 10.675) //134//
(3000 0 255.793) //135//
(3000 0 273.748) //136//
(3000 0 -1500) //137//
(3000 0 1500) //138//
(357.158 0 1500) //139//
(150 0 1500) //140//
(128.866 0 1500) //141//
(-128.866 0 1500) //142//
(-150 0 1500) //143//
(-357.147 0 1500) //144//
(-2000 0 1500) //145//
(-2000 0 273.763) //146//
(-2000 0 255.793) //147//
(-2000 0 10.675) //148//
(-2000 0 -11.535) //149//
(-2000 0 -255.069) //150//
(-2000 0 -273.065) //151//
(142.659 0 46.353) //152//
(-2000 0 -1500) //153//
...
(-2000 10 -1500) //353//
);

blocks
(
hex (1 2 202 201 4 3 203 204) (10 1 4) simpleGrading (1 1 1) //A1//
hex (7 13 213 207 8 12 212 208) (10 1 5) simpleGrading (1 1 1) //A2//
hex (13 3 203 213 12 11 211 212) (1 1 5) simpleGrading (1 1 1) //A3//
hex (4 7 207 204 9 8 208 209) (1 1 5) simpleGrading (1 1 1) //A4//
hex (19 3 203 219 19 13 213 219) (4 1 1) simpleGrading (1 1 1) //A5//
hex (4 22 222 204 7 22 222 207) (4 1 1) simpleGrading (1 1 1) //A6//
hex (4 3 203 204 22 19 219 222) (10 1 4) simpleGrading (1 1 1) //A7//
hex (22 19 219 222 7 13 213 207) (10 1 4) simpleGrading (1 1 1) //A8//
hex (2 71 271 202 3 23 223 203) (10 1 4) simpleGrading (1 1 1) //A1//
hex (3 23 223 203 11 26 226 211) (10 1 5) simpleGrading (1 1 1) //A2//

hex (71 28 228 271 23 29 229 223) (10 1 4) simpleGrading (1 1 1) //B1//
hex (31 36 236 231 32 35 235 232) (10 1 5) simpleGrading (1 1 1) //B2//
hex (36 29 229 236 35 34 234 235) (1 1 5) simpleGrading (1 1 1) //B3//
hex (23 31 231 223 26 32 232 226) (1 1 5) simpleGrading (1 1 1) //B4//
hex (39 29 229 239 39 36 236 239) (4 1 1) simpleGrading (1 1 1) //B5//
hex (23 42 242 223 31 42 242 231) (4 1 1) simpleGrading (1 1 1) //B6//
hex (23 29 229 223 42 39 239 242) (10 1 4) simpleGrading (1 1 1) //B7//
hex (42 39 239 242 31 36 236 231) (10 1 4) simpleGrading (1 1 1) //B8//
hex (28 46 246 228 29 48 248 229) (10 1 4) simpleGrading (1 1 1) //B1//
hex (29 48 248 229 34 50 250 234) (10 1 5) simpleGrading (1 1 1) //B2//

hex (46 52 252 246 48 54 254 248) (10 1 4) simpleGrading (1 1 1) //C1//
hex (61 56 256 261 60 59 259 260) (10 1 5) simpleGrading (1 1 1) //C2//
hex (56 54 254 256 59 58 258 259) (1 1 5) simpleGrading (1 1 1) //C3//
hex (48 61 261 248 50 60 260 250) (1 1 5) simpleGrading (1 1 1) //C4//
hex (48 69 269 248 61 69 269 261) (4 1 1) simpleGrading (1 1 1) //C5//
hex (66 54 254 266 66 56 256 266) (4 1 1) simpleGrading (1 1 1) //C6//
hex (48 54 254 248 69 66 266 269) (10 1 4) simpleGrading (1 1 1) //C7//
hex (69 66 266 269 61 56 256 261) (10 1 4) simpleGrading (1 1 1) //C8//
hex (52 72 272 252 54 74 274 254) (10 1 4) simpleGrading (1 1 1) //C1//
hex (54 74 274 254 58 76 276 258) (10 1 5) simpleGrading (1 1 1) //C2//

hex (72 78 278 272 74 80 280 274) (10 1 4) simpleGrading (1 1 1) //D1//
hex (89 82 282 289 88 85 285 288) (10 1 5) simpleGrading (1 1 1) //D2//
hex (82 80 280 282 85 84 284 285) (1 1 5) simpleGrading (1 1 1) //D3//
hex (74 89 289 274 76 88 288 276) (1 1 5) simpleGrading (1 1 1) //D4//
hex (92 80 280 292 92 82 282 292) (4 1 1) simpleGrading (1 1 1) //D5//
hex (74 95 295 274 89 95 295 289) (4 1 1) simpleGrading (1 1 1) //D6//
hex (74 80 280 274 95 92 292 295) (10 1 4) simpleGrading (1 1 1) //D7//
hex (95 92 292 295 89 82 282 289) (10 1 4) simpleGrading (1 1 1) //D8//
hex (78 97 297 278 80 99 299 280) (10 1 4) simpleGrading (1 1 1) //D1//
hex (80 99 299 280 84 101 301 284) (10 1 5) simpleGrading (1 1 1) //D2//

hex (97 103 303 297 99 105 305 299) (10 1 4) simpleGrading (1 1 1) //E1//
hex (113 107 307 313 112 110 310 312) (10 1 5) simpleGrading (1 1 1) //E2//
hex (107 105 305 307 110 109 309 310) (1 1 5) simpleGrading (1 1 1) //E3//
hex (99 113 313 299 101 112 312 301) (1 1 5) simpleGrading (1 1 1) //E4//
hex (116 105 305 316 116 107 307 316) (4 1 1) simpleGrading (1 1 1) //E5//
hex (99 119 319 299 113 119 319 313) (4 1 1) simpleGrading (1 1 1) //E6//
hex (99 105 305 299 119 116 316 319) (10 1 4) simpleGrading (1 1 1) //E7//
hex (119 116 316 319 113 107 307 313) (10 1 4) simpleGrading (1 1 1) //E8//
hex (103 1 201 303 105 4 204 305) (10 1 4) simpleGrading (1 1 1) //E1//
hex (105 4 204 305 109 9 209 309) (10 1 5) simpleGrading (1 1 1) //E2//

hex (153 125 325 353 151 85 285 351) (42 1 31) simpleGrading (1 1 1) //T1//
hex (125 126 326 325 85 88 288 285) (10 1 31) simpleGrading (1 1 1) //T2//
hex (126 127 327 326 88 76 276 288) (1 1 31) simpleGrading (1 1 1) //T3//
hex (127 128 328 327 76 58 258 276) (10 1 31) simpleGrading (1 1 1) //T4//
hex (128 129 329 328 58 59 259 258) (1 1 31) simpleGrading (1 1 1) //T5//
hex (129 130 330 329 59 60 260 259) (10 1 31) simpleGrading (1 1 1) //T6//
hex (130 137 337 330 60 131 331 260) (68 1 31) simpleGrading (1 1 1) //T7//
hex (60 131 331 260 50 132 332 250) (68 1 1) simpleGrading (1 1 1) //T8//
hex (50 132 332 250 34 133 333 234) (68 1 10) simpleGrading (1 1 1) //T9//
hex (34 133 333 234 35 134 334 235) (68 1 1) simpleGrading (1 1 1) //T10//
hex (35 134 334 235 32 135 335 232) (68 1 10) simpleGrading (1 1 1) //T11//
hex (32 135 335 232 26 136 336 226) (68 1 1) simpleGrading (1 1 1) //T12//
hex (26 136 336 226 139 138 338 339) (68 1 31) simpleGrading (1 1 1) //T13//
hex (11 26 226 211 140 139 339 340) (10 1 31) simpleGrading (1 1 1) //T14//
hex (12 11 211 212 141 140 340 341) (1 1 31) simpleGrading (1 1 1) //T15//
hex (8 12 212 208 142 141 341 342) (10 1 31) simpleGrading (1 1 1) //T16//
hex (9 8 208 209 143 142 342 343) (1 1 31) simpleGrading (1 1 1) //T17//
hex (109 9 209 309 144 143 343 344) (10 1 31) simpleGrading (1 1 1) //T18//
hex (146 109 309 346 145 144 344 345) (42 1 31) simpleGrading (1 1 1) //T19//
hex (147 110 310 347 146 109 309 346) (42 1 1) simpleGrading (1 1 1) //T20//
hex (148 112 312 348 147 110 310 347) (42 1 10) simpleGrading (1 1 1) //T21//
hex (149 101 301 349 148 112 312 348) (42 1 1) simpleGrading (1 1 1) //T22//
hex (150 84 284 350 149 101 301 349) (42 1 10) simpleGrading (1 1 1) //T23//
hex (151 85 285 351 150 84 284 350) (42 1 1) simpleGrading (1 1 1) //T24//
);

edges
(
arc 1 2 (0 0 150) //A1//
arc 201 202 (0 10 150) //A2//...

arc 309 209 (-264.559 10 364.018) //E6//
);
patches
(
wall profile1
(
(22 19 219 222)
)
wall profile2
(
(42 39 239 242)
)
wall profile3
(
(69 66 266 269)
)
wall profile4
(
(95 92 292 295)
)
wall profile5
(
(119 116 316 319)
)
patch wing1
(
(4 204 203 3)
(3 203 213 13)
(7 13 213 207)
(4 7 207 204)
)
patch wing2
(
(23 223 229 29)
(29 229 236 36)
(31 36 236 231)
(23 31 231 223)
)
patch wing3
(
(48 248 254 54)
(54 254 256 56)
(61 56 256 261)
(48 61 261 248)
)
patch wing4
(
(74 274 280 80)
(80 280 282 82)
(89 82 282 289)
(74 89 289 274)
)
patch wing5
(
(99 299 305 105)
(105 305 307 107)
(113 107 307 313)
(99 113 313 299)
)
patch cyclorotor
(
(9 8 208 209)
(8 12 212 208)
(12 11 211 212)
(11 26 226 211)
(26 32 232 226)
(32 35 235 232)
(35 34 234 235)
(34 50 250 234)
(50 60 260 250)
(60 59 259 260)
(59 58 258 259)
(58 76 276 258)
(76 88 288 276)
(88 85 285 288)
(85 84 284 285)
(84 101 301 284)
(101 112 312 301)
(112 110 310 312)
(110 109 309 310)
(109 9 209 309)
)
);
boundary
(
flettner
{
type wall;
faces
(
(1 2 202 201)
(2 71 271 202)
(71 28 228 271)
(28 46 246 228)
(46 52 252 246)
(52 72 272 252)
(72 78 278 272)
(78 97 297 278)
(97 103 303 297)
(103 1 201 303)
);
}
);
mergePatchPairs
(
);

// ************************************************** *********************** //
Can anyone help me with this error?

Thanks
Alexander

A.A. July 31, 2012 03:50

Help needed, I am absolute beginner!
 
Hi,

maybe my question is to easy but I am absolute beginner. If anyone could give me advice what to do to solve this error.

Thank you very much in advance. I appreciate any help.

Regards
Alexander

wyldckat July 31, 2012 04:11

Greetings Alexander,

Try this:
Code:

paraFoam -block
It will show you in ParaView the aspect of the "blockMeshDict" in 3D, to make it easier to diagnose the problem.

Best regards,
Bruno

A.A. July 31, 2012 04:31

Hi Bruno,
Thanks for your advice.

The code doesen't work I get the same error message and paraFoam aborts.

I could view the whole Mesh in paraFoam before I added the lines for the patches. The mesh is ok but when I want to create the patches I get the error message. So It has something to do with lines where I define the patches.

Are there maybe special rules to create patches which I didn't take in to consideration?

Thanks for any help.

Greetings,
Alexander

wyldckat July 31, 2012 04:35

Hi Alexander,

I haven't tested the dictionary you gave, but my guess is that your new patch might be floating. In other words, if you define a patch in the middle of another already existing patch, it will not work with blockMesh.

You might find it easier to use the createPatch utility, which allows you to create patches in already existing meshes. Search for examples:
Code:

find $WM_PROJECT_DIR -name createPatchDict
Best regards,
Bruno

A.A. July 31, 2012 06:18

Hi Bruno,

I visualized the mesh in paraFoam with only one patch defined and I can see the problem.
The problem is that the patch should only comprise an inner cylinder in the mesh but instead of that the patch comprises now everything around the inner cylinder.

It is as you said: the other patches would then lay in this patch.

but how can I define the direction of the patch so that it comprises only the inner cylinder and not the area around it?

Another question is concerning the createPatch utillity can I just copy the file in the system directory of my case or do I need to register this file in any other files?

Many thanks in advance.
Greetings,
Alex

wyldckat July 31, 2012 06:28

Hi Alex,

Q1: I'm not sure I understand you question. But my guess is that the following should help you to more easily create a "blockMeshDict" interactively via Blender: http://openfoamwiki.net/index.php/SwiftBlock ;)

Q2: Simply copy the "createPatchDict" to your case's "system" folder, edit the copied file and run createPatch in the case folder.

Best regards,
Bruno

A.A. July 31, 2012 07:05

Hi Bruno

I get the following error when I type creatPatch:

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.1.1-221db2718bbb
Exec : createPatch
Date : Jul 31 2012
Time : 13:00:41
Host : "ubuntu"
PID : 3199
Case : /home/gzabos/OpenFOAM/gzabos-2.1.1/run/tutorials/incompressible/pimpleDyMFoam/hybro2
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

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

Reading createPatchDict

Create polyMesh for time = 0

Adding new patch wing1 as patch 2 from
{
type patch;
}




--> FOAM FATAL ERROR:
Cannot find file "" in directory "polyMesh/sets" in times 0 down to constant

From function Time::findInstance(const fileName&, const word&, const IOobject::readOption, const word&)
in file db/Time/findInstance.C at line 140.

FOAM exiting

Do you know what the reason is?

Geetings,
Alex

A.A. July 31, 2012 08:59

Hi Bruno,

Can it be that if the same vertex is a point in the face between two blocks and I want to define a patch which has this face as border between these two blocks it doesn't work?

Thanks in advance,
Alex

anon_a July 31, 2012 12:21

Quote:

Originally Posted by A.A. (Post 374540)
The problem is that the patch should only comprise an inner cylinder in the mesh but instead of that the patch comprises now everything around the inner cylinder.

If I understand correctly the situation, this should be solved by changing the sequence of vertices from (22 19 219 222) to (222 219 19 22). If not, then it would help if you made a figure :-)

wyldckat July 31, 2012 16:57

Greetings to all!

@Alex:
Quote:

Originally Posted by A.A. (Post 374557)
Hi Bruno

I get the following error when I type creatPatch:

Code:

/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.1.1                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
Build  : 2.1.1-221db2718bbb
Exec  : createPatch
Date  : Jul 31 2012
Time  : 13:00:41
Host  : "ubuntu"
PID    : 3199
Case  : /home/gzabos/OpenFOAM/gzabos-2.1.1/run/tutorials/incompressible/pimpleDyMFoam/hybro2
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

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

Reading createPatchDict

Create polyMesh for time = 0

Adding new patch wing1 as patch 2 from
{
    type            patch;
}




--> FOAM FATAL ERROR:
Cannot find file "" in directory "polyMesh/sets" in times 0 down to constant

    From function Time::findInstance(const fileName&, const word&, const IOobject::readOption, const word&)
    in file db/Time/findInstance.C at line 140.

FOAM exiting

Do you know what the reason is?

Geetings,
Alex

If you don't share the "createPatchDict", I can only tell you that this error message says it all:
Code:

Cannot find file "" in directory "polyMesh/sets" in times 0 down to constant
Looks like you're trying to use a "faceSet" for defining a patch.

Here's a good example, shown in tutorial "incompressible/pimpleFoam/elipsekkLOmega":
  • In Allrun you can see two applications be executed consecutively:
    Code:

    topoSet
    createPatch -overwrite

  • The first one uses the "system/topoSetDict" for creating the face set "f0". A set in OpenFOAM is a selection of points/faces/cells.
  • The second one will use the "system/createPatchDict" to create a patch based on the face set "f0".
You can find more examples of "topoSetDict" using the find command I showed earlier.

Best regards,
Bruno

A.A. August 1, 2012 08:48

Hi,

I found the reason for the error message:

--> FOAM FATAL ERROR:
Trying to specify a boundary face 4(22 19 219 222) on the face on cell 6 which is either an internal face or already belongs to some other patch. This is face 0 of patch 0 named profile1.

When defining a face of a patch, the vertices of the neighbor blocks or patches must not have the same vertix number, you have to create double vertices, means same point but another vertix number.

Thanks to all for helping,
Alex

McCarra September 20, 2012 03:31

And in reference to the cannot find file " " in directory polymesh/sets, in my case it occurred because I ran topoSet with file compression activated in the controlDict and it just didn't recognize the file because of the format. When running topoSet with file compression off this error desappears.

MC

karlamora February 15, 2014 06:48

Hi, I am using createPatchDict to create a set of burners but the follow error shows:

Code:

Read 392 faces from faceSet fBurner1a

--> FOAM FATAL ERROR:
Face 7501 specified in set fBurner1a is not an external face of the mesh.
This application can only repatch existing boundary faces.

    From function createPatch
    in file createPatch.C at line 727.

FOAM exiting

This is an example of my code:

Code:

FoamFile
{
    version    2.0;
    format      ascii;
    class      dictionary;
    object      createPatchDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

pointSync false;

patches
(

{
        name Burner1a;
    patchInfo
        { type patch; }
    constructFrom set;
    set fBurner1a;
    }


FoamFile
{
    version    2.0;
    format      ascii;
    class      dictionary;
    object      topoSetDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

actions
(
{
        name    fBurner1a;
        type    faceSet;
        action  new;
        source  boxToFace;
        sourceInfo
        {
          box (16.2 3.35 0.00) (16.8 3.95 0.30);
    }
    }

Do you have an idea where I am making the mistake?

Regards,

Karla

wyldckat February 15, 2014 10:24

Greetings Karla and welcome to the forum!

I suspect that the selection box is too big and is selecting more faces than the ones you want to select, from the inside of the mesh.

Have a look into this post: http://www.cfd-online.com/Forums/ope...tml#post473021 post #45 - I explained there how this kind of selection should be done.
In addition, you might want to read the whole thread (http://www.cfd-online.com/Forums/ope...egionfoam.html), since it might have some more information that might come in handy to you ;)

Best regards,
Bruno

karlamora February 15, 2014 11:50

Thank you Bruno,

I tried to change the dimensions of my boxes with your suggestion from post #45, but I still having the same error. Can you look my files and see if you can find the error?https://www.dropbox.com/sh/hbp0ax4cy64b786/rPbSDGiU72

I really appreciate your help, I am working in my thesis and this is made my crazy :o.

Karla

wyldckat February 15, 2014 12:35

2 Attachment(s)
Hi Karla,

The first attached image demonstrates where your first box is located, in comparison with the mesh:
  • It shows a pseudo-section-cut of the mesh, by using the filter "Extract cells by region".
  • I used the "Line" source and then used the "Outline" representation.
As you can see, your box will select several unwanted faces from the cells below the boundary surface.


The correct definition is shown in the second image, where the selection box is very thin, so that it will not select faces from other cells, other the ones you want from the outer surface. Keep in mind that faces are selected as long as the selection box includes the centres of faces of cells.

Best regards,
Bruno

karlamora February 16, 2014 09:31

Thank you Bruno!!!!!!!!!!! Now it is working. I have an error in fireFoam but I read one of your old post and I think my mistake is the definition of the boundary condition. Thank you so much for your help.

seav April 12, 2014 07:50

Quote:

Originally Posted by A.A. (Post 374830)
Hi,

I found the reason for the error message:

--> FOAM FATAL ERROR:
Trying to specify a boundary face 4(22 19 219 222) on the face on cell 6 which is either an internal face or already belongs to some other patch. This is face 0 of patch 0 named profile1.

When defining a face of a patch, the vertices of the neighbor blocks or patches must not have the same vertix number, you have to create double vertices, means same point but another vertix number.

Thanks to all for helping,
Alex

Do you use mergePatchPairs() for connect both faces, the old one made of old vertices and the new one made of multiped vertices ?

slash89 November 25, 2014 05:32

How did you solve this problem?? I am a very beginner and i'm still stuck at this point!

Trying to specify a boundary face 4(1 5 6 2) on the face on cell 0 which is either an internal face or already belongs to some other patch. This is face 0 of patch 2 named outlet2.

Thak you,

Best regards


All times are GMT -4. The time now is 21:18.