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

Homogeneous Average

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

Like Tree12Likes

Reply
 
LinkBack Thread Tools Search this Thread 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: 60
Rep Power: 17
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: 128
Rep Power: 17
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, 21:14
Default
  #43
Member
 
Manjura Maula Md. Nayamatullah
Join Date: May 2013
Location: San Antonio, Texas, USA
Posts: 42
Rep Power: 12
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, 07:55
Default
  #44
Member
 
Leonardo Honfi Camilo
Join Date: Mar 2009
Location: Delft, Zuid Holland, The Netherlands
Posts: 60
Rep Power: 17
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, 18:46
Default
  #45
Senior Member
 
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 17
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

Old   August 26, 2015, 08:58
Default
  #46
New Member
 
Blaž Mikuž
Join Date: Sep 2011
Location: Ljubljana
Posts: 29
Rep Power: 14
bmikuz is on a distinguished road
Hi Frederic!

Thanks for this utility. It works fine with OpenFOAM 1.7.1, but it doesn't compile on latest versions of OpenFOAM, i.e. 2.3.0 or 2.4.0. The problem seems to be related to changed names of some functions that are called within the program... Do you have also an updated version of this utility, which works on newer versions of OpenFOAM?

Cheers,
Blaz
bmikuz is offline   Reply With Quote

Old   August 26, 2015, 11:42
Default
  #47
New Member
 
Blaž Mikuž
Join Date: Sep 2011
Location: Ljubljana
Posts: 29
Rep Power: 14
bmikuz is on a distinguished road
At first I didn't realize that this thread is so long. Now, I have tried also the version posted on July 27, 2012. It works fine with OpenFOAM 2.1.1, but it doesn't compile on OpenFOAM 2.3.0. The error seems to be related with coordSet.H file. Error is in the attachment.

Any help is appreciated.
Attached Files
File Type: txt error.txt (1.5 KB, 7 views)
bmikuz is offline   Reply With Quote

Old   March 22, 2016, 08:56
Default
  #48
Senior Member
 
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 313
Rep Power: 14
agustinvo is on a distinguished road
For those who are concerned

I have modified the proposed application here in order to be used in OpenFOAM 2.3.1, so I suposse it would work in 2.4 as well.

It gives the values in the mesh nodes, when the sample tools of surfaces gives values in the center of the cells. Do you know how to achieve that?

I share with you this modified tool.
Attached Files
File Type: gz sampling.tar.gz (12.0 KB, 54 views)
agustinvo is offline   Reply With Quote

Old   October 3, 2017, 12:42
Default
  #49
New Member
 
Bhanu
Join Date: May 2014
Posts: 10
Rep Power: 11
mugabe2204 is on a distinguished road
Dear Frederic,

In these years, Did you try to update this spanwise averaging function Object for any recent openfoam versions ? Its a very nice utility for OpenFoam.

Thanks.

Edit : Sorry for my mistake. This was for another thread
mugabe2204 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
Averages in an homogeneous direction luiz OpenFOAM Post-Processing 7 March 12, 2023 10:00
RANS from time average -- How about space average? TT Main CFD Forum 1 April 11, 2006 15:38
ISOTROPIC HOMOGENEOUS TURBULENCE Valdemir Main CFD Forum 2 September 2, 2003 00: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 05:19


All times are GMT -4. The time now is 11:06.