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

Problem about mesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 21, 2011, 12:00
Default Problem about mesh
  #1
New Member
 
Wei Ma
Join Date: Feb 2011
Posts: 14
Rep Power: 15
merlyn is on a distinguished road
Hi guys,
In a case of implementing laplacianFoam, I am gonna generate a simple wedge mesh with:
Code:
convertToMeters 1;

vertices        
(
    (0 0 0)
    (0.01 0 0)
    (0.01 0 0.06)
    (0 0 0.06)
    (0 0.08 0)
    (0.01 0.08 0)
);

blocks          
(
    hex (0 1 2 3 4 5 5 4) (1 80 60) simpleGrading (1 1 1)
);

edges           
(
);

patches         
(
    patch heat_in
    (
       (0 1 5 4)
    )
    patch heat_out
    (
       (2 3 4 5)
    )
    patch wall 
    (
       (0 1 2 3)
       (4 5 5 4)
    )
    empty infi
    (
       (0 3 4 4)
       (1 2 5 5)
    )
);

mergePatchPairs 
(
);
error occurred when I tried to run solver, then I ran checkMesh, it showed:
Code:
Checking geometry...
    Overall domain bounding box (0 0 0) (0.01 0.08 0.06)
    Mesh (non-empty, non-wedge) directions (1 1 1)
    Mesh (non-empty) directions (1 1 1)
    Boundary openness (6.47958e-19 1.52937e-18 1.8823e-18) OK.
 ***High aspect ratio cells found, Max aspect ratio: 6.65658e+194, number of cells 4800
  <<Writing 4800 cells with high aspect ratio to set highAspectRatioCells
    Minumum face area = 8.33333e-09. Maximum face area = 1.66667e-05.  Face area magnitudes OK.
    Min volume = 1.66667e-300. Max volume = 2e-300.  Total volume = 9.57333e-297.  Cell volumes OK.
    Mesh non-orthogonality Max: 179.731 average: 157.57
 ***Number of non-orthogonality errors: 9460.
  <<Writing 9460 non-orthogonal faces to set nonOrthoFaces
 ***Error in face pyramids: 28720 faces are incorrectly oriented.
  <<Writing 19260 faces with incorrect orientation to set wrongOrientedFaces
    Max skewness = 1.32376 OK.
Could anybody give a clue about what is going on, and how to fix it?

Thank you for help in advance!!

-Merlin
merlyn is offline   Reply With Quote

Old   April 21, 2011, 14:20
Default
  #2
New Member
 
hossein
Join Date: Dec 2010
Posts: 12
Rep Power: 15
hossein.mashhadi is on a distinguished road
Hi Merlin

i m not sure but i think for generation of wedge you must have 2 patches of type wedge and a patch of type symmetryPlane, i dont see them in your blockMeshDict.

i hope i m true.
hossein.mashhadi is offline   Reply With Quote

Old   April 21, 2011, 14:43
Default
  #3
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,902
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Merlin

The error in your checkMesh suggest that you have defined an incorrect coordinate system. It should always yield a x-y-z system, where you define x-z-y, see the UserGuide.

I have never used wedge, however, I suspect that changing to the following would help

Code:
(0 1 2 3 4 5 5 4) -> (0 1 5 4 3 2 5 4)
Furthermore remove or comment the patch-definitions. This will put all the patches to default as a start, and you can concentrate on getting the mesh working.

Best regards

Niels
ngj is offline   Reply With Quote

Old   April 21, 2011, 18:05
Default
  #4
New Member
 
Wei Ma
Join Date: Feb 2011
Posts: 14
Rep Power: 15
merlyn is on a distinguished road
Quote:
Originally Posted by ngj View Post
Hi Merlin

The error in your checkMesh suggest that you have defined an incorrect coordinate system. It should always yield a x-y-z system, where you define x-z-y, see the UserGuide.

I have never used wedge, however, I suspect that changing to the following would help

Code:
(0 1 2 3 4 5 5 4) -> (0 1 5 4 3 2 5 4)
Furthermore remove or comment the patch-definitions. This will put all the patches to default as a start, and you can concentrate on getting the mesh working.

Best regards

Niels
Hi Niels,

Your suggestion really works !! Appreciate it. now my program is working well.

-Merlin
merlyn 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
Dynamic Mesh Problem. Tom Clark FLUENT 10 June 21, 2021 05:27
[GAMBIT] Problem with mesh. Please Help... maziboss ANSYS Meshing & Geometry 1 September 28, 2009 03:24
mesh generation problem Ellen FLUENT 7 February 18, 2009 22:20
mesh control problem TUM CFX 4 July 27, 2001 17:17
Convergence problem when ustructured mesh is used. SangJin Ryu Siemens 3 October 5, 2000 21:26


All times are GMT -4. The time now is 16:22.