|
[Sponsors] |
March 1, 2016, 16:56 |
car 2D with GMSH
|
#1 |
New Member
sif
Join Date: Feb 2016
Posts: 5
Rep Power: 10 |
Hi ,
I have a 2D Car model and I want to to create type of hybrid mesh with GMSH (structured boundary layer and an unstructured far field region) but I failed Helpe me pls !!!! |
|
March 5, 2016, 00:32 |
Inoframtion
|
#2 |
Senior Member
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 16 |
Hey,
Can you provide more details so that we can guide you? Thanks, |
|
March 25, 2016, 09:14 |
|
#3 |
New Member
sif
Join Date: Feb 2016
Posts: 5
Rep Power: 10 |
Ok lets forget about the car model I have a geometry that I want to mesh it with Boundary Layer field in Gmsh :-
lc=0.1; Point(1) = {0, 0, 0, lc}; Point(2) = {3, 0, 0, lc}; Point(3) = {3, 1, 0, lc}; Point(4) = {2.5, 1, 0, lc}; Point(5) = {2.5, 4, 0, lc}; Point(6) = {0.5, 4, 0, lc}; Point(7) = {2, 1, 0, lc}; Point(8) = {0, 1, 0, lc}; Line(1) = {1, 2}; Line(2) = {2, 3}; Line(3) = {3, 4}; Line(4) = {4, 5}; Line(5) = {5, 6}; Line(6) = {6, 7}; Line(7) = {7, 8}; Line(8) = {8, 1}; Point(9) = {-6, -0.2, 0, lc}; Point(10) = {9, -0.2, 0, lc}; Point(11) = {9, 6, 0, lc}; Point(12) = {-6, 6, 0, lc}; Line(9) = {9, 10}; Line(10) = {10, 11}; Line(11) = {11, 12}; Line(12) = {12, 9}; Line Loop(13) = {7, 8, 1, 2, 3, 4, 5, 6}; Line Loop(14) = {9, 10, 11, 12}; Plane Surface(15) = {13, 14}; Field[1] = BoundaryLayer; Field[1].EdgesList = {1:8}; Field[1].FanNodesList = {1:3,5,6,8}; Field[1].NodesList = {1:8}; Field[1].Quads = 1; Field[1].hfar = 0.1; Field[1].hwall_n = 0.01; Field[1].hwall_t = 0.0005; Field[1].ratio = 1.1; Field[1].thickness = 0.1; BoundaryLayer Field = 1; and the problem was in point 4 and 7 (the pic in the attachments ) .My Qs is how can I solve this problem ??? and thank you |
|
March 30, 2016, 12:58 |
|
#4 |
Member
Peter
Join Date: Feb 2015
Location: New York
Posts: 73
Rep Power: 11 |
Take those nodes out of the nodes/edges/fans lists. Also, only include the FacesList and see what happens.
|
|
March 31, 2016, 12:29 |
|
#5 |
New Member
sif
Join Date: Feb 2016
Posts: 5
Rep Power: 10 |
Thank you so much Peter for your reply but its 2d so there is no facesList and how can I take those nodes out of the edgeslist !!
|
|
March 31, 2016, 13:34 |
|
#6 |
Member
Peter
Join Date: Feb 2015
Location: New York
Posts: 73
Rep Power: 11 |
Hi,
Did you try removing the NodesList and the FanNodesList? ie, comment out these lines: // Field[1].FanNodesList = {1:3,5,6,8}; // Field[1].NodesList = {1:8}; Regards, Peter |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Car Aerodynamics | ody93 | FLUENT | 9 | July 4, 2018 13:43 |
[Gmsh] Converting gmsh to OpenFoam | Friendly | OpenFOAM Meshing & Mesh Conversion | 3 | June 26, 2018 05:46 |
[Gmsh] Insatlling gmsh from the source code-issue? | CFD-Lover | OpenFOAM Meshing & Mesh Conversion | 20 | June 12, 2018 06:39 |
[Gmsh] 2D Mesh Generation Tutorial for GMSH | aeroslacker | OpenFOAM Meshing & Mesh Conversion | 12 | January 19, 2012 03:52 |
[Gmsh] Import problem | ARC | OpenFOAM Meshing & Mesh Conversion | 0 | February 27, 2010 10:56 |