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

damBreak case 2D->3D using Gmsh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 9, 2013, 15: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: 15
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, 06:22
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 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, 15:31
Default
  #3
Member
 
Guifan Li
Join Date: Apr 2011
Location: New York City, U.S.
Posts: 96
Rep Power: 15
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, 21:06
Default
  #4
Senior Member
 
Join Date: Nov 2009
Location: Michigan
Posts: 135
Rep Power: 16
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


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
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 14:53
[Gmsh] gmsh and boundary layers kanuk OpenFOAM Meshing & Mesh Conversion 11 August 14, 2015 12:35
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 05:36
Runing InterFoam for 3 D damBreak case Patch issue nishant_hull OpenFOAM Running, Solving & CFD 5 February 18, 2009 00:32
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:24.