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

something wrong when i set the boundary file.

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By alexeym

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 8, 2017, 00:34
Default something wrong when i set the boundary file.
  #1
New Member
 
Liwei Zhang
Join Date: Jun 2017
Posts: 10
Rep Power: 8
zlw306 is on a distinguished road
i'm running a propeller simulation using pimpledymfoam.below are my steps:
1.I create two mesh name rotor and body,and i use fluent3DMeshToFoam separately to convert them to openfoam.
2.then i use mergeMeshes to combing the two meshes.
3.I copy the new mesh to a new folder ,and use splitMeshToRegions -makeCellZones -overwrite to create a cell zone.
Until now ,it all seems well,i can use the checkMesh command.
Then after edit the polyMesh/boundary to add AMI patches ,the i use checkMesh:
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 4.x
Exec : checkMesh
Date : Jul 08 2017
Time : 12:32:17
Host : "zlw"
PID : 4660
Case : /home/zlw/OpenFOAM/zlw-4.x/30x/prp/c
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create polyMesh for time = 0

--> FOAM Warning :
From function entry::getKeyword(keyType&, Istream&)
in file db/dictionary/entry/entryIO.C at line 80
Reading /home/zlw/OpenFOAM/zlw-4.x/30x/prp/c/constant/polyMesh/boundary
found on line 85 the punctuation token ')'
expected either } or EOF


--> FOAM FATAL IO ERROR:
Expected a ')' or a '}' while reading PtrList, found on line 89 an error

file: /home/zlw/OpenFOAM/zlw-4.x/30x/prp/c/constant/polyMesh/boundary at line 89.

From function char Foam::Istream::readEndList(const char*)
in file db/IOstreams/IOstreams/Istream.C at line 155.

FOAM exiting

and below is my boundary file:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format binary;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

8
(
OUTTER
{
type cyclicAMI;
nFaces 27322;
startFace 2470870;
matchTolerance 0.0001
neighbourPatch INNER
transform noOrdering
}

INLET
{
type patch;
nFaces 1279;
startFace 2498192;
}

OUTLET
{
type patch;
nFaces 1317;
startFace 2499471;
}

FAR
{
type wall;
inGroups 1(wall);
nFaces 8812;
startFace 2500788;
}

INNER
{
type cyclicAMI;
nFaces 38366;
startFace 2509600;
matchTolerance 0.0001
neighbourPatch OUTTER
transform noOrdering
}

BLADE
{
type wall;
inGroups 1(wall);
nFaces 42390;
startFace 2547966;
}

YESHAO
{
type wall;
inGroups 1(wall);
nFaces 253;
startFace 2590356;
}

HUB
{
type wall;
inGroups 1(wall);
nFaces 6093;
startFace 2590609;
}
)

// ************************************************** *********************** //
I really appreciate someone can help me out !THANKS
zlw306 is offline   Reply With Quote

Old   July 8, 2017, 16:34
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

For some reason your cyclicAMI patches descriptions miss ; at certain line ends. For example:

Code:
OUTTER
{
type cyclicAMI;
nFaces 27322;
startFace 2470870;
matchTolerance 0.0001
neighbourPatch INNER
transform noOrdering
}
should be

Code:
OUTTER
{
type cyclicAMI;
nFaces 27322;
startFace 2470870;
matchTolerance 0.0001;
neighbourPatch INNER;
transform noOrdering;
}
Do not know why this happens.
alexeym is offline   Reply With Quote

Old   July 9, 2017, 02:37
Default
  #3
New Member
 
Liwei Zhang
Join Date: Jun 2017
Posts: 10
Rep Power: 8
zlw306 is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi,



For some reason your cyclicAMI patches descriptions miss ; at certain line ends. For example:



Code:
OUTTER

{

type cyclicAMI;

nFaces 27322;

startFace 2470870;

matchTolerance 0.0001

neighbourPatch INNER

transform noOrdering

}


should be



Code:
OUTTER

{

type cyclicAMI;

nFaces 27322;

startFace 2470870;

matchTolerance 0.0001;

neighbourPatch INNER;

transform noOrdering;

}


Do not know why this happens.


Thanyou very much for your reply.I add ; as you said.But the same error happens again.i have cheked boundary file,there is not any 89 line and i think brackets are ok. Do you have any idea of what the problem is.Best regard!


Sent from my iPhone using CFD Online Forum mobile app
zlw306 is offline   Reply With Quote

Old   July 9, 2017, 05:05
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Did you add ; to all cyclicAMI dictionaries or just one I have mentioned? Can you post your new boundary file (in CODE tag)?
Alisa_W likes this.
alexeym is offline   Reply With Quote

Old   July 9, 2017, 06:11
Default
  #5
New Member
 
Liwei Zhang
Join Date: Jun 2017
Posts: 10
Rep Power: 8
zlw306 is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Did you add ; to all cyclicAMI dictionaries or just one I have mentioned? Can you post your new boundary file (in CODE tag)?


Oh.i did lost a ; now it is ok.it'a stupid mistake. Thank you for your kindness and patience!!!


Sent from my iPhone using CFD Online Forum mobile app
zlw306 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
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Community Contributions 25 March 6, 2017 10:03
[swak4Foam] Problem installing swak_2.x for OpenFoam-2.4.0 towanda OpenFOAM Community Contributions 6 September 5, 2015 21:03
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 12:41
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 05:18
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 07:05.