CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   FoamToVTK and MayaVi (https://www.cfd-online.com/Forums/openfoam-post-processing/61372-foamtovtk-mayavi.html)

mgz1985 July 30, 2008 08:20

i tried adding liftDrag utilit
 
i tried adding liftDrag utility box as mentioned in the download link but i m getting the following error.

as i m new to linux can u type me the xact commands

Making dependency list for source file liftDrag/liftDrag.C
could not open file incompressible/turbulenceModel/turbulenceModel.H for source file liftDrag/liftDrag.C
could not open file incompressible/LESmodel/LESmodel.H for source file liftDrag/liftDrag.C
SOURCE=liftDrag/liftDrag.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home/frpelikan/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude -I/home/frpelikan/OpenFOAM/OpenFOAM-1.5/src/transportModels -I/home/frpelikan/OpenFOAM/OpenFOAM-1.5/src/turbulenceModels -I/home/frpelikan/OpenFOAM/OpenFOAM-1.5/src/LESmodels -I/home/frpelikan/OpenFOAM/OpenFOAM-1.5/src/LESmodels/LESdeltas/lnInclude -IlnInclude -I. -I/home/frpelikan/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/home/frpelikan/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/liftDrag.o
/home/frpelikan/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/../libexec/g cc/x86_64-unknown-linux-gnu/4.3.1/cc1plus: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
make: *** [Make/linux64GccDPOpt/liftDrag.o] Error 1
Making dependency list for source file cLiftDrag/cLiftDrag.C
could not open file compressible/turbulenceModel/turbulenceModel.H for source file cLiftDrag/cLiftDrag.C
could not open file compressible/LESmodel/LESmodel.H for source file cLiftDrag/cLiftDrag.C
SOURCE=cLiftDrag/cLiftDrag.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home/frpelikan/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude -I/home/frpelikan/OpenFOAM/OpenFOAM-1.5/src/thermophysicalModels/specie/lnInclud e -I/home/frpelikan/OpenFOAM/OpenFOAM-1.5/src/thermophysicalModels/basic/lnInclude -I/home/frpelikan/OpenFOAM/OpenFOAM-1.5/src/turbulenceModels -I/home/frpelikan/OpenFOAM/OpenFOAM-1.5/src/LESmodels -I/home/frpelikan/OpenFOAM/OpenFOAM-1.5/src/LESmodels/LESdeltas/lnInclude -IlnInclude -I. -I/home/frpelikan/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/home/frpelikan/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/cLiftDrag.o
/home/frpelikan/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/../libexec/g cc/x86_64-unknown-linux-gnu/4.3.1/cc1plus: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
make: *** [Make/linux64GccDPOpt/cLiftDrag.o] Error 1
frpelikan@Techn-028:~/OpenFOAM/OpenFOAM-1.5/src/postProcessing$ cd ..
frpelikan@Techn-028:~/OpenFOAM/OpenFOAM-1.5/src$ cd ..
frpelikan@Techn-028:~/OpenFOAM/OpenFOAM-1.5$ cd applications/utilities
frpelikan@Techn-028:~/OpenFOAM/OpenFOAM-1.5/applications/utilities$ cd postProcessing/miscellaneous
frpelikan@Techn-028:~/OpenFOAM/OpenFOAM-1.5/applications/utilities/postProcessing/miscellaneous$ wmake
wmake error
'Make' directory does not exist
frpelikan@Techn-028:~/OpenFOAM/OpenFOAM-1.5/applications/utilities/postProcessing/miscellaneous$ ./Allwmake
bash: ./Allwmake: No such file or directory
frpelikan@Techn-028:~/OpenFOAM/OpenFOAM-1.5/applications/utilities/postProcessing/miscellaneous$ cd liftDrag
frpelikan@Techn-028:~/OpenFOAM/OpenFOAM-1.5/applications/utilities/postProcessing/miscellaneous/lif tDrag$ wmake
Making dependency list for source file liftDrag.C
could not open file incompressible/turbulenceModel/turbulenceModel.H for source file liftDrag.C
could not open file incompressible/LESmodel/LESmodel.H for source file liftDrag.C
could not open file compressible/turbulenceModel/turbulenceModel.H for source file liftDrag.C
could not open file compressible/LESmodel/LESmodel.H for source file liftDrag.C
SOURCE=liftDrag.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home/frpelikan/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude/ -I/home/frpelikan/OpenFOAM/OpenFOAM-1.5/src/cfdTools/general/lnInclude -I/home/frpelikan/OpenFOAM/OpenFOAM-1.5/src/thermophysicalModels/specie/lnInclud e -I/home/frpelikan/OpenFOAM/OpenFOAM-1.5/src/thermophysicalModels/basic/lnInclude -I/home/frpelikan/OpenFOAM/OpenFOAM-1.5/src/turbulenceModels -I/home/frpelikan/OpenFOAM/OpenFOAM-1.5/src/transportModels -I/home/frpelikan/OpenFOAM/OpenFOAM-1.5/src/postProcessing -I/home/frpelikan/OpenFOAM/OpenFOAM-1.5/src/LESmodels -I/home/frpelikan/OpenFOAM/OpenFOAM-1.5/src/LESmodels/LESdeltas/lnInclude -IlnInclude -I. -I/home/frpelikan/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/home/frpelikan/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/liftDrag.o
/home/frpelikan/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/../libexec/g cc/x86_64-unknown-linux-gnu/4.3.1/cc1plus: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
make: *** [Make/linux64GccDPOpt/liftDrag.o] Error 1
frpelikan@Techn-028:~/OpenFOAM/OpenFOAM-1.5/applications/utilities/postProcessing/miscellaneous/lif tDrag$ cd ~/

alexandrepereira July 30, 2008 08:36

Hi Mayank, I do not know ye
 
Hi Mayank,

I do not know yet if liftDrag compiles in OF 1.5 w/o changing some dependencies...

If u r ok in c++ should be no problem, anyway, always used it in OF-1.4.1.

About blockMesh and blockMeshDict, i never really used it... i always build my meshes with external meshers, and export them with the mesh converting utilities...

But i take it the syntax guides in OF- Userguide show how to build a blockMeshDict file... don't them ? ...

Really dunno here... never had yr problem, because never used, ( or plan to use ...) blockMesh, i always work with "kimky" 3D stuff...

Regards

Alex

alexandrepereira July 30, 2008 08:42

Hi Again... Do u realy need
 
Hi Again...

Do u realy need liftDrag in OF-1.5...?

U can use this

http://www.cfd-online.com/cgi-bin/Op...cus/discus.cgi

I guess liftDrag is obsolete in OF-1.5...

Alex

mgz1985 July 30, 2008 09:02

yeah i need it as i have to ve
 
yeah i need it as i have to verify the drag and lift coefficients for an airfoil incompressible flow.

the link u sent above is pointing me to a forum

is there any other way of finding the coefficients.

mgz1985 July 30, 2008 10:43

hi i m decent in C++, so ho
 
hi

i m decent in C++, so how do i calculate using my knwoledge of C++. Do i have to write a programme and recompile it. I am scared more of Linux.

regarding the blockMeshDict my syntax is correct for sure

besides SALOME what other softwares are available for 3d mesh in linux as openware

alexandrepereira July 30, 2008 16:53

Hi U do not have to rewrite
 
Hi

U do not have to rewrite liftDrag, and i bet it takes a bit more than just plain C++ knowlege to build a post processing CFD tool like liftDrag... :-)

just update your dependency lists, as wmake spotted it... dependencies are incorrect...

As to meshing, you have gmsh, NetGen, TetGen as openware,

For commercial software, you have Harpoon, ICEM-CFD, Gambit, Pointwise, and GridGen.

Alex

mgz1985 July 31, 2008 05:42

hi all, Please can sum1 run
 
hi all,

Please can sum1 run this mesh and tell me why do the edges 1 2 and 7 8 not coincide.

it is because of this, i m getting a failed mesh in skewness.

I have checked my vertices and points in polyLine all of them should co-incide according to my input.

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.5 |
| \ / A nd | Web: http://www.OpenFOAM.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 0.001;

vertices
(
(181 -27.39 0)
(209.26 61.17 0)
(600 0 0)
(600 500 0)
(209.26 500 0)
(181 -500 0)
(181 -27.39 1)
(209.26 61.17 1)
(600 0 1)
(600 500 1)
(209.26 500 1)
(181 -500 1)

);

blocks
(
hex (0 1 4 5 6 7 10 11) (40 1 1) simpleGrading (4 1 1)
hex (1 2 3 4 7 8 9 10) (15 1 1) simpleGrading (1 1 1)
);

edges
(
polyLine 0 1 (
(151.99 -26.69 0)
(122.49 -25.57 0)
(92.87 -23.67 0)
(63.09 -20.64 0)
(48.1 -18.59 0)
(32.99 -15.91 0)
(17.63 -11.97 0)
(9.72 -8.96 0)
(6.43 -7.24 0)
(4.73 -6.13 0)
(0 0 0)
(1.27 7.88 0)
(2.56 9.7 0)
(5.28 12.72 0)
(12.37 18.52 0)
(27.01 27.09 0)
(41.9 33.62 0)
(56.91 39 0)
(87.13 47.45 0)
(117.51 53.7 0)
(148 58.21 0)
(178.58 61.17 0)
)

polyLine 6 7(
(151.99 -26.69 1)
(122.49 -25.57 1)
(92.87 -23.67 1)
(63.09 -20.64 1)
(48.1 -18.59 1)
(32.99 -15.91 1)
(17.63 -11.97 1)
(9.72 -8.96 1)
(6.43 -7.24 1)
(4.73 -6.13 1)
(0 0 1)
(1.27 7.88 1)
(2.56 9.7 1)
(5.28 12.72 1)
(12.37 18.52 1)
(27.01 27.09 1)
(41.9 33.62 1)
(56.91 39 1)
(87.13 47.45 1)
(117.51 53.7 1)
(148 58.21 1)
(178.58 61.17 1)
)


polyLine 1 2 (
(270.92 60.74 0)
(301.38 57.75 0)
(331.64 53.76 0)
(361.75 48.94 0)
(391.73 43.47 0)
(421.6 37.5 0)
(451.39 31.24 0)
(472 26.86 0)
(481.13 24.92 0)
(510.84 18.6 0)

(516 17.34 0)
(520.2 16.62 0)
(540.56 12.32 0)
(570.25 6.15 0)

)

polyLine 8 9 (
(270.92 60.74 1)
(301.38 57.75 1)
(331.64 53.76 1)
(361.75 48.94 1)
(391.73 43.47 1)
(421.6 37.5 1)
(451.39 31.24 1)
(472 26.86 1)
(481.13 24.92 1)
(510.84 18.6 1)

(516 17.34 1)
(520.2 16.62 1)
(540.56 12.32 1)
(570.25 6.15 1)

)

polyLine 4 5 ((-100 400 0) (-100 -400 0))
polyLine 10 11 ((-100 400 1) (-100 -400 1))

);

patches
(


wall fixedWalls
(
(0 5 4 1)
(0 1 7 6)
(0 5 11 6)
(5 11 10 4)

(6 7 10 11)
(1 2 3 4)
(1 7 8 2)
(2 3 9 8)
(3 4 10 9)
(7 8 9 10)
)

);

mergePatchPairs
(
);

// ************************************************** *********************** //

Thanx

mgz1985 July 31, 2008 05:44

yeah even after changing the e
 
yeah even after changing the edge to 7 8 in polyLine. i still get the error of skewness.

can sum1 help

suredross August 5, 2008 05:24

hi all, i tried converting da
 
hi all,
i tried converting data to Fieldview for my case and came up with this error message:
/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.4.1 |
| \ / A nd | Web: http://www.openfoam.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/

Exec : foamToFieldview9 OpenFOAM/OpenFOAM-1.4.1/tutorials/junctionFoam/ rectCyo
Date : Aug 05 2008
Time : 11:18:50
Host : sm-pc16-linux.bcinet-uni-dortmund.de
PID : 11008
Root : OpenFOAM/OpenFOAM-1.4.1/tutorials/junctionFoam/
Case : rectCyo
Nprocs : 1
Create time

Create mesh for time = 0

fileName::stripInvalid() called for string physicalProperties~
Aborted
[cfd@sm-pc16-linux ~]$

anybody with an idea what the problem is?by the way the command runs on other cases of mine.

7islands August 5, 2008 08:36

Try renaming "physicalProperti
 
Try renaming "physicalProperties~" in your case directory to a name which contains only alphabets or numbers, or simply removing it.

By the way this is one of the major pitfalls my students fell into while I was teaching OpenFOAM in my course. http://www.cfd-online.com/OpenFOAM_D...part/happy.gif

Takuya

suredross August 5, 2008 09:55

hi Takuya, thanks for the hel
 
hi Takuya,
thanks for the help.the problem is i have no such file in my case directory,so i am really confused by that message.do you or anyone have any other ideas??
thanks once again

7islands August 5, 2008 10:23

Ah since foamToFieldView9 is c
 
Ah since foamToFieldView9 is crashing after displaying "time = 0" it's likely in the 0 subdirectory, probably with a whitespace in its filename.

T

suredross August 5, 2008 11:01

well,i have checked the 0 subd
 
well,i have checked the 0 subdirectory and there is no such file in there.i don't know what is amiss really.any more ideas?thanks

suredross August 5, 2008 11:04

here is the 0 subdirectory,i c
 
here is the 0 subdirectory,i cant seem to find the problem:
/attach{0}

suredross August 5, 2008 11:05

sorry.here we go http://www.
 
sorry.here we go
http://www.cfd-online.com/OpenFOAM_D...hment_icon.gif 0.tar.gz

7islands August 5, 2008 11:13

So... 1. What is the output o
 
So...
1. What is the output of "find ." in the case directory?
2. What will happen if you turn off DebugSwitches of word and fileName (open ~/OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/controlDict and modifiy the default debug levels of 2 to 0)?

T

suredross August 6, 2008 05:03

when i run the find command,no
 
when i run the find command,no such file is seen.with your second suggestion ,i am a bit lost.could you explain further?thank you.

suredross August 11, 2008 04:15

hi Takuya, i have seen the pr
 
hi Takuya,
i have seen the problem.it was a hidden file in my constant folder-guess i was looking in the wrong place!
thanks for your help.

davey


All times are GMT -4. The time now is 03:30.