|
[Sponsors] |
April 19, 2020, 12:54 |
Merged Patches
|
#1 |
Member
Upuli
Join Date: Feb 2016
Posts: 68
Rep Power: 10 |
Hi
I developed a mesh using block mesh. I checked the mesh using 'checkMesh' and there was no error. It contains merged patches. When I open the mesh in paraFoam, I can't see these merged patches (interface1 or interface2) in the 'Mesh Parts' menu and in the mesh. So how can I define boundary conditions on these merged patches. Please help me on this. I couldn't find a solution so far. Thanking You Upuli Code:
/*--------------------------------*- C++ -*----------------------------------*/ // File was generated by SwiftBlock, a Blender 3D addon. FoamFile { version 2.0; format ascii; class dictionary; object blockMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // convertToMeters 1.0; vertices ( ( 0.05 0 0 )//0 ( 0 0 0 )//1 ( 0 0 -1.7 )//2 ( 0.05 0 -1.7 )//3 ( 0.05 1 0 )//4 ( 0 1 0 )//5 ( 0 1 -1.7 )//6 ( 0.05 1 -1.7 )//7 ( 0.2 -0.05 0 )//8 ( 0.05 -0.05 0 )//9 ( 0.05 -0.05 -1.7 )//10 ( 0.2 -0.05 -1.7 )//11 ( 0.2 0 0 )//12 ( 0.05 0 0 )//13 ( 0.05 0 -1.7 )//14 ( 0.2 0 -1.7 )//15 ( 0.2 1 0 )//16 ( 0.05 1 0 )//17 ( 0.05 1 -1.7 )//18 ( 0.2 1 -1.7 )//19 ); blocks ( hex ( 0 1 5 4 3 2 6 7 ) ( 1 20 21 ) simpleGrading (1 1 1) hex ( 8 9 13 12 11 10 14 15 ) ( 3 1 21 ) simpleGrading (1 1 1) hex ( 12 13 17 16 15 14 18 19 ) ( 3 20 21 ) simpleGrading (1 1 1) ); patches ( patch AirInlet ( ( 0 3 2 1 ) ( 8 11 10 9 ) ) patch AirOutlet ( ( 4 5 6 7 ) ( 16 17 18 19 ) ) patch FuelInlet ( (2 6 5 1) ) patch FuelInlet2 ( ( 9 10 14 13 ) ) patch FuelOutlet ( ( 8 12 15 11 ) ( 12 16 19 15 ) ) patch interface1 ( ( 13 14 18 17 ) ) patch interface2 ( ( 0 4 7 3 ) ) empty back ( ( 3 7 6 2 ) ( 11 15 14 10 ) ( 15 19 18 14 ) ) empty front ( ( 4 0 1 5 ) ( 12 8 9 13 ) ( 16 12 13 17 ) ) ); edges ( ); mergePatchPairs ( (interface1 interface2) ); // ************************************************************************* // |
|
April 28, 2020, 13:00 |
|
#2 |
Member
Upuli
Join Date: Feb 2016
Posts: 68
Rep Power: 10 |
Actually I want to merge these two patches into one patch. Does createBaffles can be used for this purpose ? Thank you in advance.
|
|
April 29, 2020, 15:57 |
|
#3 |
Member
Luis Eduardo
Join Date: Jan 2011
Posts: 85
Rep Power: 15 |
Hi,
If you check the coordinates of interface1 and interface2, they have the same points, so they are basically the same thing. Even by doing this, you can see the merged patch if you enable the option "include zones" in paraview. Best Regards, Luis |
|
April 30, 2020, 03:37 |
|
#4 |
Member
Upuli
Join Date: Feb 2016
Posts: 68
Rep Power: 10 |
Hi Luis
Thank you very much for your reply. Is there any method to define a velocity value for the field at the merged patches. I want to define a velocity at the interface of this block1 and block3 (interface1 and interface2). Thank you in advance. Code:
/*--------------------------------*- C++ -*----------------------------------*/ // File was generated by SwiftBlock, a Blender 3D addon. FoamFile { version 2.0; format ascii; class dictionary; object blockMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // convertToMeters 1.0; vertices ( ( 0.05 0 0 )//0 ( 0 0 0 )//1 ( 0 0 -1.7 )//2 ( 0.05 0 -1.7 )//3 ( 0.05 1 0 )//4 ( 0 1 0 )//5 ( 0 1 -1.7 )//6 ( 0.05 1 -1.7 )//7 ( 0.2 -0.05 0 )//8 ( 0.05 -0.05 0 )//9 ( 0.05 -0.05 -1.7 )//10 ( 0.2 -0.05 -1.7 )//11 ( 0.2 0 0 )//12 ( 0.05 0 0 )//13 ( 0.05 0 -1.7 )//14 ( 0.2 0 -1.7 )//15 ( 0.2 1 0 )//16 ( 0.05 1 0 )//17 ( 0.05 1 -1.7 )//18 ( 0.2 1 -1.7 )//19 ); blocks ( hex ( 0 1 5 4 3 2 6 7 ) block1 ( 1 20 21 ) simpleGrading (1 1 1) hex ( 8 9 13 12 11 10 14 15 ) block2 ( 3 1 21 ) simpleGrading (1 1 1) hex ( 12 13 17 16 15 14 18 19 ) block3 ( 3 20 21 ) simpleGrading (1 1 1) ); patches ( patch AirInlet ( ( 0 3 2 1 ) ( 8 11 10 9 ) ) patch AirOutlet ( ( 4 5 6 7 ) ( 16 17 18 19 ) ) patch FuelInlet ( (2 6 5 1) ) patch FuelInlet2 ( ( 9 10 14 13 ) ) patch FuelOutlet ( ( 8 12 15 11 ) ( 12 16 19 15 ) ) patch interface1//block1 ( ( 13 14 18 17 ) ) patch interface2//block3 ( ( 0 4 7 3 ) ) empty back ( ( 3 7 6 2 ) ( 11 15 14 10 ) ( 15 19 18 14 ) ) empty front ( ( 4 0 1 5 ) ( 12 8 9 13 ) ( 16 12 13 17 ) ) ); edges ( ); mergePatchPairs ( (interface1 interface2) ); // ************************************************************************* // |
|
April 30, 2020, 10:56 |
|
#5 |
Member
Luis Eduardo
Join Date: Jan 2011
Posts: 85
Rep Power: 15 |
I would say you can try to create a baffle, but I'm not sure if you can use a baffle for what you want, sorry.
|
|
April 30, 2020, 13:16 |
|
#6 |
Member
Upuli
Join Date: Feb 2016
Posts: 68
Rep Power: 10 |
Hi
Thank you again. I tried createBaffles. I do not need to have two patches at the interface. I tried to create one baffle after merging the faces in block1 and block3. But it gives two baffles.how can I avoid that?In createBaffles can we edit 'patchPairs' entry to create one baffle face? I will appreciate your help verymuch. Following are the entirs in my topoSetDict and createBafflesDict Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 4.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object topoSetDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // actions ( { name interface1; type cellSet; action new; source zoneToCell; sourceInfo { name block1; } } { name fuinterface1; type faceSet; action new; source cellToFace; sourceInfo { set interface1; option all; } } { name fuinterface1; type faceZoneSet; action new; source setToFaceZone; sourceInfo { faceSet fuinterface1; } } ); // ************************************************************************* // Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 4.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object createBafflesDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // Whether to convert internal faces only (so leave boundary faces intact). // This is only relevant if your face selection type can pick up boundary // faces. internalFacesOnly true; // Baffles to create. baffles { baffleFaces { //- Use predefined faceZone to select faces and orientation. type faceZone; zoneName baffleFaces; patchPairs { type wall; patchFields { epsilon { type zeroGradient; } k { type zeroGradient; } p { type zeroGradient; } U { type zeroGradient; } } } } } // ************************************************************************* // |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem using AMI | vinz | OpenFOAM Running, Solving & CFD | 298 | November 13, 2023 08:19 |
Foam::error::PrintStack | almir | OpenFOAM Running, Solving & CFD | 91 | December 21, 2022 04:50 |
[snappyHexMesh] snappyHexMesh error "Cannot determine normal vector from patches." | lethu | OpenFOAM Meshing & Mesh Conversion | 1 | June 3, 2020 07:49 |
Possible bug with stitchMesh and cyclics in OpenFoam | Jack001 | OpenFOAM Pre-Processing | 0 | May 21, 2016 08:00 |
[mesh manipulation] what if I want twos patches to be merged as one patch and keep as boundary patch | nwpukaka | OpenFOAM Meshing & Mesh Conversion | 2 | November 3, 2014 18:25 |