|
[Sponsors] | |||||
|
|
|
#1 |
|
Member
Join Date: Jun 2011
Posts: 52
Rep Power: 4 ![]() |
when I compile the makeaxialmesh in openfoam 2 I enconter bellow problem please help me to compile makeAxialMesh
Making dependency list for source file makeAxialMesh.C could not open file repatch.H for source file makeAxialMesh.C SOURCE=makeAxialMesh.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/yas/OpenFOAM/OpenFOAM-2.0.0/src/dynamicMesh/lnInclude -I/home/yas/OpenFOAM/OpenFOAM-2.0.0/src/cfdTools/lnInclude -I/home/yas/OpenFOAM/OpenFOAM-2.0.0/src/meshTools/lnInclude -IlnInclude -I. -I/home/yas/OpenFOAM/OpenFOAM-2.0.0/src/OpenFOAM/lnInclude -I/home/yas/OpenFOAM/OpenFOAM-2.0.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/makeAxialMesh.o makeAxialMesh.C: In function ‘void changeCoordinates(Foam: olyMesh&, Foam: lane, linie&, Foam::scalar, Foam::scalar, bool)’:makeAxialMesh.C:198: error: ‘mathematicalConstant’ has not been declared makeAxialMesh.C:199: error: ‘mathematicalConstant’ has not been declared makeAxialMesh.C: In function ‘void splitWedge(Foam: olyMesh&, Foam::word, Foam: lane)’:makeAxialMesh.C:255: error: invalid use of incomplete type ‘const struct Foam::SubField<Foam::Vector<double> >’ /home/yas/OpenFOAM/OpenFOAM-2.0.0/src/OpenFOAM/lnInclude/Field.H:62: error: declaration of ‘const struct Foam::SubField<Foam::Vector<double> >’ makeAxialMesh.C:257: error: invalid use of incomplete type ‘const struct Foam::SubField<Foam::Vector<double> >’ /home/yas/OpenFOAM/OpenFOAM-2.0.0/src/OpenFOAM/lnInclude/Field.H:62: error: declaration of ‘const struct Foam::SubField<Foam::Vector<double> >’ makeAxialMesh.C:258: error: invalid use of incomplete type ‘const struct Foam::SubField<Foam::Vector<double> >’ /home/yas/OpenFOAM/OpenFOAM-2.0.0/src/OpenFOAM/lnInclude/Field.H:62: error: declaration of ‘const struct Foam::SubField<Foam::Vector<double> >’ makeAxialMesh.C:261: error: invalid use of incomplete type ‘const struct Foam::SubField<Foam::Vector<double> >’ /home/yas/OpenFOAM/OpenFOAM-2.0.0/src/OpenFOAM/lnInclude/Field.H:62: error: declaration of ‘const struct Foam::SubField<Foam::Vector<double> >’ makeAxialMesh.C:262: error: no match for ‘operator[]’ in ‘fcs[faceI]’ make: *** [Make/linux64GccDPOpt/makeAxialMesh.o] Error 1 |
|
|
|
|
|
|
|
|
#2 | |
|
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,165
Rep Power: 30 ![]() ![]() |
Quote:
I won't have time to look into this for the next month (actually I have time, but there is more interesting stuff to do during vacation). For the time being I'd suggest that you use makeAxialMesh from one of your working 1.x-installations (the solver doesn't care where his mesh comes from, unless the mesh format changed). If you want to be sure that I remember porting it please add a ticket at https://sourceforge.net/apps/mantisb..._view_page.php (Section "Breeder Stuff" - MAM doesn't have its own section). Of course: if somebody beats me with porting it ... I can live with that Bernhard |
||
|
|
|
||
|
|
|
#3 | |
|
Senior Member
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 345
Rep Power: 12 ![]() |
Quote:
Code:
grep -lre 'mathematicalConstant::' . | xargs -d'\n' sed -i 's/mathematicalConstant::/constant::mathematical::/g'
__________________
Laurence R. McGlashan :: Website Last edited by l_r_mcglashan; June 20, 2011 at 19:19. |
||
|
|
|
||
|
|
|
#4 |
|
Member
Join Date: Jun 2011
Posts: 52
Rep Power: 4 ![]() |
Hi McGlashan
thanks for your explanation with your command the makeAxialMesh is compiled I want to Run flow filed about a cone and I create a 2D mesh for this geometry can you help me to convert this mesh to a axisymmetric mesh (wedge mesh) ? if It is possible Please give me your Email best regards |
|
|
|
|
|
|
|
|
#5 | |
|
New Member
Jordi Muela
Join Date: Mar 2011
Posts: 27
Rep Power: 5 ![]() |
Quote:
thanks! This worked for me! But now i'm having a problem with the function 'collapseEdges'. Code:
#0 Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam201/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #1 Foam::sigFpe::sigHandler(int) in "/opt/openfoam201/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #2 in "/lib/libc.so.6" #3 Foam::polyMesh::calcDirections() const in "/opt/openfoam201/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #4 Foam::polyMesh::polyMesh(Foam::IOobject const&) in "/opt/openfoam201/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #5 in "/opt/openfoam201/platforms/linux64GccDPOpt/bin/collapseEdges" #6 __libc_start_main in "/lib/libc.so.6" #7 in "/opt/openfoam201/platforms/linux64GccDPOpt/bin/collapseEdges" Best regards, Jordi. |
||
|
|
|
||
|
|
|
#7 | |
|
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,165
Rep Power: 30 ![]() ![]() |
Quote:
|
||
|
|
|
||
|
|
|
#8 |
|
New Member
Jordi Muela
Join Date: Mar 2011
Posts: 27
Rep Power: 5 ![]() |
Hi,
sorry for my late answer. First of all, thanks for the new version . I've tested it with the testcase, and it works perfectly, as you've said.But i'm still having the same problem with my own case. The problem starts when i do the makeAxialMesh. Before using the utility makeAxialMesh, if i do a checkMesh i'm obtaining a "Mesh OK", but if i do the checkMesh after run makeAxialMesh then i'm getting the same message error (floating point exception) that i've posted in the previous post, thus it's a problem with my geometry and the utility makeAxialMesh... I'm using makeAxialMesh utility after a snappyHexMesh and a extrudeMesh (great improvement of this tool in OF 2.0.x!), because i'm using a STL geometry but i want to solve the case in 2D axisymmetric. In OF 1.7.1 it works great... I attach an image of the mesh after the makeAxialMesh with the patch names... it's seems ok, at first view.. Thanks a lot for your time, i keep investigating. Jordi. |
|
|
|
|
|
|
|
|
#9 | |
|
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,165
Rep Power: 30 ![]() ![]() |
Quote:
What you could do to pinpoint this problem: use MAM 2.0 then do checkMesh and or collapseEdges with 1.7. If that works then something in 2.0 was reimplemented that makes this fail. In that case write a bug-report on the OpenCFD-Mantis Bernhard |
||
|
|
|
||
|
|
|
#10 |
|
New Member
Pallav Jha
Join Date: Apr 2011
Posts: 17
Rep Power: 4 ![]() |
Hi Bernhard,
I am using your makeAxialMesh utility with OF-2.0 but running into problems that I cannot resolve. <code> object blockMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // convertToMeters 0.001; vertices ( (5 505 -0.5) (0 505 -0.5) (5 500 -0.5) (0 500 -0.5) (5 0.5 -0.5) (0 0.5 -0.5) (15 500 -0.5) (15 0.5 -0.5) (5 505 0.5) (0 505 0.5) (5 500 0.5) (0 500 0.5) (5 0.5 0.5) (0 0.5 0.5) (15 500 0.5) (15 0.5 0.5) ); blocks ( hex (3 2 0 1 11 10 8 9) (20 5 1) simpleGrading (1 1 1) hex (5 4 2 3 13 12 10 11) (20 1000 1) simpleGrading (1 1 1) hex (4 7 6 2 12 15 14 10) (30 1000 1) simpleGrading (1 1 1) ); edges ( ); patches ( patch inlet ( (0 1 9 8) ) wall inletWall ( (0 2 10 8) ) patch atmosphere ( (7 4 12 15) (4 5 13 12) (2 6 14 10) (6 7 15 14) ) empty frontAndBack ( (1 0 2 3) (2 6 7 4) (3 2 4 5) (9 8 10 11) (10 14 15 12) (11 10 12 13) ) patch center ( (1 3 11 9) (3 5 13 11) ) ); mergePatchPairs ( ); // ************************************************** *********************** // <code> makeAxialMesh writes the new mesh to 0.01; however, collapseEdges 1e-8 180 gives Collapsing 0 small edges Collapsing 0 in line edges The same is for values from 1e-6 to 1e-8 Please advise me as to what I should do. Thanks and regards. |
|
|
|
|
|
|
|
|
#11 |
|
New Member
Jordi Muela
Join Date: Mar 2011
Posts: 27
Rep Power: 5 ![]() |
Hi Pallav,
Are you running OF 2.0.x? This code for the dictionary blockMeshDict that you've posted is wrote in OF 1.x.x syntax, it shouldn't work in OF 2.0.x. Best regards, Jordi. |
|
|
|
|
|
|
|
|
#12 | |
|
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,165
Rep Power: 30 ![]() ![]() |
Quote:
If that is not the problem visually check the mesh in paraview |
||
|
|
|
||
|
|
|
#13 | |
|
New Member
Pallav Jha
Join Date: Apr 2011
Posts: 17
Rep Power: 4 ![]() |
Hello Bernhard,
Thanks for your reply. Here are the steps that I took:
<code> // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create polyMesh for time = 0.01 Merging: edges with length less than 1e-08 meters edges split by a point with edges in line to within 179 degrees Collapsing 1006 small edges Morphing ... Collapsing 0 small edges Collapsing 0 in line edges Max face area:6.54291e-07 Collapse area factor:1e-09 Collapse area:6.54291e-16 Collapsing 0 small high aspect ratio faces Writing collapsed mesh to time 0.02 End <code> So, if I understand correctly, the final axisymmetric mesh is in the folder 0.02. How do I check the mesh for this time step? I get an error if I try paraFoam or paraView. Thanks a lot. Regards, Pallav Quote:
I am running OF-1.7-x on a supercomputer. I run OF-2.0.1 on my laptop. I have run the corresponding svn codes to build makeAxialMesh at both places. I transferred the case_folder from the supercomputer and ran it on my laptop. Hence, the difference in syntax in the blockMeshDict file. However, there is no problem when I run 'blockMesh'. checkMesh gives 'OK' However, I did get the same error as you when I did a checkMesh after makeAxialMesh. So, I went back to the supercomputer and did everything from scratch in OF-1.7-x Thanks and regards. |
||
|
|
|
||
|
|
|
#14 | |
|
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,165
Rep Power: 30 ![]() ![]() |
Quote:
Of course the error would be helpful. Try the following: deselect all fields before changing the time-step. Alternatively rerun all mesh-manipulation with -overwrite. That would make sure that the final mesh is in constant/polyMesh |
||
|
|
|
||
|
|
|
#15 |
|
New Member
Pallav Jha
Join Date: Apr 2011
Posts: 17
Rep Power: 4 ![]() |
Thank you Bernhard.
I was able to visually check the mesh and everything looks great. (OF-1.7) I adapted the new patches to the p_rgh, U, etc. files as per your comment about adapting fields at http://www.cfd-online.com/Forums/ope...tric-flow.html However, I run into a few errors. I guess this is not the correct thread to discuss about the same. I will post them in some other thread. Thanks once again for your help. Regards, Pallav |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| makeAxialMesh and axisymmetric flow | yassepid | OpenFOAM Mesh Utilities | 4 | April 24, 2013 20:01 |
| OpenCFD release OpenFOAM® version 2.0.0 | opencfd | OpenFOAM Announcements from ESI-OpenCFD | 1 | July 1, 2011 08:43 |
| makeAxialMesh > collapseEdges!! | billynoe | OpenFOAM | 17 | February 21, 2011 04:29 |
| makeAxialMesh issue | feijooos | OpenFOAM | 6 | August 12, 2010 04:27 |
| How to Import Gambit 2.2.16 file to Gambit 2.0.0 | solomon | FLUENT | 0 | January 4, 2007 14:49 |