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

Gmsh Structured mesh that crached in openFoam simulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 2, 2022, 15:39
Exclamation Gmsh Structured mesh that crached in openFoam simulation
  #1
New Member
 
Basma Maged
Join Date: Dec 2021
Posts: 7
Rep Power: 5
basma is on a distinguished road
Hello i am havinga model of four blocks and im trying to run a simulation for the airflow around them , i generated that mesh but when i run the simplefoam simulation it crashed.
is the problem with my mesh ? and if yes can you please help me how to mesh it differently ?
Quote:
Lc = 0.1;
Ax= 11;

point(1) = {0, 0, 0, lc};
//+
Point(2) = {40, 0, 0, lc};
//+
Point(3) = {60, 0, 0, lc};
//+
Point(4) = {100, 0, 0, lc};
//+
Point(5) = {170, 0, 0, 1.0};
//+
Point(6) = {-70, 0, 0, 1.0};
//+
Point(7) = {-70, -70, 0, 1.0};
//+
Point(8) = {0, -70, 0, 1.0};
//+
Point(9) = {40, -70, 0, 1.0};
//+
Point(10) = {60, -70, 0, 1.0};
//+
Point(11) = {100, -70, 0, 1.0};
//+
Point(12) = {170, -70, 0, 1.0};
//+
Point(13) = {-70, 300, 0, 1.0};
//+
Point(14) = {0, 300, 0, lc};
//+
Point(15) = {40, 300, 0, lc};
//+
Point(16) = {60, 300, 0, lc};
//+
Point(17) = {100, 300, 0, lc};
//+
Point(18) = {170, 300, 0, 11};
//+
Point(19) = {170, 500, 0, Ax};
//+
Point(20) = {100, 500, 0, Ax};
//+
Point(21) = {60, 500, 0, Ax};
//+
Point(22) = {40, 500, 0, Ax};
//+
Point(23) = {0, 500, 0, Ax};
//+
Point(24) = {-70, 500, 0, Ax};
//+
Point(25) = {-70, 120, 0, 1.0};
//+
Point(26) = {-70, 140, 0, 1.0};
//+
Point(27) = {0, 140, 0, lc};
//+
Point(28) = {0, 120, 0, lc};
//+
Point(29) = {40, 120, 0, lc};
//+
Point(30) = {40, 140, 0, lc};
//+
Point(31) = {60, 160, 0, lc};
//+
Point(32) = {60, 140, 0, lc};
//+
Point(33) = {100, 140, 0, lc};
//+
Point(34) = {100, 160, 0, lc};
//+
Point(35) = {170, 160, 0, 1.0};
//+
Point(36) = {170, 140, 0, 1.0};
//+
Line(1) = {1, 2};
//+
Line(2) = {2, 9};
//+
Line(3) = {9, 8};
//+
Line(4) = {8, 1};
//+
Line(5) = {1, 6};
//+
Line(6) = {6, 7};
//+
Line(7) = {7, 8};
//+
Line(8) = {6, 25};
//+
Line(9) = {25, 28};
//+
Line(10) = {28, 1};
//+
Line(11) = {2, 29};
//+
Line(12) = {29, 28};
//+
Line(13) = {28, 27};
//+
Line(14) = {27, 30};
//+
Line(15) = {30, 29};
//+
Line(16) = {29, 32};
//+
Line(17) = {32, 31};
//+
Line(18) = {31, 30};
//+
Line(19) = {30, 15};
//+
Line(20) = {15, 16};
//+
Line(21) = {16, 31};
//+
Line(22) = {31, 34};
//+
Line(23) = {34, 17};
//+
Line(24) = {17, 16};
//+
Line(25) = {17, 18};
//+
Line(26) = {18, 35};
//+
Line(27) = {35, 34};
//+
Line(28) = {34, 33};
//+
Line(29) = {33, 36};
//+
Line(30) = {36, 35};
//+
Line(31) = {33, 32};
//+
Line(32) = {32, 3};
//+
Line(33) = {3, 4};
//+
Line(34) = {4, 33};
//+
Line(35) = {36, 5};
//+
Line(36) = {5, 4};
//+
Line(37) = {4, 11};
//+
Line(38) = {11, 12};
//+
Line(39) = {12, 5};
//+
Line(40) = {11, 10};
//+
Line(41) = {10, 3};
//+
Line(42) = {3, 2};
//+
Line(43) = {9, 10};
//+
Line(44) = {27, 26};
//+
Line(45) = {26, 25};
//+
Line(46) = {26, 13};
//+
Line(47) = {13, 14};
//+
Line(48) = {14, 27};
//+
Line(49) = {15, 14};
//+
Line(50) = {14, 23};
//+
Line(51) = {23, 24};
//+
Line(52) = {24, 13};
//+
Line(53) = {23, 22};
//+
Line(54) = {22, 15};
//+
Line(55) = {16, 21};
//+
Line(56) = {21, 22};
//+
Line(57) = {21, 20};
//+
Line(58) = {20, 17};
//+
Line(59) = {18, 19};
//+
Line(60) = {19, 20};
//+
Curve Loop(1) = {5, 6, 7, 4};
//+
Plane Surface(1) = {1};
//+
Curve Loop(2) = {1, 2, 3, 4};
//+
Plane Surface(2) = {2};
//+
Curve Loop(3) = {42, 2, 43, 41};
//+
Plane Surface(3) = {3};
//+
Curve Loop(4) = {41, 33, 37, 40};
//+
Plane Surface(4) = {4};
//+
Curve Loop(5) = {36, 37, 38, 39};
//+
Plane Surface(5) = {5};
//+
Curve Loop(6) = {36, 34, 29, 35};
//+
Plane Surface(6) = {6};
//+
Curve Loop(7) = {34, 31, 32, 33};
//+
Plane Surface(7) = {7};
//+
Curve Loop(8) = {32, 42, 11, 16};
//+
Plane Surface(8) = {8};
//+
Curve Loop(9) = {11, 12, 10, 1};
//+
Plane Surface(9) = {9};
//+
Curve Loop(10) = {9, 10, 5, 8};
//+
Plane Surface(10) = {10};
//+
Curve Loop(11) = {9, 13, 44, 45};
//+
Plane Surface(11) = {11};
//+
Curve Loop(12) = {13, 14, 15, 12};
//+
Plane Surface(12) = {12};
//+
Curve Loop(13) = {15, 16, 17, 18};
//+
Plane Surface(13) = {13};
//+
Curve Loop(14) = {17, 22, 28, 31};
//+
Plane Surface(14) = {14};
//+
Curve Loop(15) = {27, 28, 29, 30};
//+
Plane Surface(15) = {15};
//+
Curve Loop(16) = {27, 23, 25, 26};
//+
Plane Surface(16) = {16};
//+
Curve Loop(17) = {23, 24, 21, 22};
//+
Plane Surface(17) = {17};
//+
Curve Loop(18) = {20, 21, 18, 19};
//+
Plane Surface(18) = {18};
//+
Curve Loop(19) = {19, 49, 48, 14};
//+
Plane Surface(19) = {19};
//+
Curve Loop(20) = {48, 44, 46, 47};
//+
Plane Surface(20) = {20};
//+
Curve Loop(21) = {52, 47, 50, 51};
//+
Plane Surface(21) = {21};
//+
Curve Loop(22) = {50, 53, 54, 49};
//+
Plane Surface(22) = {22};
//+
Curve Loop(23) = {54, 20, 55, 56};
//+
Plane Surface(23) = {23};
//+
Curve Loop(24) = {55, 57, 58, 24};
//+
Plane Surface(24) = {24};
//+
Curve Loop(25) = {58, 25, 59, 60};
//+
Plane Surface(25) = {25};
//+
Extrude {0, 0, 10} {
Surface{1}; Surface{13}; Surface{25}; Surface{24}; Surface{23}; Surface{22}; Surface{21}; Surface{20}; Surface{19}; Surface{18}; Surface{17}; Surface{16}; Surface{15}; Surface{14}; Surface{12}; Surface{11}; Surface{10}; Surface{9}; Surface{8}; Surface{7}; Surface{6}; Surface{5}; Surface{4}; Surface{3}; Surface{2};
}
//+
Extrude {0, 0, 50} {
Surface{56}; Surface{52}; Surface{60}; Surface{63}; Surface{48}; Surface{44}; Surface{40}; Surface{71}; Surface{68}; Surface{65}; Surface{86}; Surface{30}; Surface{110}; Surface{89}; Surface{92}; Surface{95}; Surface{98}; Surface{102}; Surface{108}; Surface{105}; Surface{83}; Surface{77}; Surface{35}; Surface{80}; Surface{75};
}
//+
BooleanDifference{ Volume{45}; Volume{37}; Volume{38}; Volume{43}; Volume{44}; Volume{22}; Volume{25}; Volume{24}; Volume{23}; Volume{1}; Volume{3}; Volume{4}; Volume{5}; Volume{6}; Volume{7}; Volume{26}; Volume{27}; Volume{30}; Volume{31}; Volume{32}; Volume{12}; Volume{13}; Volume{21}; Volume{33}; Volume{42}; Volume{50}; Volume{28}; Volume{36}; Volume{46}; Volume{8}; Volume{16}; Volume{17}; Volume{47}; Volume{14}; Volume{48}; Volume{40}; Volume{35}; Volume{2}; Volume{10}; Volume{19}; Volume{49}; Volume{15}; Volume{34}; Volume{29}; Volume{41}; Volume{39}; Delete; }{ Volume{11}; Volume{9}; Volume{18}; Volume{20}; Delete; }
basma is offline   Reply With Quote

Reply

Tags
#gmsh


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
GMSH: 2D axisymmetric structured mesh mkhm Mesh Generation & Pre-Processing 3 November 5, 2020 19:17
[Gmsh] structured mesh in Gmsh appears triangular after gmshtofoam lg331 OpenFOAM Meshing & Mesh Conversion 4 April 27, 2020 08:07
[ICEM] 2D hybrid mesh (unstructured mesh highly dependent on structured mesh parameters) shubham jain ANSYS Meshing & Geometry 1 April 10, 2017 06:03
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 10:04
[Gmsh] How to get Gmsh hex mesh for "2-D" simulation in OF? jam OpenFOAM Meshing & Mesh Conversion 0 August 8, 2012 14:01


All times are GMT -4. The time now is 00:50.