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

[blockMesh] blockMesh with double grading.

Register Blogs Community New Posts Updated Threads Search

Like Tree68Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 1, 2013, 11:40
Default
  #61
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
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.
immortality is offline   Reply With Quote

Old   October 29, 2013, 05:44
Default
  #62
New Member
 
Danesh S
Join Date: Jul 2013
Location: Bochum, Germany
Posts: 27
Rep Power: 12
DaSh is on a distinguished road
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
DaSh is offline   Reply With Quote

Old   October 29, 2013, 05:55
Default
  #63
New Member
 
Danesh S
Join Date: Jul 2013
Location: Bochum, Germany
Posts: 27
Rep Power: 12
DaSh is on a distinguished road
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!
wyldckat likes this.
DaSh is offline   Reply With Quote

Old   January 30, 2014, 15:19
Default
  #64
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
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.
immortality is offline   Reply With Quote

Old   January 30, 2014, 17:39
Default
  #65
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
If it still gives you problems, then the problem is due to the name of this folder:
Code:
Useful's
Best regards,
Bruno
immortality likes this.
wyldckat is offline   Reply With Quote

Old   January 30, 2014, 19:04
Default
  #66
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
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.
immortality is offline   Reply With Quote

Old   January 31, 2014, 23:56
Default
  #67
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Try running the following commands, from inside the "blockMeshDG" folder:
Code:
wclean all
wmake all
immortality likes this.
wyldckat is offline   Reply With Quote

Old   February 6, 2014, 09:30
Default
  #68
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
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.
immortality is offline   Reply With Quote

Old   February 6, 2014, 17:14
Default
  #69
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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:
And it worked without any problems. I used OpenFOAM 2.2.1 installed from Deb packages on Ubuntu 12.04 x86_64, which should be the same exact version you are using.
The only difference was that before running the commands given in the wiki, I ran these two commands:
Code:
run
cd ..
Best regards,
Bruno
immortality likes this.
__________________
wyldckat is offline   Reply With Quote

Old   April 11, 2014, 04:04
Default Thumbs up!
  #70
New Member
 
Join Date: Jun 2012
Posts: 19
Rep Power: 13
asonda is on a distinguished road
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.
asonda is offline   Reply With Quote

Old   April 18, 2014, 05:01
Default Two thumbs up! ;)
  #71
Member
 
Akshay Kumar
Join Date: Aug 2010
Location: India
Posts: 84
Rep Power: 15
Akshay is on a distinguished road
Very handy! Good work guys!
Akshay is offline   Reply With Quote

Old   June 3, 2014, 02:56
Default DG for foam 3.1
  #72
New Member
 
Join Date: Feb 2010
Posts: 28
Rep Power: 16
Pekka is on a distinguished road
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
Attached Files
File Type: gz blockMeshDG.tar.gz (5.6 KB, 56 views)
wyldckat and Blanco like this.
Pekka is offline   Reply With Quote

Old   October 19, 2014, 15:18
Default Double Grading
  #73
New Member
 
Azimi
Join Date: Apr 2014
Posts: 7
Rep Power: 12
cavida is on a distinguished road
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
cavida is offline   Reply With Quote

Old   October 20, 2014, 04:21
Default
  #74
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
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.
akidess is offline   Reply With Quote

Old   October 20, 2014, 10:26
Default
  #75
New Member
 
Azimi
Join Date: Apr 2014
Posts: 7
Rep Power: 12
cavida is on a distinguished road
Quote:
Originally Posted by akidess View Post
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.
Thanks a lot it worked!
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
cavida is offline   Reply With Quote

Old   October 20, 2014, 18:35
Default
  #76
Senior Member
 
Yuehan
Join Date: Nov 2012
Posts: 142
Rep Power: 13
wc34071209 is on a distinguished road
great tool!
wc34071209 is offline   Reply With Quote

Old   March 8, 2015, 16:38
Default
  #77
Member
 
carowjp's Avatar
 
Jim Carow
Join Date: Apr 2010
Location: Michigan, USA
Posts: 41
Rep Power: 16
carowjp is on a distinguished road
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 19:22. Reason: Update
carowjp is offline   Reply With Quote

Old   March 9, 2015, 03:49
Default
  #78
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
Double grading is an official feature now:
https://github.com/OpenFOAM/OpenFOAM-dev/commit/86d7f7208ad0e8eaa60bca8fc95d7cd15088e25a
ykanani likes this.
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Old   March 12, 2015, 14:54
Default
  #79
Senior Member
 
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 21
zfaraday will become famous soon enough
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!
zfaraday is offline   Reply With Quote

Old   September 25, 2015, 05:40
Default
  #80
Senior Member
 
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18
syavash is on a distinguished road
Quote:
Originally Posted by zfaraday View Post
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
Dear Alex,

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
syavash 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
fvOptions npatricia OpenFOAM 6 May 23, 2018 05:21
CFD by anderson, chp 10.... supersonic flow over flat plate varunjain89 Main CFD Forum 18 May 11, 2018 07:31
Warning message C4133 while compiling Arminius Fluent UDF and Scheme Programming 0 October 2, 2017 11:44
Missing math.h header Travis FLUENT 4 January 15, 2009 11:48
REAL GAS UDF brian FLUENT 6 September 11, 2006 08:23


All times are GMT -4. The time now is 01:38.