|
[Sponsors] |
[Gmsh] Physical surfaces not turning into patches |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 25, 2023, 13:42 |
Physical surfaces not turning into patches
|
#1 |
New Member
loriro
Join Date: Apr 2023
Posts: 2
Rep Power: 0 |
I am trying to perform a flat plate with a compression corner of a certain angle, mesh looks great but when using the command gmshToFoam, I get no patches at all:
Skipping tag at line 50423 Patch 0 gets name patch0 --> FOAM Warning : From function Foam:olyMesh:olyMesh(const Foam::IOobject&, Foam:ointField&&, const cellShapeList&, const faceListList&, const wordList&, const wordList&, const Foam::word&, const Foam::word&, const wordList&, bool) in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 595 Found 19798 undefined faces in mesh; adding to default patch. Finding faces of patch 0 FaceZones: Zone Size 0 99 I post my script down here so you can help me with any mistake: // Gmsh project created on Tue Apr 25 14:22:36 2023 SetFactory("OpenCASCADE"); //POINTS Point(1) = {0, 0, 0, 1.0}; Point(2) = {3, 0, 0, 1.0}; Point(3) = {10, 3.26415, 0, 1.0}; Point(4) = {10, 10, 0, 1.0}; Point(5) = {3, 10, 0, 1.0}; Point(6) = {0, 10, 0, 1.0}; //LineS Line(1) = {1, 2};Transfinite Curve {1} = 30 Using Progression 1; Line(2) = {2, 3};Transfinite Curve {2} = 70 Using Progression 1.025; Line(3) = {3, 4};Transfinite Curve {3} = 100 Using Progression 1; Line(4) = {4, 5};Transfinite Curve {4} = 70 Using Progression 0.975; Line(5) = {5, 6};Transfinite Curve {5} = 30 Using Progression 1; Line(6) = {6, 1};Transfinite Curve {6} = 100 Using Progression 1; Line(7) = {5, 2};Transfinite Curve {7} = 100 Using Progression 1; //SURFACES Curve Loop(1) = {5, 6, 1, -7}; Plane Surface(1) = {1}; Curve Loop(2) = {4, 7, 2, 3}; Plane Surface(2) = {2}; Transfinite Surface {1}; Transfinite Surface {2};//+ Recombine Surface {1, 2}; //+ Extrude {0, 0, 1} { Surface{1}; Surface{2}; Layers {1}; Recombine; } //+ Physical Volume("fluid", 21) = {1, 2}; //+ Physical Surface("inlet", 22) = {4}; //+ Physical Surface("outlet", 23) = {10}; //+ Physical Surface("top", 24) = {8, 3}; //+ Physical Surface("bottom", 25) = {9, 5}; //+ Physical Surface("sides", 26) = {2, 1, 7, 11}; |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] [cfMesh] Error when creating AMI patches propeller | gabrielfelix | OpenFOAM Community Contributions | 2 | July 5, 2023 21:54 |
FOAM FATAL ERROR: Unable to find initial target face | ht2017 | OpenFOAM Pre-Processing | 0 | October 27, 2020 12:06 |
Turning on Hyperthreading for meshing and setting only physical cores for simulation | AidealZohary | Main CFD Forum | 6 | October 23, 2019 09:49 |
Regarding periodic BC in ICEM generated grid | Tarak | OpenFOAM | 32 | April 30, 2013 15:46 |
Can sample work on internal surfaces which are not patches? | sega | OpenFOAM Post-Processing | 0 | July 10, 2009 08:19 |