CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: blockMesh

axissymetric body

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 24, 2013, 02:25
Exclamation axissymetric body
  #1
New Member
 
Harshawardhan
Join Date: Feb 2013
Posts: 12
Rep Power: 4
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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: 41
Rep Power: 8
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

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginner questions - modelling lift and drag on a towed body ABF Main CFD Forum 15 October 19, 2014 23:27
6DOF with floating body bounce back. paka FLUENT 4 June 6, 2013 11:32
[Need some advise] Am I doing right?? Simulating a rotational mixer setasena STAR-CCM+ 4 March 10, 2013 11:32
how to move a solid body along a clear line m.r_khani FLUENT 0 November 26, 2011 08:04
Body in windtunnel - high preassure behind the body? Andyjoe OpenFOAM 4 February 16, 2010 11:57


All times are GMT -4. The time now is 19:42.