|
[Sponsors] |
July 24, 2012, 12:26 |
cavity 3D in OpenFOAM Extend
|
#1 |
Member
Join Date: Apr 2010
Posts: 61
Rep Power: 16 |
Hello,
I'm trying to run a cavity 3D case in OpenFOAM Extend, I have change the blockMeshDict of the $FOAM_TUTORIALS/incompressible/icoFoam/cavity tutorial with the next new line: hex (0 1 2 3 4 5 6 7) (100 100 100) simpleGrading (1 1 1) [as suggested here] I check that everything works in OpenFOAM-2.1.0 but I obtain the next error in OpenFOAM Extend: --> 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 151. FOAM exiting Any idea? I'm not especially interested on this case. I just need to make a benchmark with a 3D blocks model from the tutorial. Thanks in advanced. |
|
July 24, 2012, 14:51 |
|
#2 |
Senior Member
|
What I understand is that you are trying to extend the 2D cavity mesh to 3D.
But the problem is that in 2D the patches normal to direction of flow are given empty BC. And you have increased the number of cells in the normal direction, which means that the mesh is not 2D anymore, but OF sees the empty condition on normal patches and giving an error. So you need to change these conditions to wall. As you are considering running a 3D cavity simulation. I hope this will help you. Regards, Awais |
|
July 25, 2012, 12:44 |
|
#3 | |
Member
Join Date: Apr 2010
Posts: 61
Rep Power: 16 |
Quote:
Thank you very much owayz for your time! PD: Note that with OpenFOAM-2.1.0 there's no error starting the case but it is consider as empty the 3D surfaces. |
||
April 28, 2013, 11:54 |
Extend 2D Cavity to 3D mesh
|
#4 |
New Member
Calum Douglas
Join Date: Apr 2013
Location: Coventry, UK
Posts: 26
Rep Power: 12 |
Hi,
I am trying to do the same thing, but when I run "icoFoam" Anway, it runs, and I go to paraFoam. The box is there looking fine, but U does not change when I run the animation. So in other words, when I press play the view above does not change at all. Changes made to standard case files: BlockMeshDict: vertices ( (0 0 0) (1 0 0) (1 1 0) (0 1 0) (0 0 1) // this was 0 0 0.1 (1 0 1) // ditto (1 1 1) // ditto (0 1 1) ); blocks ( hex (0 1 2 3 4 5 6 7) (20 20 20) simpleGrading (1 1 1) // this was 1 ); edges ( ); boundary ( movingWall { type wall; faces ( (3 7 6 2) ); } fixedWalls { type wall; faces ( (0 4 7 3) (2 6 5 1) (1 5 4 0) ); } frontAndBack { type wall; // this was type empty faces ( (0 3 2 1) (4 5 6 7) ); } ); mergePatchPairs ( ); BOUNDARY ( movingWall { type wall; nFaces 400; startFace 22800; } fixedWalls { type wall; nFaces 1200; startFace 23200; } frontAndBack { type wall; // THIS WAS "type empty" nFaces 800; startFace 24400; } ) P and U boundaryField { movingWall { type zeroGradient; } fixedWalls { type zeroGradient; } frontAndBack type zeroGradient; // this was "empty" } } Any ideas please ? Many thanks in advance C. |
|
April 29, 2013, 03:31 |
Versions
|
#5 |
New Member
Calum Douglas
Join Date: Apr 2013
Location: Coventry, UK
Posts: 26
Rep Power: 12 |
Sorry some more info:
Am using Paraview and Openfoam as loaded as standard onto CAE Linux 2011. So thats Paraview 3.10 OpenFoam 2.0.1 |
|
April 29, 2013, 04:01 |
|
#6 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24 |
is there any time directory in your test cases?
if yes! maybe you need to go to display tab in paraview and click on rescale to see the updated value
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
April 29, 2013, 04:22 |
|
#7 |
New Member
Calum Douglas
Join Date: Apr 2013
Location: Coventry, UK
Posts: 26
Rep Power: 12 |
Many thanks for the reply, I will do that tonight and see if
I get a result. I do have all the time-step folders in the OFoam cavity folder after running it, so perhaps its a visualisation issue as you suggest. |
|
May 4, 2013, 07:20 |
it works !
|
#8 |
New Member
Calum Douglas
Join Date: Apr 2013
Location: Coventry, UK
Posts: 26
Rep Power: 12 |
Hi,
Its all working now, thanks for the help. I put a load of info on my website about this which might help openfoam total beginners like me. http://www.calumdouglas.ch/openfoam-...e-3d-dambreak/ Here is the result: http://www.youtube.com/watch?v=DB5zWohbSX4 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cross-compiling OpenFOAM 1.6 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 7 | January 19, 2010 15:39 |
Problem installing OpenFOAM 1.5 installation on RHEL 4. | vwsj84 | OpenFOAM Installation | 4 | April 23, 2009 04:48 |
2009 OpenFOAM Summer School in Zagreb, Croatia | hjasak | OpenFOAM Announcements from Other Sources | 0 | March 27, 2009 12:08 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 18:07 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 14:25 |