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

[Other] Single cubic cell (full case inc.) with det = 0. Why? :)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 19, 2014, 10:44
Default Single cubic cell (full case inc.) with det = 0. Why? :)
  #1
Member
 
ms
Join Date: Mar 2009
Location: West London
Posts: 48
Rep Power: 17
anothr_acc is on a distinguished road
Hi everyone!

I'm running a case with many blockMeshDict hex blocks and was using

Code:
$ checkMesh -allTopology -allGeometry
results as a measure of mesh goodness. However, on one mesh my determinant values were all close to zero though the mesh looked good. I have managed to duplicate the effect with a very simple case using a single, cubic cell:

Code:
$ mkdir -p 0 system constant/polyMesh
Code:
system/controlDict: 
FoamFile {version 2.0; format ascii; class dictionary; location "system";
    object controlDict; }
deltaT 1; writeFrequency  1;
Code:
system/fvSchemes: 
FoamFile{version 2.0; format ascii; class dictionary; object fvSchemes;}
divSchemes { default none;}
gradSchemes { default none;}
laplacianSchemes {default none;}
Code:
system/fvSolution: 
FoamFile{ version 2.0; format ascii; class dictionary; object fvSolution;}
Code:
constant/polyMesh/blockMeshDict: 
FoamFile { version 2.0; format ascii; class dictionary; 
    object blockMeshDict; }

convertToMeters 1;

vertices (
   (0 0 0) (1 0 0) (1 1 0) (0 1 0)
   (0 0 1) (1 0 1) (1 1 1) (0 1 1)
) ;

blocks ( hex (0 1 2 3 4 5 6 7) air (1 1 1) simpleGrading (1 1 1) ) ;

// rhscrew looking in.
boundary (
   in { type patch; faces ( ( 3 7 4 0) ) ; }
  out { type patch; faces ( ( 6 2 1 5) ) ; }
front { type patch; faces ( ( 7 6 5 4) ) ; }
 back { type patch; faces ( ( 2 3 0 1) ) ; }
  top { type patch; faces ( ( 3 2 6 7) ) ; }
bottom{ type patch; faces ( ( 4 5 1 0) ) ; }
   )
Please create the mesh with
Code:
$blockMesh
and check the mesh with

Code:
$ checkMesh -allTopology -allGeometry
My OF 2.2.2-9240f8b967db running on up-to-date Ubuntu 12.04.4 LTS
shows,

Code:
Checking geometry...
    Overall domain bounding box (0 0 0) (1 1 1)
    Mesh (non-empty, non-wedge) directions (1 1 1)
    Mesh (non-empty) directions (1 1 1)
    Boundary openness (0 0 0) OK.
    Max cell openness = 0 OK.
    Max aspect ratio = 1 OK.
    Minimum face area = 1. Maximum face area = 1.  Face area magnitudes OK.
    Min volume = 1. Max volume = 1.  Total volume = 1.  Cell volumes OK.
    Non-orthogonality check OK.
    Face pyramids OK.
    Max skewness = 0 OK.
    Coupled point location match (average 0) OK.
    Face tets OK.
    Min/max edge length = 1 1 OK.
    All angles in faces OK.
    Face flatness (1 = flat, 0 = butterfly) : average = 1  min = 1
    All face flatness OK.
    Cell determinant (wellposedness) : minimum: 0 average: 0
 ***Cells with small determinant (< 0.001) found, number of cells: 1
  <<Writing 1 under-determined cells to set underdeterminedCells
    Concave cell check OK.

Failed 1 mesh checks.
but that cell looks lovely to me! Can anybody please explain why I'm getting a mesh failure for this case?

Thanks!

Best regards,

Mark.

P.S. I attended an OpenFOAM training course a few months ago in London and hoped there would be much post-training chat via a board put together by one of the guys on the course; but nothing came of it. Does anybody know if that group / board took off?

Last edited by anothr_acc; February 19, 2014 at 11:50.
anothr_acc is offline   Reply With Quote

Old   February 21, 2014, 06:04
Default
  #2
Member
 
ms
Join Date: Mar 2009
Location: West London
Posts: 48
Rep Power: 17
anothr_acc is on a distinguished road
I'm still interested, though ignoring the determinant results from checkMesh. Seems a pity...
anothr_acc 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
How to assign value to a single cell? OlegSutyrin OpenFOAM Programming & Development 10 January 7, 2017 11:10
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 15:53
FvMatrix coefficients shrina OpenFOAM Running, Solving & CFD 10 October 3, 2013 15:38
full cell stencil with parallelisation matthias OpenFOAM Programming & Development 1 April 13, 2012 12:48
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 13:24


All times are GMT -4. The time now is 17:18.