CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Homogeneous Average

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

Like Tree6Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   November 22, 2012, 11:22
Default
  #41
Member
 
Leonardo Honfi Camilo
Join Date: Mar 2009
Location: Delft, Zuid Holland, The Netherlands
Posts: 48
Rep Power: 8
lhcamilo is on a distinguished road
I remember getting an error like that and it was gone after I renumbered the Mesh.

If that does not work, then I would recommend you double check your sampleDict settings.

gl
lhcamilo is offline   Reply With Quote

Old   November 22, 2012, 11:26
Default
  #42
Senior Member
 
Awais Ali
Join Date: Feb 2010
Location: Germany
Posts: 125
Rep Power: 8
owayz is on a distinguished road
Send a message via MSN to owayz
I guess renumbering the mesh would mean I will have to generate it again with different block topology, since I am using blockMesh.
Well that will be a problem for me since the simulation is very long and I already have the results.
Anways thanks for your reply.
Regards,
Awais
owayz is offline   Reply With Quote

Old   June 20, 2014, 20:14
Default
  #43
New Member
 
Manjura Maula Md. Nayamatullah
Join Date: May 2013
Posts: 21
Rep Power: 4
mmmn036 is on a distinguished road
Hello Frederic,

I am using OpenFoam 2.2.2. I couldn't compile the sampleAvergarePlane utility as you instructed in the README file. Do i need to do something to complie in this version of OpenFoam?

I would appreciate your feedback.

Thanks MMMN
mmmn036 is offline   Reply With Quote

Old   June 21, 2014, 06:55
Default
  #44
Member
 
Leonardo Honfi Camilo
Join Date: Mar 2009
Location: Delft, Zuid Holland, The Netherlands
Posts: 48
Rep Power: 8
lhcamilo is on a distinguished road
Having used sampleAvergarePlane, I understand that it averages fields in a single direction and projects them into a plane in vtk format.

I have been wondering if simply using mapFields, from a 3D grid into a 2D grid in the same computational domain would not achieve the same result (nx,ny,nz) -> (nx,ny,1).
lhcamilo is offline   Reply With Quote

Old   July 21, 2015, 17:46
Default
  #45
Senior Member
 
Syavash
Join Date: Apr 2010
Location: Tehran, Karaj
Posts: 216
Rep Power: 8
syavash is on a distinguished road
Quote:
Originally Posted by fcollonv View Post
Hello Gerhard,



The attached version compiled on 2.0.x but I didn't try it. If you use it please send me a feedback.

Thanks to Gerhard, a bug fix for the version 2.1 was found:

in sampledAveragePlaneTemplates.C, replace the line 62:
Code:
meshSearch searchEngine(mesh(), true);
by
Code:
meshSearch searchEngine(mesh());
Frederic
Dear Frederic,

I have encountered the following error when compiling using wmake libso:

Code:
sampledSurface/sampledAveragePlane/sampledAveragePlane.C: In constructor ‘Foam::sampledAveragePlane::sampledAveragePlane(const Foam::word&, const Foam::polyMesh&, const Foam::dictionary&)’:
sampledSurface/sampledAveragePlane/sampledAveragePlane.C:110:39: error: no matching function for call to ‘Foam::coordinateSystem::coordinateSystem(const Foam::dictionary&, const Foam::polyMesh&)’
         coordinateSystem cs(dict, mesh);
                                       ^
sampledSurface/sampledAveragePlane/sampledAveragePlane.C:110:39: note: candidates are:
In file included from /home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude/coordinateSystems.H:60:0,
                 from lnInclude/sampledSurface.H:66,
                 from sampledSurface/sampledAveragePlane/sampledAveragePlane.H:50,
                 from sampledSurface/sampledAveragePlane/sampledAveragePlane.C:27:
/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude/coordinateSystem.H:185:9: note: Foam::coordinateSystem::coordinateSystem(Foam::Istream&)
         coordinateSystem(Istream&);
         ^
/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude/coordinateSystem.H:185:9: note:   candidate expects 1 argument, 2 provided
/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude/coordinateSystem.H:181:9: note: Foam::coordinateSystem::coordinateSystem(const Foam::objectRegistry&, const Foam::dictionary&)
         coordinateSystem(const objectRegistry&, const dictionary&);
         ^
/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude/coordinateSystem.H:181:9: note:   no known conversion for argument 1 from ‘const Foam::dictionary’ to ‘const Foam::objectRegistry&’
/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude/coordinateSystem.H:177:9: note: Foam::coordinateSystem::coordinateSystem(const Foam::dictionary&)
         coordinateSystem(const dictionary&);
         ^
/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude/coordinateSystem.H:177:9: note:   candidate expects 1 argument, 2 provided
/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude/coordinateSystem.H:174:9: note: Foam::coordinateSystem::coordinateSystem(const Foam::word&, const Foam::dictionary&)
         coordinateSystem(const word& name, const dictionary&);
         ^
/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude/coordinateSystem.H:174:9: note:   no known conversion for argument 1 from ‘const Foam::dictionary’ to ‘const Foam::word&’
/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude/coordinateSystem.H:165:9: note: Foam::coordinateSystem::coordinateSystem(const Foam::word&, const point&, const vector&, const vector&)
         coordinateSystem
         ^
/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude/coordinateSystem.H:165:9: note:   candidate expects 4 arguments, 2 provided
/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude/coordinateSystem.H:157:9: note: Foam::coordinateSystem::coordinateSystem(const Foam::word&, const point&, const Foam::coordinateRotation&)
         coordinateSystem
         ^
/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude/coordinateSystem.H:157:9: note:   candidate expects 3 arguments, 2 provided
/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude/coordinateSystem.H:150:9: note: Foam::coordinateSystem::coordinateSystem(const Foam::word&, const Foam::coordinateSystem&)
         coordinateSystem
         ^
/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude/coordinateSystem.H:150:9: note:   no known conversion for argument 1 from ‘const Foam::dictionary’ to ‘const Foam::word&’
/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude/coordinateSystem.H:147:9: note: Foam::coordinateSystem::coordinateSystem()
         coordinateSystem();
         ^
/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude/coordinateSystem.H:147:9: note:   candidate expects 0 arguments, 2 provided
/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude/coordinateSystem.H:86:7: note: Foam::coordinateSystem::coordinateSystem(const Foam::coordinateSystem&)
 class coordinateSystem
       ^
/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude/coordinateSystem.H:86:7: note:   candidate expects 1 argument, 2 provided
make: *** [Make/linux64GccDPOpt/sampledAveragePlane.o] Error 1
I have proceeded as the steps in the Read me file suggested, but I do not know how to resolve the error/

Thanks,

Syavash
syavash 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
Averages in an homogeneous direction luiz OpenFOAM Post-Processing 5 May 12, 2008 07:51
RANS from time average -- How about space average? TT Main CFD Forum 1 April 11, 2006 14:38
ISOTROPIC HOMOGENEOUS TURBULENCE Valdemir Main CFD Forum 2 September 1, 2003 23:04
Complicated Homogeneous Shear DNS ff_fan Main CFD Forum 0 December 9, 2002 19:23
ASM/Homogeneous Patrice Jaumouillie CFX 1 September 17, 2001 04:19


All times are GMT -4. The time now is 00:51.