CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

FoamToVTK and MayaVi

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2008, 09:20
Default i tried adding liftDrag utilit
  #41
Senior Member
 
mayank gupta
Join Date: Mar 2009
Posts: 110
Rep Power: 17
mgz1985 is on a distinguished road
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 ~/
mgz1985 is offline   Reply With Quote

Old   July 30, 2008, 09:36
Default Hi Mayank, I do not know ye
  #42
Senior Member
 
Alexandre Pereira
Join Date: Mar 2009
Posts: 155
Rep Power: 17
alexandrepereira is on a distinguished road
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 is offline   Reply With Quote

Old   July 30, 2008, 09:42
Default Hi Again... Do u realy need
  #43
Senior Member
 
Alexandre Pereira
Join Date: Mar 2009
Posts: 155
Rep Power: 17
alexandrepereira is on a distinguished road
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
alexandrepereira is offline   Reply With Quote

Old   July 30, 2008, 10:02
Default yeah i need it as i have to ve
  #44
Senior Member
 
mayank gupta
Join Date: Mar 2009
Posts: 110
Rep Power: 17
mgz1985 is on a distinguished road
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 is offline   Reply With Quote

Old   July 30, 2008, 11:43
Default hi i m decent in C++, so ho
  #45
Senior Member
 
mayank gupta
Join Date: Mar 2009
Posts: 110
Rep Power: 17
mgz1985 is on a distinguished road
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
mgz1985 is offline   Reply With Quote

Old   July 30, 2008, 17:53
Default Hi U do not have to rewrite
  #46
Senior Member
 
Alexandre Pereira
Join Date: Mar 2009
Posts: 155
Rep Power: 17
alexandrepereira is on a distinguished road
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
alexandrepereira is offline   Reply With Quote

Old   July 31, 2008, 06:42
Default hi all, Please can sum1 run
  #47
Senior Member
 
mayank gupta
Join Date: Mar 2009
Posts: 110
Rep Power: 17
mgz1985 is on a distinguished road
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 is offline   Reply With Quote

Old   July 31, 2008, 06:44
Default yeah even after changing the e
  #48
Senior Member
 
mayank gupta
Join Date: Mar 2009
Posts: 110
Rep Power: 17
mgz1985 is on a distinguished road
yeah even after changing the edge to 7 8 in polyLine. i still get the error of skewness.

can sum1 help
mgz1985 is offline   Reply With Quote

Old   August 5, 2008, 06:24
Default hi all, i tried converting da
  #49
Member
 
davey david
Join Date: Mar 2009
Posts: 54
Rep Power: 17
suredross is on a distinguished road
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.
suredross is offline   Reply With Quote

Old   August 5, 2008, 09:36
Default Try renaming "physicalProperti
  #50
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
7islands is on a distinguished road
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.

Takuya
7islands is offline   Reply With Quote

Old   August 5, 2008, 10:55
Default hi Takuya, thanks for the hel
  #51
Member
 
davey david
Join Date: Mar 2009
Posts: 54
Rep Power: 17
suredross is on a distinguished road
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
suredross is offline   Reply With Quote

Old   August 5, 2008, 11:23
Default Ah since foamToFieldView9 is c
  #52
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
7islands is on a distinguished road
Ah since foamToFieldView9 is crashing after displaying "time = 0" it's likely in the 0 subdirectory, probably with a whitespace in its filename.

T
7islands is offline   Reply With Quote

Old   August 5, 2008, 12:01
Default well,i have checked the 0 subd
  #53
Member
 
davey david
Join Date: Mar 2009
Posts: 54
Rep Power: 17
suredross is on a distinguished road
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 is offline   Reply With Quote

Old   August 5, 2008, 12:04
Default here is the 0 subdirectory,i c
  #54
Member
 
davey david
Join Date: Mar 2009
Posts: 54
Rep Power: 17
suredross is on a distinguished road
here is the 0 subdirectory,i cant seem to find the problem:
/attach{0}
suredross is offline   Reply With Quote

Old   August 5, 2008, 12:05
Default sorry.here we go http://www.
  #55
Member
 
davey david
Join Date: Mar 2009
Posts: 54
Rep Power: 17
suredross is on a distinguished road
sorry.here we go
0.tar.gz
suredross is offline   Reply With Quote

Old   August 5, 2008, 12:13
Default So... 1. What is the output o
  #56
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
7islands is on a distinguished road
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
7islands is offline   Reply With Quote

Old   August 6, 2008, 06:03
Default when i run the find command,no
  #57
Member
 
davey david
Join Date: Mar 2009
Posts: 54
Rep Power: 17
suredross is on a distinguished road
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 is offline   Reply With Quote

Old   August 11, 2008, 05:15
Default hi Takuya, i have seen the pr
  #58
Member
 
davey david
Join Date: Mar 2009
Posts: 54
Rep Power: 17
suredross is on a distinguished road
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
suredross 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
Problem with channeloodles and foamToVTK farbfilm OpenFOAM Running, Solving & CFD 0 October 31, 2008 06:28
[OpenFOAM] FoamToVTK problem oevermann ParaView 6 July 11, 2006 16:10
[OpenFOAM] FoamToVTK error with OF 13 melanie ParaView 1 May 22, 2006 05:40
what is Mayavi and what is vtk ztdep Main CFD Forum 1 July 14, 2005 12:08
Mayavi A.S. Main CFD Forum 1 July 12, 2005 15:07


All times are GMT -4. The time now is 08:44.