|
[Sponsors] |
July 14, 2010, 12:45 |
Update version
|
#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 |
|
September 6, 2010, 11:50 |
|
#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 |
|
September 9, 2010, 05:22 |
|
#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 |
||
September 10, 2010, 11:40 |
|
#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:
|
||
September 10, 2010, 13:38 |
|
#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:
|
||
October 11, 2010, 14:41 |
|
#26 |
Member
Kim Yusik
Join Date: Dec 2009
Posts: 39
Rep Power: 17 |
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. |
|
October 18, 2010, 16:22 |
|
#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 |
||
October 18, 2010, 16:32 |
Performance of the tool
|
#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 |
||
October 25, 2010, 06:36 |
|
#29 |
Member
Kim Yusik
Join Date: Dec 2009
Posts: 39
Rep Power: 17 |
Thanks, FredericI'll check and if there is anything I can improve, then I'll do it and post it.
Thanks again |
|
November 1, 2010, 10:35 |
Error compiling
|
#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 |
|
November 2, 2010, 03:56 |
liberty
|
#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 |
|
July 25, 2012, 08:39 |
sampledAveragePlane
|
#32 |
Senior Member
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
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? |
|
July 27, 2012, 06:25 |
sampledAveragePlane for OF 2.0.x
|
#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 06:17. Reason: Bug fix for OF 2.1 |
|
October 22, 2012, 13:04 |
|
#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 |
|
October 22, 2012, 15:12 |
|
#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. |
||
October 22, 2012, 17:08 |
|
#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 |
|
October 23, 2012, 04:20 |
|
#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. |
|
October 23, 2012, 20:18 |
|
#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 |
|
October 29, 2012, 11:44 |
|
#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 |
|||
November 3, 2012, 12:54 |
|
#40 |
Senior Member
|
Anybody?
Any information? |
|
|
|
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 |