|
[Sponsors] |
InterFoam error for two phase flow simulation in channel |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 7, 2014, 16:34 |
InterFoam error for two phase flow simulation in channel
|
#1 | ||
Senior Member
Ali reza
Join Date: Mar 2014
Posts: 110
Rep Power: 12 |
hello
This is a two phase flow and the solver is interFoam in openFoam software. As you can see here,I have made this geometry in gambit software and because of meshing problems I had to define some faces between volumes for example face number 1 and 2 and I used "specify continuum types"option in gambit to let the flow to pass.(there is flow in this geometry that it needs to pass these faces). I checked the mesh and it was right but as soon as I want to see the geometry in paraview with paraFoam command I face this errors: Quote:
whenever I type interfoam command it gives me this error Quote:
I don't know what is wrong!!! if some one can help me I would be so appreciate. thanks |
|||
April 7, 2014, 21:56 |
|
#2 |
Member
Christian Butcher
Join Date: Jul 2013
Location: Japan
Posts: 85
Rep Power: 13 |
In your set of case files, you have probably a "0" directory, right?
Within that directory will be a number of files with names like "U", "p", "alpha.phasename" or "alpha1" depending on your OF version. If you open these files with a text editor, you will read the boundary conditions at the bottom. The error you're getting is complaining that in your mesh files, you have a patch face (or faces) called "walls", and that "walls" are not specified in your "U", "p" or "alpha1" files. Probably you're going to want something like Code:
boundaryField { walls { type zeroGradient; } other_patch_faces_here } Edit : Correction - having looked over the question again, it occurs to me that you don't want an actual wall where your "walls" patch is/are, if "walls" is the name you gave to the ones you added and highlighted in the picture (Apologies, I have no experience with Fluent or Gambit). As such, you probably want some sort of inletOutlet BC - maybe someone else would know more specifically here. Last edited by chrisb2244; April 7, 2014 at 21:59. Reason: More information about BC types |
|
April 8, 2014, 05:10 |
|
#3 |
Senior Member
Ali reza
Join Date: Mar 2014
Posts: 110
Rep Power: 12 |
thanks for protect.
unfortunately I have defined these wall boundary conditions in U ,alpha 1 and so on but the error is still staying. let me show you one of boundary conditions which I defined. this is alpha1 boundary condition: Code:
dimensions [0 0 0 0 0 0 0]; internalField uniform 0; boundaryField { inlet-1 { type fixedValue; value uniform 0.0; } inlet-2 { type fixedValue; value uniform 1.0; } inlet-3 { type fixedValue; value uniform 1.0; } outlet { type zeroGradient; } Walls { type zeroGradient; } } // ************************************************************************* // |
|
April 8, 2014, 05:12 |
|
#4 |
Member
Christian Butcher
Join Date: Jul 2013
Location: Japan
Posts: 85
Rep Power: 13 |
||
April 8, 2014, 15:09 |
|
#5 | |
Senior Member
Ali reza
Join Date: Mar 2014
Posts: 110
Rep Power: 12 |
thanks a lot.
I have done what you say but I have just one error that it is about alpha1.org . Quote:
Code:
dimensions [0 0 0 0 0 0 0]; internalField uniform 0; boundaryField { water-1 { type fixedValue; value uniform 0.0; } water-2 { type fixedValue; value uniform 1.0; oil { type fixedValue; value uniform 1.0; } outlet { type zeroGradient; } walls { type zeroGradient; } } // ************************************************************************* // |
||
April 8, 2014, 22:06 |
|
#6 |
Member
Christian Butcher
Join Date: Jul 2013
Location: Japan
Posts: 85
Rep Power: 13 |
If you're getting the same error for alpha1.org, it's because your alpha1.org file doesn't have a "walls" boundary field. However, it was my understanding that the alpha1.org files provided in tutorial cases are usually used by some sort of 'Allrun' script to copy out an alpha1 file before starting solutions, so I'm surprised that your solver cares about an alpha1.org file.
In particular, the default interFoam does not read an alpha1.org file. So my guess is that this error is only occurring if you try to run foamToVTK or some similar conversion utility? I think the solution is simply to remove the alpha1.org file from your 0 directory, if you do not need it. I have a test case I'm using to try and troubleshoot bugs in a solver/library pair I'm writing, and I find it helpful to have a script saying something like Code:
rm -rf 0* cp -rf backup0 0 myInterFoam 2>&1 | tee log Best, Christian |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PEM fuel cell simulation | pchoopanya | Mesh Generation & Pre-Processing | 1 | March 1, 2016 00:56 |
two phase flow through a micro channel | ajithjec | FLUENT | 0 | September 10, 2013 14:39 |
Help! How to hold turbulence in a 2d channel flow RANS simulation | 1/153 | Main CFD Forum | 7 | July 27, 2012 16:39 |
Modeling the mixing of air and kerosene in a flow channel | StefanG | CFX | 3 | June 11, 2012 21:21 |
[ICEM] Flow channel meshing problems | StefanG | ANSYS Meshing & Geometry | 19 | May 15, 2012 07:44 |