|
[Sponsors] |
![]() |
![]() |
#41 |
Member
Leonardo Honfi Camilo
Join Date: Mar 2009
Location: Delft, Zuid Holland, The Netherlands
Posts: 60
Rep Power: 17 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#42 |
Senior Member
|
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 |
|
![]() |
![]() |
![]() |
![]() |
#43 |
Member
Manjura Maula Md. Nayamatullah
Join Date: May 2013
Location: San Antonio, Texas, USA
Posts: 42
Rep Power: 13 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#44 |
Member
Leonardo Honfi Camilo
Join Date: Mar 2009
Location: Delft, Zuid Holland, The Netherlands
Posts: 60
Rep Power: 17 ![]() |
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). |
|
![]() |
![]() |
![]() |
![]() |
#45 | |
Senior Member
Ehsan Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 ![]() |
Quote:
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 Thanks, Syavash |
||
![]() |
![]() |
![]() |
![]() |
#46 |
New Member
Blaž Mikuž
Join Date: Sep 2011
Location: Ljubljana
Posts: 29
Rep Power: 15 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#47 |
New Member
Blaž Mikuž
Join Date: Sep 2011
Location: Ljubljana
Posts: 29
Rep Power: 15 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#48 |
Senior Member
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 314
Rep Power: 15 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#49 |
New Member
Bhanu
Join Date: May 2014
Posts: 10
Rep Power: 12 ![]() |
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 |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
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 |