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

[blockMesh] axissymetric body

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 24, 2013, 02:25
Exclamation axissymetric body
  #1
New Member
 
Harshawardhan
Join Date: Feb 2013
Posts: 12
Rep Power: 13
kulkarni Harshawardhan is on a distinguished road
hello friends,

I've got following error during creating axissymetric body in OpenFOAM.



--> FOAM FATAL IO ERROR:
inconsistent patch and patchField types for
patch type wedge and patchField type zeroGradient

file: /home/harshawardhan/OpenFOAM/harshawardhan-2.2.0/run/tutorials/incompressible/icoFoam/cavity_test/0/p.boundaryField.front from line 25 to line 25.

From function fvPatchField<Type>::New(const fvPatch&, const DimensionedField<Type, volMesh>&, const dictionary&)
in file lnInclude/fvPatchFieldNew.C at line 165.

FOAM exiting
kulkarni Harshawardhan is offline   Reply With Quote

Old   May 25, 2013, 17:13
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Harshawardhan,

Good thing I keep an RSS monitor at OpenFOAM's bug tracker, otherwise I wouldn't find out about your (somewhat) more complete report here: http://www.openfoam.org/mantisbt/view.php?id=870

Just in case your bug report gets erased, here's the "blockMeshDict" you posted there:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.2.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 0.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) (20 20 20) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
    movingWall
    {
        type wall;
        faces
        (
            (3 7 6 2)
        );
    }
    fixedWalls
    {
        type wall;
        faces
        (
            (0 4 7 3)
            (2 6 5 1)
            (1 5 4 0)
        );
    }
    frontAndBack
    {
        type empty;
        faces
        (
            (0 3 2 1)
            (4 5 6 7)
        );
    }
);

mergePatchPairs
(
);

// ************************************************************************* //
You can find out how to post pieces of code here on the forum, by following the instructions on my second signature link, namely this one: How to post code using [CODE]


Now, as for the error in question: you've missed some important steps while adapting the case.
From the output error code you've given and the "blockMeshDict" you've provided, it looks like you've modified the "p" field, but forgot to properly modify the "blockMeshDict" accordingly.

In other words:
  • In the file "blockMeshDict", you only have these patches:
    Code:
    movingWall
    fixedWalls
    frontAndBack
  • In the file "0/p", you have a patch named "front", which is not present in the previous list.
Therefore, your modifications are incomplete!

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 26, 2013, 05:17
Default
  #3
Member
 
Yosmcer Mocktai
Join Date: Apr 2013
Location: Behind a computer
Posts: 50
Rep Power: 17
Yosmcer will become famous soon enough
Hello,

Is the BlockMeshDict the right one for the problem you have?
I recognize something similar to the cavity tutorial one: this is a cube.
So this is not an axissymetric body (like cylinder, diabolo, cone, etc).

However, the problem seams to be the one pointed by wyldckat.
Yosmcer 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
6dof model - floating body flinde FLUENT 13 March 6, 2021 14:32
dynamic mesh 2d problem to move body m zubair Main CFD Forum 0 March 19, 2019 07:01
Ahmed body simulation gives unexpected results in su2 6.0 anas651 SU2 0 March 28, 2018 03:42
[snappyHexMesh] dynamic mesh: rotating body with increasing/decreasing distance to fixed body mo_na OpenFOAM Meshing & Mesh Conversion 3 July 26, 2016 04:51
[Need some advise] Am I doing right?? Simulating a rotational mixer setasena STAR-CCM+ 4 March 10, 2013 10:32


All times are GMT -4. The time now is 23:32.