|
[Sponsors] |
something wrong when i set the boundary file. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 8, 2017, 01:34 |
something wrong when i set the boundary file.
|
#1 |
New Member
Liwei Zhang
Join Date: Jun 2017
Posts: 10
Rep Power: 9 |
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 |
|
July 8, 2017, 17:34 |
|
#2 |
Senior Member
|
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 } Code:
OUTTER { type cyclicAMI; nFaces 27322; startFace 2470870; matchTolerance 0.0001; neighbourPatch INNER; transform noOrdering; } |
|
July 9, 2017, 03:37 |
|
#3 | |
New Member
Liwei Zhang
Join Date: Jun 2017
Posts: 10
Rep Power: 9 |
Quote:
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 |
||
July 9, 2017, 06:05 |
|
#4 |
Senior Member
|
Did you add ; to all cyclicAMI dictionaries or just one I have mentioned? Can you post your new boundary file (in CODE tag)?
|
|
July 9, 2017, 07:11 |
|
#5 | |
New Member
Liwei Zhang
Join Date: Jun 2017
Posts: 10
Rep Power: 9 |
Quote:
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 |
||
|
|
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 11:03 |
[swak4Foam] Problem installing swak_2.x for OpenFoam-2.4.0 | towanda | OpenFOAM Community Contributions | 6 | September 5, 2015 22:03 |
[swak4Foam] Error bulding swak4Foam | sfigato | OpenFOAM Community Contributions | 18 | August 22, 2013 13:41 |
[swak4Foam] funkySetFields compilation error | tayo | OpenFOAM Community Contributions | 39 | December 3, 2012 06:18 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |