CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

2D Simulation using simpleFoam (Error)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 9, 2012, 09:42
Default 2D Simulation using simpleFoam (Error)
  #1
Member
 
skyinventorbt's Avatar
 
Dr. B T KANNAN
Join Date: Jul 2011
Location: CHENNAI (MADRAS), INDIA
Posts: 55
Rep Power: 15
skyinventorbt is on a distinguished road
I am trying to simulate a plane jet problem. Basically started from pitzDaily tutorial.
I have created mesh using blockMesh and the blockMeshDict file is as below...

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 0.001;

vertices
(
(-1 0 0) //0
(0 0 0) //1
(0 0 0.1) //2
(-1 0 0.1) //3
(-1 0.5 0) //4
(0 0.5 0) //5
(0 0.5 0.1) //6
(-1 0.5 0.1) //7
(250 0 0) //8
(250 0 0.1) //9
(250 0.5 0) //10
(250 0.5 0.1) //11
(0 200 0) //12
(250 200 0) //13
(250 200 0.1) //14
(0 200 0.1) //15
);

blocks
(
hex (0 1 5 4 3 2 6 7) (10 20 1) simpleGrading (1 1 1)
hex (1 8 10 5 2 9 11 6) (500 20 1) simpleGrading (10 1 1)
hex (5 10 13 12 6 11 14 15) (500 400 1) simpleGrading (10 40 1)
);

edges
(
);

patches
(
patch inlet
(
(0 4 7 3)
)
patch outlet
(
(8 10 11 9)
(10 13 14 11)
)
wall nozzleup
(
(4 5 6 7)
)
wall domainleft
(
(5 12 15 6)
)
symmetryPlane sym
(
(0 1 2 3)
(1 8 9 2)
)
empty frontAndBack
(
(0 1 5 4)
(1 8 10 5)
(5 10 13 12)
(3 2 6 7)
(2 9 11 6)
(6 11 14 15)
)
);

mergePatchPairs
(
);

// ************************************************** *********************** //


when i try to solve this using simpleFoam I get this following error.



$ simpleFoam
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.7.1 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/


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

Create mesh for time = 0

Reading field p

Reading field U

Reading/calculating face flux field phi

Selecting incompressible transport model Newtonian
Selecting RAS turbulence model kEpsilon


--> FOAM FATAL ERROR:
This mesh contains patches of type empty but is not 1D or 2D
by virtue of the fact that the number of faces of this
empty patch is not divisible by the number of cells.

From function emptyFvPatchField<Type>::updateCoeffs()
in file fields/fvPatchFields/constraint/empty/emptyFvPatchField.C at line 150.

FOAM exiting


"KINDLY SUGGEST ME TO SOLVE THIS ERROR"
skyinventorbt is offline   Reply With Quote

Old   March 9, 2012, 10:47
Default
  #2
Senior Member
 
Martin
Join Date: Oct 2009
Location: Aachen, Germany
Posts: 255
Rep Power: 22
MartinB will become famous soon enough
Hi,

you forgot one side of your domain in your patch definition. Therefor it becomes a "defaultFaces" patch with "empty" condition assigned.

You can see the missing side in paraFoam easily by importing the Mesh Parts one after another.

Good luck

Martin
MartinB is offline   Reply With Quote

Old   March 12, 2012, 01:32
Default
  #3
Member
 
skyinventorbt's Avatar
 
Dr. B T KANNAN
Join Date: Jul 2011
Location: CHENNAI (MADRAS), INDIA
Posts: 55
Rep Power: 15
skyinventorbt is on a distinguished road
Thank You Martin !!

Now the simulations are going on . . . .

Another doubt is whether OpenFOAM does real time simulation ?

Last edited by skyinventorbt; March 12, 2012 at 01:35. Reason: To add some lines
skyinventorbt is offline   Reply With Quote

Old   March 12, 2012, 04:30
Default
  #4
New Member
 
GregorS's Avatar
 
Gregor Seljak
Join Date: Oct 2010
Posts: 21
Rep Power: 16
GregorS is on a distinguished road
Quote:
Originally Posted by skyinventorbt View Post
Another doubt is whether OpenFOAM does real time simulation ?
If you use simpleFoam, the answer is no. Because every time step in simpleFoam is really just one iteration. So it doesn't matter whether you set
time step to one second or one milisecond.

But if you use other solvers, like pimpleFoam or pisoFoam, I think the answer is yes.
GregorS is offline   Reply With Quote

Old   March 13, 2012, 23:30
Default 2D plane jet simulation Error in simulation
  #5
Member
 
skyinventorbt's Avatar
 
Dr. B T KANNAN
Join Date: Jul 2011
Location: CHENNAI (MADRAS), INDIA
Posts: 55
Rep Power: 15
skyinventorbt is on a distinguished road
I just submitted the 2d plane jet problem which i mentioned above in the first post. The velocity is 10 m/s. Kindly see the snapshot of velocity field.

The velocity field shows discontinuous patches which is unphysical !!

What is the procedure to get physically possible solution for this 2d plane jet problem ??
Attached Images
File Type: png sample vel.png (23.6 KB, 23 views)
skyinventorbt is offline   Reply With Quote

Old   March 15, 2012, 12:39
Default
  #6
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 460
Rep Power: 18
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
Can you post a picture of the mesh in that region please? Also, how many iterations have you run?
lovecraft22 is offline   Reply With Quote

Old   March 16, 2012, 00:34
Default
  #7
Member
 
skyinventorbt's Avatar
 
Dr. B T KANNAN
Join Date: Jul 2011
Location: CHENNAI (MADRAS), INDIA
Posts: 55
Rep Power: 15
skyinventorbt is on a distinguished road
About 10,000 iterations !!
Attached Images
File Type: png mesh.png (31.0 KB, 22 views)
skyinventorbt 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
CGNS Compiling Diego Main CFD Forum 17 December 21, 2014 02:40
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 10:31
UDF: DEFINE_CG_MOTION for vertical jump motion of an electrode! alban Fluent UDF and Scheme Programming 2 June 8, 2010 19:54
checking the system setup and Qt version vivek070176 OpenFOAM Installation 22 June 1, 2010 13:34
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43


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