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

FoamToVTK for cases with two meshes

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 31, 2007, 07:35
Default Thanks Mattijs, I post the pro
  #1
New Member
 
María
Join Date: Mar 2009
Location: Zaragoza, Spain
Posts: 12
Rep Power: 17
maría is on a distinguished road
Thanks Mattijs, I post the problem here.

I have ran a case with two meshes, which are located in:
-case/constant/region1/polyMesh and
-case/constant/region2/polyMesh

I tried to postprocess the results using foamToVTK:

- foamToVTK . <casename> -mesh region1

Then the following ERROR apears:

<<
Create mesh for time = constant

--> FOAM FATAL ERROR : Cannot find file "points" in directory "constant/polyMesh"

From function Time::findInstance(const word& dir, const word& name) in file db/Time/findInstance.C at line 133.

FOAM exiting

>>

The point, is that the file "points" exist but in "constant/region1/polyMesh" and"constant/region2/polyMesh".

I'm using OpenFOAM 1.4.

I would appreciate any idea to solve the problem


Thanks in advance.
María.
maría is offline   Reply With Quote

Old   July 31, 2007, 10:24
Default Bit of a regression bug. In po
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Bit of a regression bug. In postProcessing/dataConversion/foamToVTK/foamToVTK.C

replace

# include "createMesh.H"

with

Info<< "Create mesh for time = "
<< runTime.timeName() << nl << endl;

fvMesh mesh
(
IOobject
(
meshName,
runTime.timeName(),
runTime,
IOobject::MUST_READ
)
);


and recompile (wclean; wmake)
mattijs is offline   Reply With Quote

Old   September 7, 2007, 07:48
Default Hi! Thanks Mattijs. We have
  #3
New Member
 
María
Join Date: Mar 2009
Location: Zaragoza, Spain
Posts: 12
Rep Power: 17
maría is on a distinguished road
Hi!

Thanks Mattijs. We have changed what you recommend me with some modifications. Now it works.

We replaced:

# include "createMesh.H"

with:

Info<<"Create mesh for time="<< runTime.timeName()<<nl<<endl;
fvMesh mesh
(
IOobject
(
meshName,
meshDir,
//runTime.timeName(),
runTime,
IOobject::MUST_READ
)
);

Where meshDir is as follows:

word meshDir = runTime.timeName();
if (args.options().found("mesh"))
{
meshName = args.options()["mesh"];
fvPath = fvPath/meshName;
meshDir.append("/");
meshDir.append(meshName);
}


Thanks!
María
maría is offline   Reply With Quote

Old   September 19, 2007, 03:25
Default Hi Mattijs Just as new user
  #4
New Member
 
Armin Hosseinian
Join Date: Mar 2009
Location: Perth, Western Australia, Australia
Posts: 17
Rep Power: 17
armin_h is on a distinguished road
Hi Mattijs

Just as new user of OpenFoam, would you please let me know, where should i go to find the
postProcessing/dataConversion/foamToVTK/foamToVTK.C ?
and provide changes?

I have the same problem as:
-> FOAM FATAL ERROR : Cannot find file "points" in directory "constant/polyMesh"

From function Time::findInstance(const word& dir, const word& name) in file db/Time/findInstance.C at line 133.

FOAM exiting

I read your suggestion to solve this problem and i would please to ask you about that matter.

Many Thanks
armin_h is offline   Reply With Quote

Old   September 19, 2007, 04:39
Default >where should i go to find
  #5
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
>where should i go to find

cd $WM_PROJECT_INST_DIR
find . -name foamToVTK.C

Or
http://foam.sourceforge.net/doc/Guides-a4/UserGuide.pdf section 3.6

This problem is fixed in 1.4.1.
mattijs is offline   Reply With Quote

Old   October 29, 2007, 13:41
Default Dear Mattijs Appreciat abou
  #6
New Member
 
Armin Hosseinian
Join Date: Mar 2009
Location: Perth, Western Australia, Australia
Posts: 17
Rep Power: 17
armin_h is on a distinguished road
Dear Mattijs

Appreciat about your answer.

sorry for delay to send a feedback of your command .

Many Thanks
Armin
armin_h is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
FoamToVTK and MayaVi alexandrepereira OpenFOAM Post-Processing 57 August 11, 2008 05:15
[OpenFOAM] FoamToVTK Animation with Paraview 3 podallaire ParaView 5 October 9, 2007 08:26
FoamToVTK output names hartinger OpenFOAM Post-Processing 2 March 29, 2007 07:49
[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


All times are GMT -4. The time now is 02:40.