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

Boundary Conditions for internal faces in 3D interFoam

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 28, 2011, 14:04
Default Boundary Conditions for internal faces in 3D interFoam
  #1
New Member
 
Unnikrishnan
Join Date: Jun 2011
Posts: 10
Rep Power: 14
unikrsn is on a distinguished road
Dear Foamers

I kindly need your help with Boundary conditions on 3D InterFoam Simulation for Gasoline Fueltank.

I am suffering with the Boundary Condition for 3D Simulation..
I tried not to define the internal faces in BlockMeshDict.

Then it comes with an 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"

but when i define these internal faces as symmetryPlane or cyclic.. The simulation runs... but i am having problem with Alpha, P & U values...

blockMeshDict
symmetryPlane Internalface
or
cyclic Internalface

Alpha
Internalface
{
type zeroGradient;
}

p
Internalface
{
type buoyantPressure;
value uniform 0;
}

U
Internalface
{
type fixedValue;
value uniform (0 0 0);
}

When I give these conditions for Alpha, p & U... The water in the tanks breaks and Sloshes for some time.. But never moves across the Internal faces... It stay within the Block...

Kindly Provide me an Answer with defining the Boundary conditions for Internal faces in blockMeshDict, p, U & Alpha... For 3d Interfoam...

All works Fine in 2d.. Please telll me.. What i should do for 3d..



Thanks & Regards
Unni
Attached Images
File Type: jpg Tank at time 0.jpg (18.3 KB, 83 views)
File Type: jpg Tank at time 1.jpg (17.9 KB, 54 views)
unikrsn is offline   Reply With Quote

Old   July 28, 2011, 14:20
Default
  #2
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
If you get the error about empty faces in a 3D domain, I would first look and determine that your mesh is defined correctly.

Try running blockMesh with the -blockTopology option, converting to VTK with objToVTK and visualize in ParaView. You may find there is a problem with the way you have your blocks connecting.
mturcios777 is offline   Reply With Quote

Old   July 28, 2011, 14:30
Default
  #3
Senior Member
 
Join Date: Nov 2009
Location: Michigan
Posts: 135
Rep Power: 16
doubtsincfd is on a distinguished road
Can you please explain more about the problem, as in where the internal face is located, and what do you exactly want to simulate (whether the interface is removed at time t=0 and then the lower tank gets filled or something like that)

If the boundary is symmetric, just specify the type as symmetryPlane in the U, P and alpha dictionaries.
doubtsincfd is offline   Reply With Quote

Old   July 28, 2011, 14:54
Default Boundary Conditions for internal faces in 3D interFoam
  #4
New Member
 
Unnikrishnan
Join Date: Jun 2011
Posts: 10
Rep Power: 14
unikrsn is on a distinguished road
Dear sir,

My internal face is located in the center of the 1st block and the 2nd Block... It is highlighted in Red in the attached picture...

When I dont define them in BlockMeshdict these Faces become Defaultface and the above mentioned error is given...

The Model is based on Dambreak.. There is no Interface i Guess.. I tried editing the BlockMesh to Convert the DamBreak tutorial into a 3d filling tutorial in InterFoam... But after Meshing all the Block seem to be working independent of each other and there is no flow through the faces between the blocks...

Kindly Check the BlockMeshDict File, Alpha, P & U


Thanks & Regards
Unnikrishnan.
Attached Images
File Type: jpg Internal Mesh in Red.jpg (63.2 KB, 73 views)
Attached Files
File Type: zip damBreak.zip (2.6 KB, 16 views)
unikrsn is offline   Reply With Quote

Old   July 28, 2011, 20:40
Default
  #5
Senior Member
 
Join Date: Nov 2009
Location: Michigan
Posts: 135
Rep Power: 16
doubtsincfd is on a distinguished road
The files you gave are empty. Please repost the files
doubtsincfd is offline   Reply With Quote

Old   July 29, 2011, 04:05
Default Boundary Conditions for internal faces in 3D interFoam
  #6
New Member
 
Unnikrishnan
Join Date: Jun 2011
Posts: 10
Rep Power: 14
unikrsn is on a distinguished road
Dear sir,

Sorry for the Files..
I have attached the correct files now..

Folder: Documents/Fueltank3D_Dambreak_MartinHammas_ver5.0/laminar/damBreak

Thanks for the reply..

Thanks & Regards
Unnikrishnan.
Attached Files
File Type: zip laminar.zip (10.5 KB, 34 views)
unikrsn is offline   Reply With Quote

Old   July 29, 2011, 13:31
Default
  #7
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
The answer to your problem is in Section 5.3.2 in the User Guide. To have face matching occur, you need to have faces that are defined on the same vertices. When you define the first hex block, it has a face that is coincident with two faces; you are missing the vertices to have perfect matching. It may seem a little odd that OpenFOAM doesn't recognize this and match the faces anyway, but generally OpenFOAM decides only to tell you what is wrong rather than how to fix it (so you can decide on what solution is the best for you, or ask others their opinion ;-) )

To get the proper behaviour, you need another set of vertices on the same plane as the "back" faces that are directly across from points 8,9,24,25. Then you will need to define 2 new blocks and assign their faces to corresponding boundaries.

You might also be able to get the same behaviour using merging, but for a simple rectangular mesh like this its probably easier to just define new blocks.

Last edited by mturcios777; July 29, 2011 at 13:32. Reason: spelling
mturcios777 is offline   Reply With Quote

Old   August 1, 2011, 12:59
Default
  #8
New Member
 
Unnikrishnan
Join Date: Jun 2011
Posts: 10
Rep Power: 14
unikrsn is on a distinguished road
Dear Marco A. Turcios


Thanks a lot for the reply... I was able to run the simulation and it is working well...

Thanks & Regards
Unnikrishnan.
unikrsn is offline   Reply With Quote

Old   September 27, 2011, 09:29
Default
  #9
Member
 
Duong A. Hoang
Join Date: Apr 2009
Location: Delft, Netherlands
Posts: 93
Rep Power: 16
duongquaphim is on a distinguished road
Send a message via Yahoo to duongquaphim
Hi Unnikrishnan,

I am also working with symmetryPlane and interFoam and I found problems with pressure distribution even with the simplest case such as straight channel (please see my post at http://www.cfd-online.com/Forums/ope...interfoam.html). Do you find anything similar to this behaviour in your case. Can you please post or send me your case then I can test since the case you post before wasn't working?

In your case, you applied symmetryPlane for patch Internlface but then used buoyantPressure for p at that patch. It cann't be the case and OpenFOAM really complained on that when I tried to run.

Regards,

Duong
duongquaphim is offline   Reply With Quote

Old   September 27, 2011, 13:09
Default symmetricPlane or Cyclicplane problem
  #10
New Member
 
Unnikrishnan
Join Date: Jun 2011
Posts: 10
Rep Power: 14
unikrsn is on a distinguished road
Dear Duon,

1.

first I tried working with symmetricPlane or Cyclicplane. But it was not required. I made a mistake in matching the faces of my block in blockMesh.

"Section 5.3.2 in the User Guide. To have face matching occur, you need to have faces that are defined on the same vertices. When you define the first hex block, it has a face that is coincident with two faces; you are missing the vertices to have perfect matching. It may seem a little odd that OpenFOAM doesn't recognize this and match the faces anyway"

2.
In blockMeshDict: change the type of empty all2 from empty to something else (e.g. wall or patch).

Reason: empty works only in 2D and if you make more than one block in the z-direction, you are working in 3D.

3.
I checked your file and I found it is different.
If you have a copy in restore and You dont use it... It is ok. else you should change all file to Wall2 or All2 either one.

Curvature.org
Wall2
-> all2
{
type zeroGradient;
}

In U.org you have mentioned it as Wall1 and all other places as Wall2.
In alpha.org as all2.

change and check it out.

but i tried running the same file you send.. It seem to work..
I checked from 1 to 0.002.. There is no error message during interFOAM.

But if you have some other problem with the results. it would be problems with your inputs.

Also copy Alpha.org to Alpha1 every time you run your program.

Thanks & Regards
Unnikrishnan
unikrsn is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
mesh file for flow over a circular cylinder Ardalan Main CFD Forum 7 December 15, 2020 14:06
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
Proper Pressure Boundary Conditions for Buoyant Flow mchurchf OpenFOAM 0 March 25, 2010 13:16
Fluent accuracy and boundary conditions Paolo Lampitella FLUENT 0 June 12, 2008 07:25
Please help with flow around car modelling! Tudor Miron CFX 17 March 19, 2004 20:23


All times are GMT -4. The time now is 11:04.