|
[Sponsors] |
August 1, 2013, 12:40 |
|
#61 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
I edited the source code.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
October 29, 2013, 06:44 |
|
#62 |
New Member
Danesh S
Join Date: Jul 2013
Location: Bochum, Germany
Posts: 27
Rep Power: 13 |
Hi,
nice utility you got there! I just compiled it, but actually I want to use it for the exact opposite purpose. I want to create a doubleGraded mesh for wall-bounded flow: .... . . . . . . . .... Fine at the walls and coarse in the middle. Am I right, that blockMeshDG does not support that? Since it is urgent I hope for help. Thanks in advance! Cheers, Danesh |
|
October 29, 2013, 06:55 |
|
#63 |
New Member
Danesh S
Join Date: Jul 2013
Location: Bochum, Germany
Posts: 27
Rep Power: 13 |
Mama always told me, think before you speak. I apologise for not doing that.
Of course my problem will be solved if I use a value between 0 and -1. So I go from simpleGrading (1 0.15 1) to simpleGrading(1 -(1/0.15) 1). Works perfectly. Great utility!!!! Thanks for saving me! |
|
January 30, 2014, 16:19 |
|
#64 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
when I want to compile blockMeshDG this error occurs.whats the cause in permissions?I tried with sudo -s too with same result.
Code:
ehsan@Ehsan:/media/Education/Useful's/blockmeshdg$ chmod +x Allwmake ehsan@Ehsan:/media/Education/Useful's/blockmeshdg$ find . -exec touch '{}' \; ehsan@Ehsan:/media/Education/Useful's/blockmeshdg$ ./Allwmake bash: ./Allwmake: Permission denied
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
January 30, 2014, 18:39 |
|
#65 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Ehsan,
If the partition mounted at "/media/Education" is in NTFS, it's natural that using chmod will not work, because NTFS is not compatible with POSIX file permissions. You can try using one of these commands: Code:
sh Allwmake bash Allwmake Code:
Useful's Bruno |
|
January 30, 2014, 20:04 |
|
#66 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
thanks,now I used the folder in Linux partition on desktop.but another error in compile occurred like this(last lines):
Code:
/opt/openfoam221/src/OpenFOAM/lnInclude/face.H:267:26: error: ISO C++ forbids declaration of ‘p’ with no type [-fpermissive] /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:279:19: error: ‘point’ does not name a type /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:279:26: error: ISO C++ forbids declaration of ‘p’ with no type [-fpermissive] /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:288:19: error: ‘point’ does not name a type /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:288:26: error: ISO C++ forbids declaration of ‘p’ with no type [-fpermissive] /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:289:19: error: ‘vector’ does not name a type /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:289:27: error: ISO C++ forbids declaration of ‘n’ with no type [-fpermissive] /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:226:34: error: ‘vector’ has not been declared In file included from /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:417:0, from /opt/openfoam221/src/OpenFOAM/lnInclude/faceList.H:34, from /opt/openfoam221/src/dynamicMesh/lnInclude/polyMeshModifier.H:45, from /opt/openfoam221/src/dynamicMesh/lnInclude/polyTopoChanger.H:40, from /opt/openfoam221/src/dynamicMesh/lnInclude/attachPolyTopoChanger.H:49, from blockMeshApp.C:61: /opt/openfoam221/src/OpenFOAM/lnInclude/faceI.H: In member function ‘Foam::pointField Foam::face::points(const pointField&) const’: /opt/openfoam221/src/OpenFOAM/lnInclude/faceI.H:87:5: error: request for member ‘size’ in ‘p’, which is of non-class type ‘Foam::pointField {aka int}’ /opt/openfoam221/src/OpenFOAM/lnInclude/faceI.H:89:12: error: invalid types ‘Foam::pointField {aka int}[Foam::label {aka int}]’ for array subscript /opt/openfoam221/src/OpenFOAM/lnInclude/faceI.H:89:40: error: invalid types ‘const pointField {aka const int}[const int]’ for array subscript /opt/openfoam221/src/OpenFOAM/lnInclude/faceI.H: In member function ‘Foam::scalar Foam::face::mag(const pointField&) const’: /opt/openfoam221/src/OpenFOAM/lnInclude/faceI.H:99:32: error: ‘normal’ was not declared in this scope In file included from /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:420:0, from /opt/openfoam221/src/OpenFOAM/lnInclude/faceList.H:34, from /opt/openfoam221/src/dynamicMesh/lnInclude/polyMeshModifier.H:45, from /opt/openfoam221/src/dynamicMesh/lnInclude/polyTopoChanger.H:40, from /opt/openfoam221/src/dynamicMesh/lnInclude/attachPolyTopoChanger.H:49, from blockMeshApp.C:61: /opt/openfoam221/src/OpenFOAM/lnInclude/faceTemplates.C: In member function ‘Type Foam::face::average(const pointField&, const Foam::Field<Type>&) const’: /opt/openfoam221/src/OpenFOAM/lnInclude/faceTemplates.C:73:5: error: ‘point’ was not declared in this scope /opt/openfoam221/src/OpenFOAM/lnInclude/faceTemplates.C:73:11: error: expected ‘;’ before ‘centrePoint’ /opt/openfoam221/src/OpenFOAM/lnInclude/faceTemplates.C:78:9: error: ‘centrePoint’ was not declared in this scope /opt/openfoam221/src/OpenFOAM/lnInclude/faceTemplates.C:78:49: error: invalid types ‘const pointField {aka const int}[const int]’ for array subscript /opt/openfoam221/src/OpenFOAM/lnInclude/faceTemplates.C:82:5: error: ‘centrePoint’ was not declared in this scope /opt/openfoam221/src/OpenFOAM/lnInclude/faceTemplates.C:101:39: error: invalid types ‘const pointField {aka const int}[const int]’ for array subscript /opt/openfoam221/src/OpenFOAM/lnInclude/faceTemplates.C:102:55: error: invalid types ‘const pointField {aka const int}[const int]’ for array subscript In file included from /opt/openfoam221/src/OpenFOAM/lnInclude/cellList.H:35:0, from /opt/openfoam221/src/dynamicMesh/lnInclude/polyMeshModifier.H:46, from /opt/openfoam221/src/dynamicMesh/lnInclude/polyTopoChanger.H:40, from /opt/openfoam221/src/dynamicMesh/lnInclude/attachPolyTopoChanger.H:49, from blockMeshApp.C:61: /opt/openfoam221/src/OpenFOAM/lnInclude/cell.H: At global scope: /opt/openfoam221/src/OpenFOAM/lnInclude/cell.H:125:9: error: ‘point’ does not name a type In file included from /opt/openfoam221/src/OpenFOAM/lnInclude/primitivePatch.H:35:0, from /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H:43, from /opt/openfoam221/src/OpenFOAM/lnInclude/emptyPolyPatch.H:38, from blockMeshApp.C:62: /opt/openfoam221/src/OpenFOAM/lnInclude/PrimitivePatch.H:86:21: error: expected type-specifier before ‘point’ /opt/openfoam221/src/OpenFOAM/lnInclude/PrimitivePatch.H:86:21: error: expected ‘>’ before ‘point’ In file included from /opt/openfoam221/src/OpenFOAM/lnInclude/PrimitivePatch.C:599:0, from /opt/openfoam221/src/OpenFOAM/lnInclude/PrimitivePatch.H:476, from /opt/openfoam221/src/OpenFOAM/lnInclude/primitivePatch.H:35, from /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H:43, from /opt/openfoam221/src/OpenFOAM/lnInclude/emptyPolyPatch.H:38, from blockMeshApp.C:62: /opt/openfoam221/src/OpenFOAM/lnInclude/PrimitivePatchProjectPoints.C: In member function ‘Foam::List<Foam::objectHit> Foam::PrimitivePatch<Face, FaceList, PointField, PointType>::projectFaceCentres(const ToPatch&, const Foam::Field<Type>&, Foam::intersection::algorithm, Foam::intersection::direction) const’: /opt/openfoam221/src/OpenFOAM/lnInclude/PrimitivePatchProjectPoints.C:358:15: error: ‘point’ does not name a type /opt/openfoam221/src/OpenFOAM/lnInclude/PrimitivePatchProjectPoints.C:361:15: error: ‘vector’ does not name a type /opt/openfoam221/src/OpenFOAM/lnInclude/PrimitivePatchProjectPoints.C:390:25: error: ‘curFaceCentre’ was not declared in this scope /opt/openfoam221/src/OpenFOAM/lnInclude/PrimitivePatchProjectPoints.C:391:25: error: ‘curProjectionDir’ was not declared in this scope /opt/openfoam221/src/OpenFOAM/lnInclude/PrimitivePatchProjectPoints.C:477:25: error: ‘curFaceCentre’ was not declared in this scope /opt/openfoam221/src/OpenFOAM/lnInclude/PrimitivePatchProjectPoints.C:478:25: error: ‘curProjectionDir’ was not declared in this scope In file included from /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H:43:0, from /opt/openfoam221/src/OpenFOAM/lnInclude/emptyPolyPatch.H:38, from blockMeshApp.C:62: /opt/openfoam221/src/OpenFOAM/lnInclude/primitivePatch.H: At global scope: /opt/openfoam221/src/OpenFOAM/lnInclude/primitivePatch.H:44:60: error: template argument 4 is invalid /opt/openfoam221/src/OpenFOAM/lnInclude/primitivePatch.H:45:23: error: invalid type in declaration before ‘;’ token In file included from /opt/openfoam221/src/OpenFOAM/lnInclude/emptyPolyPatch.H:38:0, from blockMeshApp.C:62: /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H:71:1: error: expected class-name before ‘{’ token /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H:330:32: error: invalid use of ‘::’ /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H:330:32: error: expected ‘;’ at end of member declaration /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H:330:55: error: ISO C++ forbids declaration of ‘faceCentres’ with no type [-fpermissive] /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H:333:32: error: invalid use of ‘::’ /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H:333:32: error: expected ‘;’ at end of member declaration /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H:333:53: error: ISO C++ forbids declaration of ‘faceAreas’ with no type [-fpermissive] /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H: In member function ‘const typename Foam::List<T>::subList Foam::polyPatch::patchSlice(const Foam::UList<T>&) const’: /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H:312:55: error: ‘const class Foam::polyPatch’ has no member named ‘size’ /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H: In member function ‘const typename Foam::Field<Type>::subField Foam::polyPatch::patchSlice(const Foam::Field<Type>&) const’: /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H:319:57: error: ‘const class Foam::polyPatch’ has no member named ‘size’ In file included from /opt/openfoam221/src/dynamicMesh/lnInclude/slidingInterface.H:56:0, from blockMeshApp.C:70: /opt/openfoam221/src/OpenFOAM/lnInclude/primitiveFacePatch.H: At global scope: /opt/openfoam221/src/OpenFOAM/lnInclude/primitiveFacePatch.H:44:57: error: template argument 4 is invalid /opt/openfoam221/src/OpenFOAM/lnInclude/primitiveFacePatch.H:45:27: error: invalid type in declaration before ‘;’ token blockMeshApp.C: In function ‘int main(int, char**)’: blockMeshApp.C:101:56: error: incomplete type ‘Foam::polyMesh’ used in nested name specifier blockMeshApp.C:104:34: error: incomplete type ‘Foam::polyMesh’ used in nested name specifier blockMeshApp.C:111:23: error: incomplete type ‘Foam::polyMesh’ used in nested name specifier blockMeshApp.C:165:5: error: ‘blockMesh’ has not been declared blockMeshApp.C:168:5: error: ‘blockMesh’ was not declared in this scope blockMeshApp.C:168:15: error: expected ‘;’ before ‘blocks’ blockMeshApp.C:182:13: error: ‘blocks’ was not declared in this scope blockMeshApp.C:194:36: error: ‘blocks’ was not declared in this scope blockMeshApp.C:196:49: error: invalid use of incomplete type ‘const struct Foam::polyMesh’ /opt/openfoam221/src/OpenFOAM/lnInclude/functionObject.H:52:7: error: forward declaration of ‘const struct Foam::polyMesh’ blockMeshApp.C:198:13: error: request for member ‘size’ in ‘cellCentres’, which is of non-class type ‘const pointField {aka const int}’ blockMeshApp.C:201:23: error: ‘point’ does not name a type blockMeshApp.C:203:32: error: ‘cc’ was not declared in this scope blockMeshApp.C:221:13: error: variable ‘Foam::polyMesh mesh’ has initializer but incomplete type blockMeshApp.C:225:18: error: ‘blocks’ was not declared in this scope In file included from blockMeshApp.C:243:0: mergePatchPairs.H:25:17: error: invalid use of incomplete type ‘struct Foam::pointZone’ /opt/openfoam221/src/OpenFOAM/lnInclude/pointZoneMeshFwd.H:40:11: error: forward declaration of ‘struct Foam::pointZone’ mergePatchPairs.H:32:43: error: ‘const class Foam::polyPatch’ has no member named ‘size’ mergePatchPairs.H:43:42: error: ‘const class Foam::polyPatch’ has no member named ‘size’ mergePatchPairs.H:46:17: error: invalid use of incomplete type ‘struct Foam::faceZone’ /opt/openfoam221/src/OpenFOAM/lnInclude/faceZoneMeshFwd.H:40:11: error: forward declaration of ‘struct Foam::faceZone’ mergePatchPairs.H:53:42: error: ‘const class Foam::polyPatch’ has no member named ‘size’ mergePatchPairs.H:64:41: error: ‘const class Foam::polyPatch’ has no member named ‘size’ mergePatchPairs.H:67:17: error: invalid use of incomplete type ‘struct Foam::faceZone’ /opt/openfoam221/src/OpenFOAM/lnInclude/faceZoneMeshFwd.H:40:11: error: forward declaration of ‘struct Foam::faceZone’ mergePatchPairs.H:77:17: error: invalid use of incomplete type ‘struct Foam::faceZone’ /opt/openfoam221/src/OpenFOAM/lnInclude/faceZoneMeshFwd.H:40:11: error: forward declaration of ‘struct Foam::faceZone’ blockMeshApp.C:274:19: error: ‘block’ does not name a type blockMeshApp.C:275:47: error: ‘b’ was not declared in this scope blockMeshApp.C:323:13: error: invalid use of incomplete type ‘struct Foam::cellZone’ /opt/openfoam221/src/OpenFOAM/lnInclude/cellZoneMeshFwd.H:40:11: error: forward declaration of ‘struct Foam::cellZone’ blockMeshApp.C:358:65: error: ‘boundBox’ was not declared in this scope blockMeshApp.C:374:35: error: ‘const class Foam::polyPatch’ has no member named ‘size’ make: *** [Make/linux64GccDPOpt/blockMeshApp.o] Error 1
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
February 6, 2014, 10:30 |
|
#68 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
I changed the name of the folder and used wclean and wmake commands too,but it shows an error again.
Code:
nt 1 is invalid /opt/openfoam221/src/OpenFOAM/lnInclude/pointHit.H:41:37: error: invalid type in declaration before ‘;’ token In file included from /opt/openfoam221/src/OpenFOAM/lnInclude/faceList.H:34:0, from /opt/openfoam221/src/dynamicMesh/lnInclude/polyMeshModifier.H:45, from /opt/openfoam221/src/dynamicMesh/lnInclude/polyTopoChanger.H:40, from /opt/openfoam221/src/dynamicMesh/lnInclude/attachPolyTopoChanger.H:49, from blockMeshApp.C:61: /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:185:9: error: ‘point’ does not name a type /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:195:9: error: ‘vector’ does not name a type /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:226:19: error: ‘point’ does not name a type /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:226:42: error: ISO C++ forbids declaration of ‘refPt’ with no type [-fpermissive] /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:244:19: error: ‘point’ does not name a type /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:244:26: error: ISO C++ forbids declaration of ‘p’ with no type [-fpermissive] /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:245:19: error: ‘vector’ does not name a type /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:245:27: error: ISO C++ forbids declaration of ‘n’ with no type [-fpermissive] /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:256:19: error: ‘point’ does not name a type /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:256:26: error: ISO C++ forbids declaration of ‘p’ with no type [-fpermissive] /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:257:19: error: ‘vector’ does not name a type /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:257:27: error: ISO C++ forbids declaration of ‘q’ with no type [-fpermissive] /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:258:19: error: ‘point’ does not name a type /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:258:26: error: ISO C++ forbids declaration of ‘ctr’ with no type [-fpermissive] /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:267:19: error: ‘point’ does not name a type /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:267:26: error: ISO C++ forbids declaration of ‘p’ with no type [-fpermissive] /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:279:19: error: ‘point’ does not name a type /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:279:26: error: ISO C++ forbids declaration of ‘p’ with no type [-fpermissive] /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:288:19: error: ‘point’ does not name a type /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:288:26: error: ISO C++ forbids declaration of ‘p’ with no type [-fpermissive] /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:289:19: error: ‘vector’ does not name a type /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:289:27: error: ISO C++ forbids declaration of ‘n’ with no type [-fpermissive] /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:226:34: error: ‘vector’ has not been declared In file included from /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:417:0, from /opt/openfoam221/src/OpenFOAM/lnInclude/faceList.H:34, from /opt/openfoam221/src/dynamicMesh/lnInclude/polyMeshModifier.H:45, from /opt/openfoam221/src/dynamicMesh/lnInclude/polyTopoChanger.H:40, from /opt/openfoam221/src/dynamicMesh/lnInclude/attachPolyTopoChanger.H:49, from blockMeshApp.C:61: /opt/openfoam221/src/OpenFOAM/lnInclude/faceI.H: In member function ‘Foam::pointField Foam::face::points(const pointField&) const’: /opt/openfoam221/src/OpenFOAM/lnInclude/faceI.H:87:5: error: request for member ‘size’ in ‘p’, which is of non-class type ‘Foam::pointField {aka int}’ /opt/openfoam221/src/OpenFOAM/lnInclude/faceI.H:89:12: error: invalid types ‘Foam::pointField {aka int}[Foam::label {aka int}]’ for array subscript /opt/openfoam221/src/OpenFOAM/lnInclude/faceI.H:89:40: error: invalid types ‘const pointField {aka const int}[const int]’ for array subscript /opt/openfoam221/src/OpenFOAM/lnInclude/faceI.H: In member function ‘Foam::scalar Foam::face::mag(const pointField&) const’: /opt/openfoam221/src/OpenFOAM/lnInclude/faceI.H:99:32: error: ‘normal’ was not declared in this scope In file included from /opt/openfoam221/src/OpenFOAM/lnInclude/face.H:420:0, from /opt/openfoam221/src/OpenFOAM/lnInclude/faceList.H:34, from /opt/openfoam221/src/dynamicMesh/lnInclude/polyMeshModifier.H:45, from /opt/openfoam221/src/dynamicMesh/lnInclude/polyTopoChanger.H:40, from /opt/openfoam221/src/dynamicMesh/lnInclude/attachPolyTopoChanger.H:49, from blockMeshApp.C:61: /opt/openfoam221/src/OpenFOAM/lnInclude/faceTemplates.C: In member function ‘Type Foam::face::average(const pointField&, const Foam::Field<Type>&) const’: /opt/openfoam221/src/OpenFOAM/lnInclude/faceTemplates.C:73:5: error: ‘point’ was not declared in this scope /opt/openfoam221/src/OpenFOAM/lnInclude/faceTemplates.C:73:11: error: expected ‘;’ before ‘centrePoint’ /opt/openfoam221/src/OpenFOAM/lnInclude/faceTemplates.C:78:9: error: ‘centrePoint’ was not declared in this scope /opt/openfoam221/src/OpenFOAM/lnInclude/faceTemplates.C:78:49: error: invalid types ‘const pointField {aka const int}[const int]’ for array subscript /opt/openfoam221/src/OpenFOAM/lnInclude/faceTemplates.C:82:5: error: ‘centrePoint’ was not declared in this scope /opt/openfoam221/src/OpenFOAM/lnInclude/faceTemplates.C:101:39: error: invalid types ‘const pointField {aka const int}[const int]’ for array subscript /opt/openfoam221/src/OpenFOAM/lnInclude/faceTemplates.C:102:55: error: invalid types ‘const pointField {aka const int}[const int]’ for array subscript In file included from /opt/openfoam221/src/OpenFOAM/lnInclude/cellList.H:35:0, from /opt/openfoam221/src/dynamicMesh/lnInclude/polyMeshModifier.H:46, from /opt/openfoam221/src/dynamicMesh/lnInclude/polyTopoChanger.H:40, from /opt/openfoam221/src/dynamicMesh/lnInclude/attachPolyTopoChanger.H:49, from blockMeshApp.C:61: /opt/openfoam221/src/OpenFOAM/lnInclude/cell.H: At global scope: /opt/openfoam221/src/OpenFOAM/lnInclude/cell.H:125:9: error: ‘point’ does not name a type In file included from /opt/openfoam221/src/OpenFOAM/lnInclude/primitivePatch.H:35:0, from /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H:43, from /opt/openfoam221/src/OpenFOAM/lnInclude/emptyPolyPatch.H:38, from blockMeshApp.C:62: /opt/openfoam221/src/OpenFOAM/lnInclude/PrimitivePatch.H:86:21: error: expected type-specifier before ‘point’ /opt/openfoam221/src/OpenFOAM/lnInclude/PrimitivePatch.H:86:21: error: expected ‘>’ before ‘point’ In file included from /opt/openfoam221/src/OpenFOAM/lnInclude/PrimitivePatch.C:599:0, from /opt/openfoam221/src/OpenFOAM/lnInclude/PrimitivePatch.H:476, from /opt/openfoam221/src/OpenFOAM/lnInclude/primitivePatch.H:35, from /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H:43, from /opt/openfoam221/src/OpenFOAM/lnInclude/emptyPolyPatch.H:38, from blockMeshApp.C:62: /opt/openfoam221/src/OpenFOAM/lnInclude/PrimitivePatchProjectPoints.C: In member function ‘Foam::List<Foam::objectHit> Foam::PrimitivePatch<Face, FaceList, PointField, PointType>::projectFaceCentres(const ToPatch&, const Foam::Field<Type>&, Foam::intersection::algorithm, Foam::intersection::direction) const’: /opt/openfoam221/src/OpenFOAM/lnInclude/PrimitivePatchProjectPoints.C:358:15: error: ‘point’ does not name a type /opt/openfoam221/src/OpenFOAM/lnInclude/PrimitivePatchProjectPoints.C:361:15: error: ‘vector’ does not name a type /opt/openfoam221/src/OpenFOAM/lnInclude/PrimitivePatchProjectPoints.C:390:25: error: ‘curFaceCentre’ was not declared in this scope /opt/openfoam221/src/OpenFOAM/lnInclude/PrimitivePatchProjectPoints.C:391:25: error: ‘curProjectionDir’ was not declared in this scope /opt/openfoam221/src/OpenFOAM/lnInclude/PrimitivePatchProjectPoints.C:477:25: error: ‘curFaceCentre’ was not declared in this scope /opt/openfoam221/src/OpenFOAM/lnInclude/PrimitivePatchProjectPoints.C:478:25: error: ‘curProjectionDir’ was not declared in this scope In file included from /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H:43:0, from /opt/openfoam221/src/OpenFOAM/lnInclude/emptyPolyPatch.H:38, from blockMeshApp.C:62: /opt/openfoam221/src/OpenFOAM/lnInclude/primitivePatch.H: At global scope: /opt/openfoam221/src/OpenFOAM/lnInclude/primitivePatch.H:44:60: error: template argument 4 is invalid /opt/openfoam221/src/OpenFOAM/lnInclude/primitivePatch.H:45:23: error: invalid type in declaration before ‘;’ token In file included from /opt/openfoam221/src/OpenFOAM/lnInclude/emptyPolyPatch.H:38:0, from blockMeshApp.C:62: /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H:71:1: error: expected class-name before ‘{’ token /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H:330:32: error: invalid use of ‘::’ /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H:330:32: error: expected ‘;’ at end of member declaration /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H:330:55: error: ISO C++ forbids declaration of ‘faceCentres’ with no type [-fpermissive] /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H:333:32: error: invalid use of ‘::’ /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H:333:32: error: expected ‘;’ at end of member declaration /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H:333:53: error: ISO C++ forbids declaration of ‘faceAreas’ with no type [-fpermissive] /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H: In member function ‘const typename Foam::List<T>::subList Foam::polyPatch::patchSlice(const Foam::UList<T>&) const’: /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H:312:55: error: ‘const class Foam::polyPatch’ has no member named ‘size’ /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H: In member function ‘const typename Foam::Field<Type>::subField Foam::polyPatch::patchSlice(const Foam::Field<Type>&) const’: /opt/openfoam221/src/OpenFOAM/lnInclude/polyPatch.H:319:57: error: ‘const class Foam::polyPatch’ has no member named ‘size’ In file included from /opt/openfoam221/src/dynamicMesh/lnInclude/slidingInterface.H:56:0, from blockMeshApp.C:70: /opt/openfoam221/src/OpenFOAM/lnInclude/primitiveFacePatch.H: At global scope: /opt/openfoam221/src/OpenFOAM/lnInclude/primitiveFacePatch.H:44:57: error: template argument 4 is invalid /opt/openfoam221/src/OpenFOAM/lnInclude/primitiveFacePatch.H:45:27: error: invalid type in declaration before ‘;’ token blockMeshApp.C: In function ‘int main(int, char**)’: blockMeshApp.C:101:56: error: incomplete type ‘Foam::polyMesh’ used in nested name specifier blockMeshApp.C:104:34: error: incomplete type ‘Foam::polyMesh’ used in nested name specifier blockMeshApp.C:111:23: error: incomplete type ‘Foam::polyMesh’ used in nested name specifier blockMeshApp.C:165:5: error: ‘blockMesh’ has not been declared blockMeshApp.C:168:5: error: ‘blockMesh’ was not declared in this scope blockMeshApp.C:168:15: error: expected ‘;’ before ‘blocks’ blockMeshApp.C:182:13: error: ‘blocks’ was not declared in this scope blockMeshApp.C:194:36: error: ‘blocks’ was not declared in this scope blockMeshApp.C:196:49: error: invalid use of incomplete type ‘const struct Foam::polyMesh’ /opt/openfoam221/src/OpenFOAM/lnInclude/functionObject.H:52:7: error: forward declaration of ‘const struct Foam::polyMesh’ blockMeshApp.C:198:13: error: request for member ‘size’ in ‘cellCentres’, which is of non-class type ‘const pointField {aka const int}’ blockMeshApp.C:201:23: error: ‘point’ does not name a type blockMeshApp.C:203:32: error: ‘cc’ was not declared in this scope blockMeshApp.C:221:13: error: variable ‘Foam::polyMesh mesh’ has initializer but incomplete type blockMeshApp.C:225:18: error: ‘blocks’ was not declared in this scope In file included from blockMeshApp.C:243:0: mergePatchPairs.H:25:17: error: invalid use of incomplete type ‘struct Foam::pointZone’ /opt/openfoam221/src/OpenFOAM/lnInclude/pointZoneMeshFwd.H:40:11: error: forward declaration of ‘struct Foam::pointZone’ mergePatchPairs.H:32:43: error: ‘const class Foam::polyPatch’ has no member named ‘size’ mergePatchPairs.H:43:42: error: ‘const class Foam::polyPatch’ has no member named ‘size’ mergePatchPairs.H:46:17: error: invalid use of incomplete type ‘struct Foam::faceZone’ /opt/openfoam221/src/OpenFOAM/lnInclude/faceZoneMeshFwd.H:40:11: error: forward declaration of ‘struct Foam::faceZone’ mergePatchPairs.H:53:42: error: ‘const class Foam::polyPatch’ has no member named ‘size’ mergePatchPairs.H:64:41: error: ‘const class Foam::polyPatch’ has no member named ‘size’ mergePatchPairs.H:67:17: error: invalid use of incomplete type ‘struct Foam::faceZone’ /opt/openfoam221/src/OpenFOAM/lnInclude/faceZoneMeshFwd.H:40:11: error: forward declaration of ‘struct Foam::faceZone’ mergePatchPairs.H:77:17: error: invalid use of incomplete type ‘struct Foam::faceZone’ /opt/openfoam221/src/OpenFOAM/lnInclude/faceZoneMeshFwd.H:40:11: error: forward declaration of ‘struct Foam::faceZone’ blockMeshApp.C:274:19: error: ‘block’ does not name a type blockMeshApp.C:275:47: error: ‘b’ was not declared in this scope blockMeshApp.C:323:13: error: invalid use of incomplete type ‘struct Foam::cellZone’ /opt/openfoam221/src/OpenFOAM/lnInclude/cellZoneMeshFwd.H:40:11: error: forward declaration of ‘struct Foam::cellZone’ blockMeshApp.C:358:65: error: ‘boundBox’ was not declared in this scope blockMeshApp.C:374:35: error: ‘const class Foam::polyPatch’ has no member named ‘size’ make: *** [Make/linux64GccDPOpt/blockMeshApp.o] Error 1
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
February 6, 2014, 18:14 |
|
#69 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Ehsan,
My guess is that your copy of the source code for "blockMeshDG" is somehow damaged from the previous compilation process on the other partition. I say this because I've tested just now the instructions given here: http://openfoamwiki.net/index.php/Contrib_blockMeshDG - I followed the instructions that are mentioned after this line: Code:
Which can be done directly from the command line: The only difference was that before running the commands given in the wiki, I ran these two commands: Code:
run cd .. Bruno
__________________
|
|
April 11, 2014, 05:04 |
Thumbs up!
|
#70 |
New Member
Join Date: Jun 2012
Posts: 19
Rep Power: 14 |
Just wanted to congratulate all of the contributors of this nice little addition to the OF meshing capabilities. Stress-free 1-click installation and voila', it runs perfectly. I am sure inclusion into the official release is just a matter of time. Well done again, you saved a lot of frustrating hours to many people.
|
|
April 18, 2014, 06:01 |
Two thumbs up! ;)
|
#71 |
Member
Akshay Kumar
Join Date: Aug 2010
Location: India
Posts: 84
Rep Power: 16 |
Very handy! Good work guys!
|
|
June 3, 2014, 03:56 |
DG for foam 3.1
|
#72 |
New Member
Join Date: Feb 2010
Posts: 28
Rep Power: 16 |
DoubleGrading version for foam 3.1.
Following files is changed from original blockMesh: “lineDivide.C” is similar as the “original” version, released in first post of this thread by Shui Pei. “blockDescriptorEdges.C” is taken from Daniel's post. “file” has been modified so that the this applications uses only modified files. Benefit of the “older” lineDivide is that it works with odd node numbers. Application is tested with foam 3.0 and nextRealese branch. It can be compile by running wmake in blockMeshDG directory. BR/Pekka |
|
October 19, 2014, 16:18 |
Double Grading
|
#73 |
New Member
Azimi
Join Date: Apr 2014
Posts: 7
Rep Power: 12 |
Hi all
I compiled the latest version of BlockMeshDG from this thread. I changed my blockMeshDic file to the " simpleGrading (1 -2 1)" in it. but I encounter to the FATAL error that I copied here. What's wrong with this guys? Thanks in Advance. cavid@ubuntu:~/Desktop/3d/h_test$ blockMesh /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 2.3.0-f5222ca19ce6 Exec : blockMesh Date : Oct 19 2014 Time : 21:26:01 Host : "ubuntu" PID : 15507 Case : /home/cavid/Desktop/3d/h_test nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Disallowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Creating block mesh from "/home/cavid/Desktop/3d/h_test/constant/polyMesh/blockMeshDict" Creating curved edges Creating topology blocks --> FOAM FATAL IO ERROR: wrong token type - expected Scalar, found on line 33 the punctuation token '-' file: /home/cavid/Desktop/3d/h_test/constant/polyMesh/blockMeshDict.blocks at line 33. From function operator>>(Istream&, Scalar&) in file lnInclude/Scalar.C at line 93. FOAM exiting |
|
October 20, 2014, 05:21 |
|
#74 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
You didn't run the executable you downloaded and compiled, which is blockMeshDG (see "Usage" on GoogleCode and OpenFOAM-Extend-Wiki), but the regular blockMesh without the double grading feature.
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
October 20, 2014, 11:26 |
|
#75 | |
New Member
Azimi
Join Date: Apr 2014
Posts: 7
Rep Power: 12 |
Quote:
Yeah... I thought that compiling that file may has an effect on simpleGrading to understand the "-". By the way I'm Amateur Big Thanks akidess |
||
October 20, 2014, 19:35 |
|
#76 |
Senior Member
Yuehan
Join Date: Nov 2012
Posts: 142
Rep Power: 14 |
great tool!
|
|
March 8, 2015, 17:38 |
|
#77 |
Member
Jim Carow
Join Date: Apr 2010
Location: Michigan, USA
Posts: 41
Rep Power: 16 |
Hello,
Has anyone pulled together a version of blockMeshDG which is compatible with OF 2.3.x? Running with meshes from the existing version of blockMeshDG seems to lead to crashes in solvers from OF 2.3. thanks, Jim Update: Problem was Courant number related...blockMeshDG code works with OF2.3. Last edited by carowjp; March 8, 2015 at 20:22. Reason: Update |
|
March 9, 2015, 04:49 |
|
#78 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Double grading is an official feature now:
https://github.com/OpenFOAM/OpenFOAM-dev/commit/86d7f7208ad0e8eaa60bca8fc95d7cd15088e25a
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
March 12, 2015, 15:54 |
|
#79 |
Senior Member
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 22 |
Thanks for developing such a handy tool! I think it made my life easier a few minutes ago when I found it out and installed it, now I can only cross fingers to get a good solution! :P
__________________
Web site where I present my Master's Thesis: foamingtime.wordpress.com The case I talk about in this site was solved with chtMultiRegionSimpleFoam solver and involves radiation. Some basic tutorials are also resolved step by step in the web. If you are interested in these matters, you are invited to come in! |
|
September 25, 2015, 06:40 |
|
#80 | |
Senior Member
Ehsan Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
Quote:
What version did you install?? The official version or the one developped by the users?? I am new to OF. May some one please tell me how to download and compile the official version on OF 2.3.1?? Thanks, Syavash |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
fvOptions | npatricia | OpenFOAM | 6 | May 23, 2018 06:21 |
CFD by anderson, chp 10.... supersonic flow over flat plate | varunjain89 | Main CFD Forum | 18 | May 11, 2018 08:31 |
Warning message C4133 while compiling | Arminius | Fluent UDF and Scheme Programming | 0 | October 2, 2017 12:44 |
Missing math.h header | Travis | FLUENT | 4 | January 15, 2009 12:48 |
REAL GAS UDF | brian | FLUENT | 6 | September 11, 2006 09:23 |