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

FoamToVTK and MayaVi

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 23, 2008, 16:57
Default Hi Bernhard Thanks for the
  #21
Senior Member
 
Alexandre Pereira
Join Date: Mar 2009
Posts: 155
Rep Power: 8
alexandrepereira is on a distinguished road
Hi Bernhard

Thanks for the info... :-)

NEVER used Mac in my whole life... Started with windshit... soon got tired of "The Blue screens of Death", and shifted to Linux,

RedHat, Fedora, Suse, and now Ubuntu...

Are there any interesting Mechanical Engineering apps ported to Mac...?

CAD, FEA, CFD,... generic...?

As i never heard about any, i chose linux when i ran away from smart MS Billy Gilly...

Is Mac worth what it costs...? for an Engineer...?

Alex
alexandrepereira is offline   Reply With Quote

Old   July 23, 2008, 17:26
Default yeah regarding 2D CAD Qcad is
  #22
Senior Member
 
mayank gupta
Join Date: Mar 2009
Posts: 110
Rep Power: 8
mgz1985 is on a distinguished road
yeah regarding 2D CAD Qcad is good and I am working on it. it is pretty similar to AutoCAD. With linux I tried the cmmand u r tellling to install ssh but i get an error. I can try 2moro in the office and let u know. Also, any idea y the same version is not being sourced correctly where as it was being sourced correctly before.

thanx alex

and bernard can u tell me how to add liftdrag utility in Mac openfoam-1.4
mgz1985 is offline   Reply With Quote

Old   July 24, 2008, 02:40
Default hi again alex, when i tri
  #23
Senior Member
 
mayank gupta
Join Date: Mar 2009
Posts: 110
Rep Power: 8
mgz1985 is on a distinguished road
hi again alex,


when i tried to install ssh...

i got the following error

coudl not connect to security.ubuntu.com:80
unable to feth some archives.

then i tried installing 1.5

i get the following error wheni source the environment..

bash:~/............./apps/bin/foamcleanpath:no such file or directory...
bash:~/.................../apps.paraview:no such file or directory

there r atleast 8 such lines

(as i have to switch to windows to write this email i cant copy the console.

thanx
mgz1985 is offline   Reply With Quote

Old   July 24, 2008, 10:32
Default Hi Mayank OpenFOAM 1.5 shou
  #24
Senior Member
 
Alexandre Pereira
Join Date: Mar 2009
Posts: 155
Rep Power: 8
alexandrepereira is on a distinguished road
Hi Mayank

OpenFOAM 1.5 should be installed in a folder called OpenFOAM in /root:

place OpenFOAM-1.5.General.gtgz, OpenFOAM-1.5.linuxGccDPOpt.gtgz, ThirdParty.General.gtgz,
ThirdParty.linuxGcc.gtgz in /root/OpenFOAM ( i take it you are ROOT in yr machine... )

extract all folders...

% tar xzvf OpenFOAM-1.5.General.gtgz
% tar xzvf OpenFOAM-1.5.linuxGccDPOpt.gtgz
% tar xzvf ThirdParty.General.gtgz
% tar xzvf ThirdParty.linuxGcc.gtgz
% rm *

So now you should have
/root/OpenFOAM/OpenFOAM_1.5 and
/root/OpenFOAM/ThirdParty

% cd ~

( back to root dir )

% gedit .bashrc

( edit init files od bash...)

write this at the beginning of .bashrc :

# OpenFOAM init configuration
. $HOME/OpenFOAM/OpenFOAM-1.5/.OpenFOAM-1.5/bashrc

... save and exit.

in bash, write

% . $HOME/.bashrc

set the tutorials files...

% mkdir -p $HOME/OpenFOAM/${LOGNAME}-1.5/run
% cp -r $WM_PROJECT_DIR/tutorials $HOME/OpenFOAM/${LOGNAME}-1.5/run

test it...

% cd $HOME/OpenFOAM/${LOGNAME)-1.5/run/tutorials/icoFoam
% blockMesh . cavity
% icoFoam . cavity
% foamToVTK . cavity

Open paraview independently of paraFoam, access the VTK database created in /root/OpenFOAM/root-1.5/run/tutorials/icoFoam/cavity/VTK... and have fun... :-)

This should do...

Alex
alexandrepereira is offline   Reply With Quote

Old   July 24, 2008, 10:37
Default About rsh or ssh, Search fo
  #25
Senior Member
 
Alexandre Pereira
Join Date: Mar 2009
Posts: 155
Rep Power: 8
alexandrepereira is on a distinguished road
About rsh or ssh,

Search for them in synaptic, if you have the repositories enabled... or type in a shell

% sudo -i
% <passwd>
% apt-get install ssh

or

% apt-get install rsh-client
% apt-get install rsh-server

... guess this is it...

brgds

Alex
alexandrepereira is offline   Reply With Quote

Old   July 24, 2008, 17:46
Default hi, i m getting the followi
  #26
Senior Member
 
mayank gupta
Join Date: Mar 2009
Posts: 110
Rep Power: 8
mgz1985 is on a distinguished road
hi,

i m getting the following error when i try foamToVTK for the shckTube example in sonicFoam on my macintosh in OpenFOAM-1.4.1
--> FOAM FATAL IO ERROR : wrong token type - expected Scalar found on line 27 the word 'nan'

file: /Users/mayankgupta/openfoam/mayank/run/sonicFoam/shockTube/0.001/U::internalFiel d at line 27.

From function operator>>(Istream&, Scalar&)
in file lnInclude/Scalar.C at line 85.

can some one help me with this.
mgz1985 is offline   Reply With Quote

Old   July 25, 2008, 01:42
Default tried installing with ur sugge
  #27
Senior Member
 
mayank gupta
Join Date: Mar 2009
Posts: 110
Rep Power: 8
mgz1985 is on a distinguished road
tried installing with ur suggestion. Atleast i made some progress, the blcoMesh command is executed but with the following error

Wrong number of arguments, expected 0 found 2

****i put the sourcing line at the end of .bashrc (as mentioned in the README) but u had mentioned to do at the beginning (if i have to put it there, let me know)

also, after sourcing i do not see the following lines at the beginning of the terminal

Executing:.........../.bashrc
Executing:............./apps/ensightFoam/bashrc
Executing:............../apps/paraview/bashrc

these lines are visible when i source it on my macintosh
mgz1985 is offline   Reply With Quote

Old   July 25, 2008, 03:00
Default hi again, I edit the messag
  #28
Senior Member
 
mayank gupta
Join Date: Mar 2009
Posts: 110
Rep Power: 8
mgz1985 is on a distinguished road
hi again,

I edit the message at the top and tried, it gave me the same error.

also, if i edit your line it says, no such file or directory but if i edit . $HOME/OpenFOAM/OpenFOAM-1.5/etc/bashrc
it allows me to execute blockMesh with the above error.

and yes, i have been unable to install rsh or ssh

when i try doing that, i get the error

could not connect to security.ubuntu.com:80 (91.189.88.46)
mgz1985 is offline   Reply With Quote

Old   July 25, 2008, 07:01
Default frpelikan@Techn-028:~/OpenFOAM
  #29
Senior Member
 
mayank gupta
Join Date: Mar 2009
Posts: 110
Rep Power: 8
mgz1985 is on a distinguished road
frpelikan@Techn-028:~/OpenFOAM/mayank/tutorials/icoFoam$ blockMesh . cavity
bash: /home/frpelikan/OpenFOAM/OpenFOAM-1.4/applications/bin/linuxGcc4DPOpt/blockMesh: No such file or directory
frpelikan@Techn-028:~/OpenFOAM/mayank/tutorials/icoFoam$

I get this error when i run blockMesh . cavity on OPenFOAM-1.4
mgz1985 is offline   Reply With Quote

Old   July 25, 2008, 08:17
Default Hi Mayank Seems that yr Mac
  #30
Senior Member
 
Alexandre Pereira
Join Date: Mar 2009
Posts: 155
Rep Power: 8
alexandrepereira is on a distinguished road
Hi Mayank

Seems that yr Mac installation is correct...

But to mesh a domain you should try

%blockMesh <casedir> <case>

if u are already in caseDir, do

%blockMesh . <case>

About the NaN... well, as a much respected person in the CFD world once said... :

"... NaNs are good only if you are in an Indian restaurant, not in CFD..." :-D

shockTube requires a set of carefully chosen parameters to converge... that is a more complicated issue than the one you are trying to solve now... Has to do with parameters in your fvSchemes, fvSolution and controlDict files which are in .../shockTube/system directory, requires some knowledge on the numerics of solving the Euler and Navier-Stokes equations, conditions of numeric stability and convergence...

What sonicFoam states is that in cannot progress from time step 0.001 because when it tries to read one of the scalar ( --> FOAM FATAL IO ERROR : wrong token type - expected Scalar found on line 27 the word 'nan' ) components of vector field velocity ( .../shockTube/0.001/U ) , it does not find a number (NaN, Not a Number )

so.. first things first :-)

Good sign is that your environment variables are properly set, otherwise bash wouldn't "know" what is blockMesh or sonicFoam...

About rsh or ssh...
have you enabled Ubuntu DVD as a software source ?

Do you have an active web connection in Ubuntu OS...?

...it complaints it cannot find what it is looking for...

Alex
alexandrepereira is offline   Reply With Quote

Old   July 25, 2008, 08:27
Default ...Hi again... In yr Mac in
  #31
Senior Member
 
Alexandre Pereira
Join Date: Mar 2009
Posts: 155
Rep Power: 8
alexandrepereira is on a distinguished road
...Hi again...

In yr Mac installation, you could try to solve ( mesh, solve and postprocess ) a "gentle" case like cavity in icoFoam...

Since your environment vars are properly sourced... it should be ok...

...about /root/.bashrc :

You can put the initialization of OpenFOAM variables anywhere inside that file, provided that :

1. You do not put it inside an <if> construct,
2. You respect the path to root/OpenFOAM/OpenFOAM-<version>/.OpenFOAM-<version>/bashrc, if you are root, or
/home/<who-you-are>/OpenFOAM/OpenFOAM-<version>/.OpenFOAM-<version>/bashrc, if you are a normal unprevileged user.


Alex
alexandrepereira is offline   Reply With Quote

Old   July 25, 2008, 08:36
Default thanx for your patience once a
  #32
Senior Member
 
mayank gupta
Join Date: Mar 2009
Posts: 110
Rep Power: 8
mgz1985 is on a distinguished road
thanx for your patience once again.

yeah i have an active internet connection on my linux and it is update with the latest packages. Also, ssh is installed ow and my company has removed all firewall and proxy protections for me.

With OpenFOAM-1.5 if i am able to run blockMesh . cavity command, y cant I see the environment settings at the beginning of the terminal. is it a property of the new version. And y such an error. It makes no sense as I m giving 2 arguments . & cavity after blockMesh.

coming to OpenFOAM-1.4, it is giving me an error no such directory or file where as i tracked the path and the file is there. Also my system check says my connection is now comaptible and ssh is connected

thanx.
mgz1985 is offline   Reply With Quote

Old   July 28, 2008, 02:06
Default Warning in /home/frpelikan/Ope
  #33
Senior Member
 
mayank gupta
Join Date: Mar 2009
Posts: 110
Rep Power: 8
mgz1985 is on a distinguished road
Warning in /home/frpelikan/OpenFOAM/OpenFOAM-1.5/etc/settings.sh:
Cannot find /home/frpelikan/OpenFOAM/linux/gcc-4.1.2-64 installation.
Please install this compiler version or if you wish to use the system compiler,
change the WM_COMPILER_INST setting to 'System' in this file


I have this new error while compiling OpenFOAM-1.5/. can anyone advice a newbie to sort this out.

I went to the corresponding file and did the same but when i run blockMesh . cavity, i get this error

Usage: blockMesh [-region region name] [-case dir] [-blockTopology] [-help] [-doc] [-srcDoc]


Wrong number of arguments, expected 0 found 2
and when i run it without arguments, i get this error


file: /home/frpelikan/OpenFOAM/mayank/run/tutorials/icoFoam/system/controlDict at line 0.

From function regIOobject::readStream(const word&)
in file db/regIOobject/regIOobjectRead.C at line 66.

FOAM exiting


can sum1 help please.i m a newbie to this.

thanx in advance
mgz1985 is offline   Reply With Quote

Old   July 28, 2008, 02:50
Default hi alex, WARNING: Conflict
  #34
Senior Member
 
mayank gupta
Join Date: Mar 2009
Posts: 110
Rep Power: 8
mgz1985 is on a distinguished road
hi alex,

WARNING: Conflicting installations:
OpenFOAM settings : /bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

this is an error i m getting when i run foamInstallationTest.

i have removed the error due to rsh/ssh. my ssh connection is working now. I am unable to figure this out in the settings direectory. I could not find the line where i could change the path. can u help me here. I think everything else has been fixed. I m probably getting the above error due to this fault i guess.

Please bear with me.
mgz1985 is offline   Reply With Quote

Old   July 28, 2008, 04:02
Default thanx alex for ur patience and
  #35
Senior Member
 
mayank gupta
Join Date: Mar 2009
Posts: 110
Rep Power: 8
mgz1985 is on a distinguished road
thanx alex for ur patience and advice. my istallation is ok now. And i can run some commands. I shall contact u soon when i get stuck again.

thanx again
mgz1985 is offline   Reply With Quote

Old   July 28, 2008, 09:24
Default Hi Mayank :-D Been away for
  #36
Senior Member
 
Alexandre Pereira
Join Date: Mar 2009
Posts: 155
Rep Power: 8
alexandrepereira is on a distinguished road
Hi Mayank

:-D Been away for all last weekend...

Back to the labs today...

Good to know you solved it...

Alex
alexandrepereira is offline   Reply With Quote

Old   July 30, 2008, 04:14
Default hi alex, i m confused now
  #37
Senior Member
 
mayank gupta
Join Date: Mar 2009
Posts: 110
Rep Power: 8
mgz1985 is on a distinguished road
hi alex,

i m confused now really. I made a blockMeshDict file which was giving me a good mesh today early but after one hour the same file was generating the following error

Creating blocks
#0 Foam::error::printStack(Foam:stream&) in "/home/frpelikan/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.so"
#1 Foam::sigSegv::sigSegvHandler(int) in "/home/frpelikan/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.so"
#2 ?? in "/lib/libc.so.6"
#3 Foam::block::blockPoints() in "/home/frpelikan/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/blockMes h"
#4 Foam::block::block(Foam::blockDescriptor const&) in "/home/frpelikan/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/blockMes h"
#5 Foam::blockMesh::createTopology(Foam::IOdictionary &) in "/home/frpelikan/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/blockMes h"
#6 Foam::blockMesh::blockMesh(Foam::IOdictionary&) in "/home/frpelikan/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/blockMes h"
#7 main in "/home/frpelikan/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/blockMes h"
#8 __libc_start_main in "/lib/libc.so.6"
#9 __gxx_personality_v0 in "/home/frpelikan/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/blockMes h"
Segmentation fault


whats wrong ti was working fine an hour ago. Also i m putting my blockMeshDict with it

convertToMeters 0.001;

vertices
(
(0 0 0)
(117.51 53.7 0)
(-100 100 0)
(-100 0 0)
(0 0 1)
(117.51 53.7 1)
(-100 100 1)
(-100 0 1)

);

blocks
(
hex (0 1 3 4 5 6 7) (10 10 1) simpleGrading (1 1 1)

);

edges
(
);

patches
(

wall fixedWalls
(
(0 1 2 3)
(0 1 5 4)
(0 3 7 4)
(1 2 6 5)
(2 3 7 6)
(4 5 6 7)
)
);

mergePatchPairs
(
);
mgz1985 is offline   Reply With Quote

Old   July 30, 2008, 04:21
Default thanx man i solved it. it was
  #38
Senior Member
 
mayank gupta
Join Date: Mar 2009
Posts: 110
Rep Power: 8
mgz1985 is on a distinguished road
thanx man i solved it.
it was a mistake in my code.
mgz1985 is offline   Reply With Quote

Old   July 30, 2008, 04:52
Default hi alex, I get the followin
  #39
Senior Member
 
mayank gupta
Join Date: Mar 2009
Posts: 110
Rep Power: 8
mgz1985 is on a distinguished road
hi alex,

I get the following error when i want to define n edge

Expected a '(' while reading VectorSpace<form,>, found on line 40 the doubleScalar 0.00256

file: /home/frpelikan/OpenFOAM/mayank/tutorials/icoFoam/check/constant/polyMesh/blockM eshDict::edges at line 40.

From function Istream::readBegin(const char*)
in file db/IOstreams/IOstreams/Istream.C at line 94.

i found this file and want to try the solution posted at this forum

http://www.cfd-online.com/OpenFOAM_D...es/1/3223.html but problem arises due to my limited knowledge in linux i do not know how to do it

can u guide me?
mgz1985 is offline   Reply With Quote

Old   July 30, 2008, 06:48
Default but when i m using polyLine i
  #40
Senior Member
 
mayank gupta
Join Date: Mar 2009
Posts: 110
Rep Power: 8
mgz1985 is on a distinguished road
but when i m using polyLine i dont get the error, it is kind of silly.

and although polyLine works good but i m really doubtful about the accuracy of the curvature.

kindly let me know how to debug the spline and arc error
mgz1985 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
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
FoamToVTK problem oevermann OpenFOAM Paraview & paraFoam 6 July 11, 2006 15:10
FoamToVTK error with OF 13 melanie OpenFOAM Paraview & paraFoam 1 May 22, 2006 04:40
what is Mayavi and what is vtk ztdep Main CFD Forum 1 July 14, 2005 11:08
Mayavi A.S. Main CFD Forum 1 July 12, 2005 14:07


All times are GMT -4. The time now is 20:10.