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

openfoam ext4.0 and problem in cyclic condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 19, 2019, 08:58
Default openfoam ext4.0 and problem in cyclic condition
  #1
Senior Member
 
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7
Hgholami is on a distinguished road
Dear all.
I try to model periodic condition in top and down of fluid zone with createPatchDic. I first combine two faces and then use cyclic, but the solver take a error.
my file createPatchDic is :
pointSync true;

// Patches to create.
patchInfo
(
{
name elastic;
dictionary
{
type wall;
}
constructFrom patches;
patches (elastic1u elastic2u);
}
{
name fix;
dictionary
{
type wall;
}
constructFrom patches;
patches (fix1u fix2u);
}
{
name down //line 47

dictionary
{
type cyclic;
neighbourPatch top;
transform translational;
separationVector (0 -0.05 0);
}
constructFrom patches;
patches (top down);
set f0; //line 58
}
{
name top

dictionary
{
type cyclic;
neighbourPatch down;
transform translational;
separationVector (0 -0.05 0);
}
constructFrom patches;
patches (top down);
set f0;
}

);
//----------------------------
and the errorr is
Create time

Reading createPatchDict.

Create polyMesh for time = 0

Adding new patch elastic as patch 17 from
{
type wall;
}

Adding new patch fix as patch 18 from
{
type wall;
}

Moving faces from patch elastic1u to patch 17
Moving faces from patch elastic2u to patch 17
Moving faces from patch fix1u to patch 18
Moving faces from patch fix2u to patch 18


--> FOAM FATAL IO ERROR:
keyword constructFrom is undefined in dictionary "/home/itp/foam/foam-extend-4.0/tutorials/tubes/fluid/system/createPatchDict:atchInfo"

file: /home/itp/foam/foam-extend-4.0/tutorials/tubes/fluid/system/createPatchDict:atchInfo from line 47 to line 58.

From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 395.

FOAM exiting
//-----------------
Did anybody have this error and how do you fix it?
Hgholami is offline   Reply With Quote

Old   January 19, 2019, 09:33
Default
  #2
Senior Member
 
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7
Hgholami is on a distinguished road
the problem was due to ";" after the "name top" that added and problem is solved.
Hgholami is offline   Reply With Quote

Old   February 19, 2019, 11:53
Default
  #3
Senior Member
 
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7
Hgholami is on a distinguished road
Success code
Quote:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object createPatchDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

pointSync false;

// Patches to create.
patchInfo
(
{
name periodic1;
dictionary
{
type cyclic;
// neighbourPatch top;
// transform translational;
// separationVector (0 -0.05 0);

}
constructFrom patches;
patches (down top);
set f0;
}
);

// ************************************************** *********************** //
Hgholami is offline   Reply With Quote

Reply

Tags
periodic condition


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
[Other] Cyclic patch problem! SMartella OpenFOAM Meshing & Mesh Conversion 7 May 6, 2024 09:03
[Commercial meshers] Problem with cyclic boundaries in Openfoam 2.3, mesh import from ICEM Scabbard OpenFOAM Meshing & Mesh Conversion 29 October 6, 2020 22:14
Understanding the cyclic boundary condition leroyv OpenFOAM Running, Solving & CFD 10 May 31, 2020 10:05
Cyclic rotor stator boundary condition problem fairuz OpenFOAM 3 April 26, 2014 01:16
CAD -> gMsh -> enGrid -> OpenFOAM Problem AlGates OpenFOAM 7 August 6, 2010 13:46


All times are GMT -4. The time now is 00:50.