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

cavity 3D in OpenFOAM Extend

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

Like Tree4Likes
  • 2 Post By owayz
  • 2 Post By alquimista

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 24, 2012, 12:26
Default cavity 3D in OpenFOAM Extend
  #1
Member
 
Join Date: Apr 2010
Posts: 61
Rep Power: 15
alquimista is on a distinguished road
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.
alquimista is offline   Reply With Quote

Old   July 24, 2012, 14:51
Default
  #2
Senior Member
 
Awais Ali
Join Date: Feb 2010
Location: Germany
Posts: 128
Rep Power: 17
owayz is on a distinguished road
Send a message via MSN to owayz
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
haydii and razon131211 like this.
owayz is offline   Reply With Quote

Old   July 25, 2012, 12:44
Default
  #3
Member
 
Join Date: Apr 2010
Posts: 61
Rep Power: 15
alquimista is on a distinguished road
Quote:
Originally Posted by owayz View Post
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
You are right, I dind't check this and the boundary type remains with "empty". Changing it to "wall" solves the problem.

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.
haydii and razon131211 like this.
alquimista is offline   Reply With Quote

Old   April 28, 2013, 11:54
Default Extend 2D Cavity to 3D mesh
  #4
New Member
 
Calum Douglas
Join Date: Apr 2013
Location: Coventry, UK
Posts: 26
Rep Power: 12
snowygrouch is on a distinguished road
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.
snowygrouch is offline   Reply With Quote

Old   April 29, 2013, 03:31
Default Versions
  #5
New Member
 
Calum Douglas
Join Date: Apr 2013
Location: Coventry, UK
Posts: 26
Rep Power: 12
snowygrouch is on a distinguished road
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
snowygrouch is offline   Reply With Quote

Old   April 29, 2013, 04:01
Default
  #6
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
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)
nimasam is offline   Reply With Quote

Old   April 29, 2013, 04:22
Default
  #7
New Member
 
Calum Douglas
Join Date: Apr 2013
Location: Coventry, UK
Posts: 26
Rep Power: 12
snowygrouch is on a distinguished road
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.
snowygrouch is offline   Reply With Quote

Old   May 4, 2013, 07:20
Default it works !
  #8
New Member
 
Calum Douglas
Join Date: Apr 2013
Location: Coventry, UK
Posts: 26
Rep Power: 12
snowygrouch is on a distinguished road
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
snowygrouch 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
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


All times are GMT -4. The time now is 02:06.