|
[Sponsors] |
![]() |
![]() |
#21 |
Member
Frederic Collonval
Join Date: Apr 2009
Location: Technische Universitaet Munich - Lehrstuhl fuer Thermodynamik
Posts: 53
Rep Power: 17 ![]() |
Hello everybody,
I updated the tool to average value in an homogeneous direction in order to remove this strange parameter nPoints. For that the class "midPointSet" is used instead of "uniform" that implies that only one value by cell in the homogeneous direction will be used to compute the average. I haven't unfortunately so much time to test it. So feel free to do so and send your feed back please. Best regards, Frédéric |
|
![]() |
![]() |
![]() |
![]() |
#22 |
New Member
zakk
Join Date: Jun 2009
Posts: 10
Rep Power: 17 ![]() |
I am trying to use the script sampledAveragePlane. I m receiving that error while in compiling. Can somebody figure out the reason?
Thank you g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/tufan/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude -I/home/tufan/OpenFOAM/OpenFOAM-1.6/src/meshTools/lnInclude -I/home/tufan/OpenFOAM/OpenFOAM-1.6/src/sampling/lnInclude -I/home/tufan/OpenFOAM/OpenFOAM-1.6/src/surfMesh/lnInclude -I/home/tufan/OpenFOAM/OpenFOAM-1.6/src/triSurface/lnInclude -I/home/tufan/OpenFOAM/OpenFOAM-1.6/src/lagrangian/basic/lnInclude -IlnInclude -I. -I/home/tufan/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/tufan/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPOpt/sampledAveragePlane.o -L/home/tufan/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt \ -lfiniteVolume -lmeshTools -lsampling -lsurfMesh -ltriSurface -llagrangian -lOpenFOAM -liberty -ldl -lm -o /home/tufan/OpenFOAM/tufan-1.6/applications/bin/linux64GccDPOpt/sampledAveragePlane /usr/lib/../lib64/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' collect2: ld returned 1 exit status make: *** [/home/tufan/OpenFOAM/tufan-1.6/applications/bin/linux64GccDPOpt/sampledAveragePlane] Error 1 |
|
![]() |
![]() |
![]() |
![]() |
#23 | |
Member
Frederic Collonval
Join Date: Apr 2009
Location: Technische Universitaet Munich - Lehrstuhl fuer Thermodynamik
Posts: 53
Rep Power: 17 ![]() |
Hello Tufan
Quote:
As mentioned in the README file the best is to copy the source files in the directory $FOAM_SRC/sampling/sampledSurface. However if you don't have the right to do so, you can copy the Make folder $FOAM_SRC/sampling/Make. Then change the "options" and "file" files to compile the new function in a library (cf. paragraph 3.2. p.71 User's Guide) Best regards, Frédéric |
||
![]() |
![]() |
![]() |
![]() |
#24 | |
New Member
zakk
Join Date: Jun 2009
Posts: 10
Rep Power: 17 ![]() |
Hi Fabian,
How did you handle it in Tecplot. I am using the version 360 -2009 Thank you Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#25 | |
New Member
zakk
Join Date: Jun 2009
Posts: 10
Rep Power: 17 ![]() |
Hi Frédéric,
I have just figured out that after I sent my query. Thank you for explanation. I tried the utility in Of 1.6 with structured mesh . It is working well. But my is different. Flow around the square and trying to get spanwise ( z direction) avarages. The mesh is unstructured in X-Y plane as it is seen in figure. But it is extruded in Z direction so it is structured in Z direction ( layer by layer) Finally the script is not working in this case. what is your opinion? Is it necessary to modify it? Is it possible to make it run for this kind of mesh? Thank you Zakk Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#26 |
Member
Kim Yusik
Join Date: Dec 2009
Posts: 39
Rep Power: 16 ![]() |
Dear Frédéric
Is the reason that you changed 'uniform' to 'midPoint' set because the profile generated from your previous version has some small structure on the profile? (because I always have some small strucutre on profile using your fuction) If this is the reason, I think this is really good fuction. I use a lot of your (previous) code, I appreicate your work. For the latest version of your code, it seems that this fuction averages in all values in homogeneous direction. So it takes quiet a time to average comparing to lats version. (in my case it doesn't work) So I thinks it is much useful, if there is 'sampledAverageSet' to average at only one line for the big simulation. If you have any plane for making this function, it will be grateful and hopely it can be shared. Thanks again for your work. |
|
![]() |
![]() |
![]() |
![]() |
#27 | |
Member
Frederic Collonval
Join Date: Apr 2009
Location: Technische Universitaet Munich - Lehrstuhl fuer Thermodynamik
Posts: 53
Rep Power: 17 ![]() |
Quote:
Sorry for this amazingly late answer. But actually i don't know why is not working on the unstructured mesh. The main reason for it is that ignores how the interpolation process is down in OpenFOAM neither how the intersection between the plane and the mesh is defined. I apologize to not be more helpful on this case. Frederic |
||
![]() |
![]() |
![]() |
![]() |
#28 | |
Member
Frederic Collonval
Join Date: Apr 2009
Location: Technische Universitaet Munich - Lehrstuhl fuer Thermodynamik
Posts: 53
Rep Power: 17 ![]() |
Quote:
Dear Kim, The "advantage" of midPoint is that no additional values that the one stored at the centre cell is used to compute the spatial average - hopefully remove some troubles caused by the values on the boundaries. For the performance of the new version, I would have expected a improvement as no more interpolation is needed. But your case seems to prove the opposite. To extract only one line, I publish with this post a tool I develop to do it. But it isn't really user friendly. But it could be a starting point. It could be surely improve as it was one of my first working piece of code for OF ![]() Regards, Frédéric |
||
![]() |
![]() |
![]() |
![]() |
#29 |
Member
Kim Yusik
Join Date: Dec 2009
Posts: 39
Rep Power: 16 ![]() |
Thanks, FredericI'll check and if there is anything I can improve, then I'll do it and post it.
Thanks again |
|
![]() |
![]() |
![]() |
![]() |
#30 |
Member
N. A.
Join Date: May 2010
Posts: 64
Rep Power: 16 ![]() |
Hello Tufan and others,
I am getting an error compiling a solver in my directory. I was able to compile these solvers earlier before our cluster got crashed. After re-installation of the system, I was able to run the cases, but recetly found that I am not able to comple or recompile the solvers. I get following error for a modified version of coalChemistryFoam (OF 1.6 version). I saw in your post that you also recieved the "ld returned 1 exit status". -lfiniteVolume -lmeshTools -lcompressibleRASModels -lcompressibleLESModels -llagrangian -llagrangianIntermediate -L/home/NA/OpenFOAM/NA-1.6/lib/linux64GccDPOpt -lmycoalCombustion -lspecie -lbasicThermophysicalModels -lliquids -lliquidMixture -lsolids -lsolidMixture -lthermophysicalFunctions -lreactionThermophysicalModels -lchemistryModel -lradiation -lODE -lOpenFOAM -liberty -ldl -lm -o /home/NA/OpenFOAM/NA-1.6/applications/bin/linux64GccDPOpt/gasificationFoam /usr/bin/ld: cannot find -liberty collect2: ld returned 1 exit status Can you please let me know what did you do in order to over come this error. If you have anything else in above error that I should try, please let me know. THanks, Nir |
|
![]() |
![]() |
![]() |
![]() |
#31 |
Senior Member
Kathrin Kissling
Join Date: Mar 2009
Location: Besigheim, Germany
Posts: 134
Rep Power: 17 ![]() |
Dear Nir,
you are missing a linux package called binutils-dev or similar. You need to install it and then the -liberty problem should be resolved. Maybe it got lost due to the cluster crash. Best Kathrin |
|
![]() |
![]() |
![]() |
![]() |
#32 |
Senior Member
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 341
Rep Power: 28 ![]() ![]() |
Hello,
has anyone ported sampledAveragePlane to OF 2.x? Or has anyone an alternative for calculation the average of a field over one dimension? |
|
![]() |
![]() |
![]() |
![]() |
#33 |
Member
Frederic Collonval
Join Date: Apr 2009
Location: Technische Universitaet Munich - Lehrstuhl fuer Thermodynamik
Posts: 53
Rep Power: 17 ![]() |
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); Code:
meshSearch searchEngine(mesh());
__________________
Frederic Collonval Technische Universität München Thermodynamics Dpt. Last edited by fcollonv; July 28, 2012 at 05:17. Reason: Bug fix for OF 2.1 |
|
![]() |
![]() |
![]() |
![]() |
#34 |
Senior Member
|
Hallo Friedrich,
I am trying to compile the utility and getting this error. I am using opneFOam 2.1.x on openSuse 11.2. I would really appreciate if you could help me. The link below shows the log file from wmake: https://dl-web.dropbox.com/get/log1?w=44d90c3e Regards, Awais |
|
![]() |
![]() |
![]() |
![]() |
#35 | |
Member
Frederic Collonval
Join Date: Apr 2009
Location: Technische Universitaet Munich - Lehrstuhl fuer Thermodynamik
Posts: 53
Rep Power: 17 ![]() |
Good evening Awais,
The bugfix for version 2.1.x is mentioned on the previous post. Quote:
Frederic
__________________
Frederic Collonval Technische Universität München Thermodynamics Dpt. |
||
![]() |
![]() |
![]() |
![]() |
#36 |
Senior Member
|
Thanks for your reply Friedrich.
But I have actually changed that and I am getting the error after changing that line. Regards, Awais |
|
![]() |
![]() |
![]() |
![]() |
#37 |
Member
Frederic Collonval
Join Date: Apr 2009
Location: Technische Universitaet Munich - Lehrstuhl fuer Thermodynamik
Posts: 53
Rep Power: 17 ![]() |
Dear Awais,
I'm sorry but the bug in the log you gave me is clearly the one fixed: Code:
sampledAveragePlane/sampledAveragePlaneTemplates.C:62: error: no matching function for call to ‘Foam::meshSearch::meshSearch(const Foam::polyMesh&, bool)’ If you still have an error, post it. Some tips to read an compilation error: Extract the line(s) containing "error" it will help to know which file(s) and line(s) are bringing troubles. If the error is of type "no matching function for call to", the following lines will provide the valid function interface(s) that will help debugging. Cheers, Frederic
__________________
Frederic Collonval Technische Universität München Thermodynamics Dpt. |
|
![]() |
![]() |
![]() |
![]() |
#38 |
Senior Member
|
Thanks for reply again Fredrich,
I am sure I am doing something else wrong. I will try again and let you know. Regards, Awais |
|
![]() |
![]() |
![]() |
![]() |
#39 | ||
Senior Member
|
Hi Again Fredrich,
I am trying to compute average on a plane in z-dir. My case is that of an external flow over a cylinder. My sampleDict looks like: Quote:
Quote:
Regards, Awais |
|||
![]() |
![]() |
![]() |
![]() |
#40 |
Senior Member
|
Anybody?
Any information? |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Averages in an homogeneous direction | luiz | OpenFOAM Post-Processing | 7 | March 12, 2023 09:00 |
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 18:23 |
ASM/Homogeneous | Patrice Jaumouillie | CFX | 1 | September 17, 2001 04:19 |