CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Gmsh] car 2D with GMSH

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By tareqkh

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 1, 2016, 16:56
Angry car 2D with GMSH
  #1
New Member
 
sif
Join Date: Feb 2016
Posts: 5
Rep Power: 10
laouichi sif is on a distinguished road
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 !!!!
Attached Files
File Type: txt Bond_layer.txt (7.9 KB, 21 views)
laouichi sif is offline   Reply With Quote

Old   March 5, 2016, 00:32
Default Inoframtion
  #2
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 16
tareqkh is on a distinguished road
Hey,

Can you provide more details so that we can guide you?

Thanks,
laouichi sif likes this.
tareqkh is offline   Reply With Quote

Old   March 25, 2016, 09:14
Default
  #3
New Member
 
sif
Join Date: Feb 2016
Posts: 5
Rep Power: 10
laouichi sif is on a distinguished road
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
Attached Images
File Type: png blyr.PNG (18.9 KB, 48 views)
laouichi sif is offline   Reply With Quote

Old   March 30, 2016, 12:58
Default
  #4
Member
 
Peter
Join Date: Feb 2015
Location: New York
Posts: 73
Rep Power: 11
opedrofunk is on a distinguished road
Take those nodes out of the nodes/edges/fans lists. Also, only include the FacesList and see what happens.
opedrofunk is offline   Reply With Quote

Old   March 31, 2016, 12:29
Default
  #5
New Member
 
sif
Join Date: Feb 2016
Posts: 5
Rep Power: 10
laouichi sif is on a distinguished road
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 !!
laouichi sif is offline   Reply With Quote

Old   March 31, 2016, 13:34
Default
  #6
Member
 
Peter
Join Date: Feb 2015
Location: New York
Posts: 73
Rep Power: 11
opedrofunk is on a distinguished road
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
opedrofunk is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 09:48.