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

damBreak case 2D->3D using Gmsh

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 9, 2013, 16:10
Default damBreak case 2D->3D using Gmsh
  #1
Member
 
Guifan Li
Join Date: Apr 2011
Location: New York City, U.S.
Posts: 96
Rep Power: 6
liguifan is on a distinguished road
Hi all,

I have build up a box with the leftwall, rightwall, lowerwall, frontwall, and backwall using Gmsh,
Then in the damBreak folder, I modify the alpha1.org file by adding frontwall and backwall and change the type of defaultFaces from "empty" to "patch" as follows. Also, I did this to 0/p_rgh , 0/U and system/polymesh/boundary files as well.


Quote:
dimensions [0 0 0 0 0 0 0];

internalField uniform 0;
boundaryField
{
leftwall
{
type zeroGradient;
}

rightwall
{
type zeroGradient;
}

lowerwall
{
type zeroGradient;
}
frontwall
{
type zeroGradient;
}
backwall
{
type zeroGradient;
}
atmosphere
{
type inletOutlet;
inletValue uniform 0;
value uniform 0;
}

defaultFaces
{
type patch;
}
}
After all, I use gmshToFoam to convert my .msh file. Then I cp 0/alpha1.org 0/alpha1.
But the error comes when I execute setFields , the errors are:
Quote:
Create time

Create mesh for time = 0

Reading setFieldsDict

Setting field default values
Setting internal values of volScalarField alpha1


--> FOAM FATAL IO ERROR:

Cannot find 'value' entry on patch defaultFaces of field alpha1 in file "/home/liguifan/Desktop/damBreak/0/alpha1"
which is required to set the values of the generic patch field.
(Actual type patch)

Please add the 'value' entry to the write function of the user-defined boundary-condition


file: /home/liguifan/Desktop/damBreak/0/alpha1::boundaryField::defaultFaces from line 54 to line 54.

From function genericFvPatchField<Type>::genericFvPatchField(con st fvPatch&, const Field<Type>&, const dictionary&)
in file genericFvPatchField/genericFvPatchField.C at line 71.

FOAM exiting
Can anyone please give me some suggestion about this?
Thanks
James
liguifan is offline   Reply With Quote

Old   February 10, 2013, 07:22
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings James,

Although you added the new patches in the necessary files, you forgot to remove the patch "defaultFaces"!

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   February 10, 2013, 16:31
Default
  #3
Member
 
Guifan Li
Join Date: Apr 2011
Location: New York City, U.S.
Posts: 96
Rep Power: 6
liguifan is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings James,

Although you added the new patches in the necessary files, you forgot to remove the patch "defaultFaces"!

Best regards,
Bruno
Good afternoon Bruno,

Thanks for the reply.

I follow your suggestion and the program works! But one very interesting phenomena is that the fluid(water) ultimate leaks out from one of the wall. I want to keep the water in the tank rather than letting it go?

Do you have some suggestion for that?

Best regards,
James
liguifan is offline   Reply With Quote

Old   February 10, 2013, 22:06
Default
  #4
Senior Member
 
Join Date: Nov 2009
Location: Michigan
Posts: 135
Rep Power: 7
doubtsincfd is on a distinguished road
Hi Guifan,

are the side faces of the tank wall? In that case try with static contact angle boundary condition. See the capillary tutorial for the syntax of the boundary condition
doubtsincfd 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
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
gmsh and boundary layers kanuk Open Source Meshers: Gmsh, Netgen, CGNS, ... 9 May 9, 2011 07:21
Runing InterFoam for 3 D damBreak case Patch issue nishant_hull OpenFOAM Running, Solving & CFD 5 February 18, 2009 01:32
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 8 March 12, 2008 05:58
Turbulent Flat Plate Validation Case Jonas Larsson Main CFD Forum 0 April 2, 2004 10:25


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