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

OpenFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By syntex

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 19, 2018, 09:23
Default OpenFoam
  #1
Member
 
Christophk
Join Date: Oct 2018
Posts: 33
Rep Power: 7
syntex is on a distinguished road
Hello,

I just started using OpenFoam. I tried to use an old simulation, which runs into an error, using cyclic for boundary conditions:


--> FOAM FATAL IO ERROR:
Old-style cyclic definition. Splitting patch fan into two halves fan_half0 and fan_half1
Alternatively use new 'boundary' dictionary syntax.

file: /opt/openfoam6/src/OpenFOAM/root-6/run/fan/constant/polyMesh/blockMeshDict.patches at line 90.

From function void Foam::blockMesh::readPatches(const Foam::dictionary&, Foam::faceListList&, Foam::wordList&, Foam::wordList&, Foam::wordList&)
in file blockMesh/blockMeshTopology.C at line 206.

Does anyone have any idea, what I should do?

Thanks for help.
Gerhard likes this.
syntex is offline   Reply With Quote

Old   October 21, 2018, 10:53
Default
  #2
Member
 
Christophk
Join Date: Oct 2018
Posts: 33
Rep Power: 7
syntex is on a distinguished road
Does really noone have any idea?
syntex is offline   Reply With Quote

Old   October 22, 2018, 11:52
Default
  #3
Senior Member
 
Lee Strobel
Join Date: Jun 2016
Posts: 133
Rep Power: 9
Time4Tea is on a distinguished road
I don't have a lot of experience with OpenFOAM, but will try to help if I can.


Firstly, what operation are you trying to perform, when you get that message?


Form the error message, it looks like it something to do with the boundary conditions and/or the mesh. Have you tried re-meshing? If so, perhaps see if it will work with some alternative boundary conditions.
Time4Tea is offline   Reply With Quote

Old   October 23, 2018, 00:42
Default
  #4
Senior Member
 
Peter Baskovich
Join Date: Jul 2014
Posts: 127
Rep Power: 11
pete20r2 is on a distinguished road
Hi Cristoph,
Could you provide the blockMeshDict you are trying to run? It seems that the way to define cyclic patches has changed between the old case you are trying to run and the new OF environment.
It is always helpful around here to mention which version exactly you are running as there can be differences in implementations and available functionality.
pete20r2 is offline   Reply With Quote

Old   October 24, 2018, 09:16
Default
  #5
Member
 
Christophk
Join Date: Oct 2018
Posts: 33
Rep Power: 7
syntex is on a distinguished road
blockmeshdict:

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.2 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/

FoamFile
{
version 2.0;
format ascii;

root "";
case "";
instance "";
local "";

class dictionary;
object blockMeshDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;

x0 0.0;
x1 4.0;
x2 4.0;
x3 8.0;

y0 0.0;
y1 1.0;

z0 0.0;
z1 0.5;

vertices
(
( $x0 $y0 $z0 )
( $x1 $y0 $z0 )
( $x1 $y1 $z0 )
( $x0 $y1 $z0 )
( $x0 $y0 $z1 )
( $x1 $y0 $z1 )
( $x1 $y1 $z1 )
( $x0 $y1 $z1 )
( $x2 $y0 $z0 )
( $x3 $y0 $z0 )
( $x3 $y1 $z0 )
( $x2 $y1 $z0 )
( $x2 $y0 $z1 )
( $x3 $y0 $z1 )
( $x3 $y1 $z1 )
( $x2 $y1 $z1 )
);

blocks
(
hex ( 0 1 2 3 4 5 6 7 ) upstream ( 40 10 5 ) simpleGrading ( 1 1 1 )
hex ( 8 9 10 11 12 13 14 15 ) upstream ( 40 10 5 ) simpleGrading ( 1 1 1 )
);

boundary
(
inlet
{
type patch;
faces
(
( 0 4 7 3 )
);
}
outlet
{
type patch;
faces
(
( 9 10 14 13 )
);
}
walls
{
type wall;
faces
(
( 0 1 2 3 )
( 8 9 10 11 )
( 0 1 5 4 )
( 8 9 13 12 )
( 4 5 6 7 )
( 12 13 14 15 )
( 3 7 6 2 )
( 11 15 14 10 )
);
}

fan_half0
{
type cyclic;
neighbourPatch fan_half1;
faces
(
( 1 2 6 5 )
);
}
fan_half1
{
type cyclic;
neighbourPatch fan_half0;
faces
(
( 8 12 15 11 )
);
}

);

mergePatchPairs
(
);

I changed the file, so the meshing works now. The solver requests a turbulenceproperties file now, and I tried to run with kOmegaSST, but then I need a nut-File.
If I tried to copy that as well from tutorials/lagrangian/reactingParcelFoam/verticalChannelLTS/0 it searches for a patchType inlet, which doesn't exists here. I'm not really sure how to change the nut-file.
The working U-file looks like this :


FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [ 0 1 -1 0 0 0 0 ];

internalField uniform ( 1 0 0 );

boundaryField
{
inlet
{
type pressureInletVelocity;
phi phi;
value uniform ( 0 0 0 );
}
outlet
{
type inletOutlet;
inletValue uniform ( 0 0 0 );
value uniform ( 0 0 0 );
}
walls
{
type fixedValue;
value uniform ( 0 0 0 );
}
fan_half0
{
type cyclic;
}
fan_half1
{
type cyclic;
}
}

The nut-File loks like this now:

FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 2 -1 0 0 0 0];

internalField uniform 0;

boundaryField
{
back
{
type symmetryPlane;
}
front
{
type symmetryPlane;
}
inletCentral
{
type calculated;
value uniform 0;
}
inletSides
{
type calculated;
value uniform 0;
}
outlet
{
type calculated;
value uniform 0;
}
walls
{
type nutkWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
value uniform 0;
}
fan_half0
{
type cyclic;
}
fan_half1
{
type cyclic;
}
}

I'm sorry if I did some obvious mistakes and can't see them, since I am new to this stuff.
syntex is offline   Reply With Quote

Old   February 19, 2020, 08:15
Default
  #6
New Member
 
Gerhard
Join Date: Mar 2017
Posts: 26
Rep Power: 9
Gerhard is on a distinguished road
Hi Christoph,


You just need to use the same boundary names in the nut-file, i.e. inlet, outlet, walls, fan_half0, fan_half1.
Then assign the correct types etc., which you can get an idea of in the tutorial files etc.


Get rid of the front, back, and those things that do not correspond to the boundaries in the U-file.


Regards.
Gerhard is offline   Reply With Quote

Old   February 26, 2024, 11:09
Default
  #7
New Member
 
Marion Sant
Join Date: Dec 2023
Posts: 23
Rep Power: 2
edo2822 is on a distinguished road
Quote:
Originally Posted by syntex View Post
blockmeshdict:

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.2 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/

FoamFile
{
version 2.0;
format ascii;

root "";
case "";
instance "";
local "";

class dictionary;
object blockMeshDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;

x0 0.0;
x1 4.0;
x2 4.0;
x3 8.0;

y0 0.0;
y1 1.0;

z0 0.0;
z1 0.5;

vertices
(
( $x0 $y0 $z0 )
( $x1 $y0 $z0 )
( $x1 $y1 $z0 )
( $x0 $y1 $z0 )
( $x0 $y0 $z1 )
( $x1 $y0 $z1 )
( $x1 $y1 $z1 )
( $x0 $y1 $z1 )
( $x2 $y0 $z0 )
( $x3 $y0 $z0 )
( $x3 $y1 $z0 )
( $x2 $y1 $z0 )
( $x2 $y0 $z1 )
( $x3 $y0 $z1 )
( $x3 $y1 $z1 )
( $x2 $y1 $z1 )
);

blocks
(
hex ( 0 1 2 3 4 5 6 7 ) upstream ( 40 10 5 ) simpleGrading ( 1 1 1 )
hex ( 8 9 10 11 12 13 14 15 ) upstream ( 40 10 5 ) simpleGrading ( 1 1 1 )
);

boundary
(
inlet
{
type patch;
faces
(
( 0 4 7 3 )
);
}
outlet
{
type patch;
faces
(
( 9 10 14 13 )
);
}
walls
{
type wall;
faces
(
( 0 1 2 3 )
( 8 9 10 11 )
( 0 1 5 4 )
( 8 9 13 12 )
( 4 5 6 7 )
( 12 13 14 15 )
( 3 7 6 2 )
( 11 15 14 10 )
);
}

fan_half0
{
type cyclic;
neighbourPatch fan_half1;
faces
(
( 1 2 6 5 )
);
}
fan_half1
{
type cyclic;
neighbourPatch fan_half0;
faces
(
( 8 12 15 11 )
);
}

);

mergePatchPairs
(
);

I changed the file, so the meshing works now. The solver requests a turbulenceproperties file now, and I tried to run with kOmegaSST, but then I need a nut-File.
If I tried to copy that as well from tutorials/lagrangian/reactingParcelFoam/verticalChannelLTS/0 it searches for a patchType inlet, which doesn't exists here. I'm not really sure how to change the nut-file.
The working U-file looks like this :


FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [ 0 1 -1 0 0 0 0 ];

internalField uniform ( 1 0 0 );

boundaryField
{
inlet
{
type pressureInletVelocity;
phi phi;
value uniform ( 0 0 0 );
}
outlet
{
type inletOutlet;
inletValue uniform ( 0 0 0 );
value uniform ( 0 0 0 );
}
walls
{
type fixedValue;
value uniform ( 0 0 0 );
}
fan_half0
{
type cyclic;
}
fan_half1
{
type cyclic;
}
}

The nut-File loks like this now:

FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 2 -1 0 0 0 0];

internalField uniform 0;

boundaryField
{
back
{
type symmetryPlane;
}
front
{
type symmetryPlane;
}
inletCentral
{
type calculated;
value uniform 0;
}
inletSides
{
type calculated;
value uniform 0;
}
outlet
{
type calculated;
value uniform 0;
}
walls
{
type nutkWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
value uniform 0;
}
fan_half0
{
type cyclic;
}
fan_half1
{
type cyclic;
}
}

I'm sorry if I did some obvious mistakes and can't see them, since I am new to this stuff.

Hey, I'm having the same problem. Did you find a solution by chance?
edo2822 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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
OpenFOAM Foundation releases OpenFOAMŪ 3.0.0 CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 1 November 7, 2015 15:16
OpenFOAM Foundation Releases OpenFOAM v2.3.0 opencfd OpenFOAM Announcements from OpenFOAM Foundation 3 December 23, 2014 03:43
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 09:04
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07


All times are GMT -4. The time now is 21:22.