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

[blockMesh] viewing mesh in paraview

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 2, 2019, 08:55
Default viewing mesh in paraview
  #1
New Member
 
anonymous
Join Date: Sep 2019
Location: North Carolina
Posts: 25
Rep Power: 6
tenichols19 is on a distinguished road
When trying to create a blockmesh so that I can create a mesh using snappyhexmesh I run into an issue.
First I start with an existing case file (motorbike) and then I make changes to the blockMeshDict. Which can be seen here
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;

vertices
(
    (-1 -1 -1)
    (16 -1 -1)
    (16 4 -1)
    (-1 4 -1)
    (-1 -1 4)
    (16 -1 4)
    (16 4 4)
    (-1 4 4)
);

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

edges           
(
);

patches         
(
    patch minX
    (
        (0 4 7 3)
    )
    patch maxX
    (
        (2 6 5 1)
    )
    patch minY
    (
        (1 5 4 0)
    )
    patch maxY 
    (
        (3 7 6 2)
    )
    patch minZ
    (
        (0 3 2 1)
    )
    patch maxZ
    (
        (4 5 6 7)
    )
);

mergePatchPairs 
(
);
So pretty much all I did was change the dimensions of the cube. I run blockMesh and the mesh checks out ok as seen here.
Code:
taylor@taylor-Precision-T1700:~/OpenFOAM/taylor-7/run/ten$ blockMesh
/*---------------------------------------------------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  7
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
Build  : 7-6ef561967074
Exec   : blockMesh
Date   : Oct 02 2019
Time   : 07:32:57
Host   : "taylor-Precision-T1700"
PID    : 2985
I/O    : uncollated
Case   : /home/taylor/OpenFOAM/taylor-7/run/ten
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Deleting polyMesh directory
    "/home/taylor/OpenFOAM/taylor-7/run/ten/constant/polyMesh"
Creating block mesh from
    "/home/taylor/OpenFOAM/taylor-7/run/ten/system/blockMeshDict"
Creating block edges
No non-planar block faces defined
Creating topology blocks
Creating topology patches

Reading patches section

Creating block mesh topology

Reading physicalType from existing boundary file

Default patch type set to empty

Check topology

	Basic statistics
		Number of internal faces : 0
		Number of boundary faces : 6
		Number of defined boundary faces : 6
		Number of undefined boundary faces : 0
	Checking patch -> block consistency

Creating block offsets
Creating merge list .

Creating polyMesh from blockMesh
Creating patches
Creating cells
Creating points with scale 1
    Block 0 cell size :
        i : 0.33333333 .. 0.33333333
        j : 0.33333333 .. 0.33333333
        k : 0.33333333 .. 0.33333333

Writing polyMesh
----------------
Mesh Information
----------------
  boundingBox: (-1 -1 -1) (16 4 4)
  nPoints: 13312
  nCells: 11475
  nFaces: 36180
  nInternalFaces: 32670
----------------
Patches
----------------
  patch 0 (start: 32670 size: 225) name: minX
  patch 1 (start: 32895 size: 225) name: maxX
  patch 2 (start: 33120 size: 765) name: minY
  patch 3 (start: 33885 size: 765) name: maxY
  patch 4 (start: 34650 size: 765) name: minZ
  patch 5 (start: 35415 size: 765) name: maxZ

End
and I checked the mesh here
Code:
taylor@taylor-Precision-T1700:~/OpenFOAM/taylor-7/run/ten$ checkMesh
/*---------------------------------------------------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  7
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
Build  : 7-6ef561967074
Exec   : checkMesh
Date   : Oct 02 2019
Time   : 07:33:01
Host   : "taylor-Precision-T1700"
PID    : 2986
I/O    : uncollated
Case   : /home/taylor/OpenFOAM/taylor-7/run/ten
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create polyMesh for time = 0

Time = 0

Mesh stats
    points:           13312
    faces:            36180
    internal faces:   32670
    cells:            11475
    faces per cell:   6
    boundary patches: 6
    point zones:      0
    face zones:       0
    cell zones:       0

Overall number of cells of each type:
    hexahedra:     11475
    prisms:        0
    wedges:        0
    pyramids:      0
    tet wedges:    0
    tetrahedra:    0
    polyhedra:     0

Checking topology...
    Boundary definition OK.
    Cell to face addressing OK.
    Point usage OK.
    Upper triangular ordering OK.
    Face vertices OK.
    Number of regions: 1 (OK).

Checking patch topology for multiply connected surfaces...
    Patch               Faces    Points   Surface topology                  
    minX                225      256      ok (non-closed singly connected)  
    maxX                225      256      ok (non-closed singly connected)  
    minY                765      832      ok (non-closed singly connected)  
    maxY                765      832      ok (non-closed singly connected)  
    minZ                765      832      ok (non-closed singly connected)  
    maxZ                765      832      ok (non-closed singly connected)  

Checking geometry...
    Overall domain bounding box (-1 -1 -1) (16 4 4)
    Mesh has 3 geometric (non-empty/wedge) directions (1 1 1)
    Mesh has 3 solution (non-empty) directions (1 1 1)
    Boundary openness (1.2514918e-16 -2.3802185e-16 -2.3795068e-16) OK.
    Max cell openness = 1.2490009e-16 OK.
    Max aspect ratio = 1 OK.
    Minimum face area = 0.11111111. Maximum face area = 0.11111111.  Face area magnitudes OK.
    Min volume = 0.037037037. Max volume = 0.037037038.  Total volume = 425.  Cell volumes OK.
    Mesh non-orthogonality Max: 0 average: 0
    Non-orthogonality check OK.
    Face pyramids OK.
    Max skewness = 4.2632565e-14 OK.
    Coupled point location match (average 0) OK.

Mesh OK.

End
I wanted to make sure my stl file would fit within my new mesh so I ran paraFoam. Paraview opened but when I clicked on the mesh paraview shutdown and this error appeared.
Code:
taylor@taylor-Precision-T1700:~/OpenFOAM/taylor-7/run/ten$ paraFoam
Created temporary 'ten.OpenFOAM'
I/O    : uncollated


--> FOAM FATAL IO ERROR: 
Cannot find patchField entry for minX

file: /home/taylor/OpenFOAM/taylor-7/run/ten/0/p.boundaryField from line 26 to line 49.

    From function void Foam::GeometricField<Type, PatchField, GeoMesh>::Boundary::readField(const Foam::DimensionedField<TypeR, GeoMesh>&, const Foam::dictionary&) [with Type = double; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh]
    in file /home/ubuntu/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/GeometricBoundaryField.C at line 191.

FOAM exiting

Segmentation fault (core dumped)

It appears that it is accessing the initial conditions files but that doesn't make since to me because this should'nt have anything to do with the initial p or U.

Any help would be greatly appreciated!
tenichols19 is offline   Reply With Quote

Reply

Tags
block mesh, error, parafoam, paraview

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[snappyHexMesh] SnappyHexMesh/splitMeshRegion : region1 in zone "-1" GuiMagyar OpenFOAM Meshing & Mesh Conversion 3 August 4, 2023 13:38
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 06:38
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 09:54
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


All times are GMT -4. The time now is 20:07.