CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

naming wall patches in OpenFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 6, 2011, 12:13
Default naming wall patches in OpenFoam
  #1
Senior Member
 
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18
musahossein is on a distinguished road
Dear all:
I am modeling a rectangular tank with patch names as follows:
vertices
(
(-0.5 -20 -10.0) // Vertex back lower left corner = 0
(-0.5 20 -10.0) // Vertex back lower right corner= 1
(-0.5 20 10.0) // Vertex back upper right corner= 2
(-0.5 -20 10.0) // Vertex back upper left corner = 3

(0.5 -20 -10.0) // Vertex front lower left corner = 4
(0.5 20 -10.0) // Vertex front lower right corner= 5
(0.5 20 10.0) // Vertex front upper right corner = 6
(0.5 -20 10.0) // Vertex front upper left corner =7

);

blocks
(
// block0
hex (0 1 2 3 4 5 6 7)
(40 40 1)
simpleGrading (1 1 1)
);

//patches
boundary
(
lowerWall
{
type patch;
faces
(
(0 1 5 4)
);
}
rightWall
{
type patch;
faces
(
(1 2 6 5)
);
}
atmosphere
{
type patch;
faces
(
(2 3 7 6)
);
}
leftWall
{
type patch;
faces
(
(0 4 7 3)
);
}
frontAndBack
{
type Empty;
faces
(
(4 5 6 7)
(0 3 2 1)
);
}
);

blockMesh runs ok and gives the following output:
musa@musa-Satellite-M35X:~/OpenFOAM/musa-2.0.1/run/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D$ blockMesh
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.0.1 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.0.1-51f1de99a4bc
Exec : blockMesh
Date : Dec 06 2011
Time : 10:16:35
Host : musa-Satellite-M35X
PID : 2959
Case : /home/musa/OpenFOAM/musa-2.0.1/run/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

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

Creating block mesh from
"/home/musa/OpenFOAM/musa-2.0.1/run/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/constant/polyMesh/blockMeshDict"
No non-linear edges defined
Creating topology blocks
Creating topology patches

Creating block mesh topology

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

There are no merge patch pairs edges

Writing polyMesh
----------------
Mesh Information
----------------
boundingBox: (-0.5 -20 -10) (0.5 20 10)
nPoints: 3362
nCells: 1600
nFaces: 6480
nInternalFaces: 3120
----------------
Patches
----------------
patch 0 (start: 3120 size: 40) name: lowerWall
patch 1 (start: 3160 size: 40) name: rightWall
patch 2 (start: 3200 size: 40) name: atmosphere
patch 3 (start: 3240 size: 40) name: leftWall
patch 4 (start: 3280 size: 3200) name: frontAndBack

End

But when I try to view it in paraFoam, I get the following error message:

musa@musa-Satellite-M35X:~/OpenFOAM/musa-2.0.1/run/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D$ paraFoam
created temporary 'sloshingTank2D.OpenFOAM'


--> FOAM FATAL IO ERROR:
keyword lowerWall is undefined in dictionary "/home/musa/OpenFOAM/musa-2.0.1/run/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/0/U::boundaryField"

file: /home/musa/OpenFOAM/musa-2.0.1/run/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/0/U::boundaryField from line 25 to line 26.

From function dictionary::subDict(const word& keyword) const
in file db/dictionary/dictionary.C at line 461.

FOAM exiting

It appears that my attempt to view the mesh in paraFoam is affecting U in folder 0 which contains:
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -1 0 0 0 0];

internalField uniform (0 0 0);

boundaryField
{
walls
{
type movingWallVelocity;
value uniform (0 0 0);
}
}

How can I correct this? Any help will be greatly appreciated.
musahossein is offline   Reply With Quote

Reply

Tags
patch type


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
Wall function BC:s on regionCouple patches Ola Widlund OpenFOAM Programming & Development 2 February 1, 2013 08:24
[ICEM] Export ICEM mesh to Gambit / Fluent romekr ANSYS Meshing & Geometry 1 November 26, 2011 13:11
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 19:07
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 15:25
Wall functions Abhijit Tilak Main CFD Forum 6 February 5, 1999 02:16


All times are GMT -4. The time now is 01:49.