|
[Sponsors] |
Produce a cut plane through axisymmetric domain in OF-2.1.x from sampleDict |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 4, 2012, 05:21 |
Produce a cut plane through axisymmetric domain in OF-2.1.x from sampleDict
|
#1 |
Senior Member
|
Hi everyone!
I have been trying to get a slice through an OF-2.1.x axisymmetric region in order to be used as base to post-process streamlines afterwards with another software. I've spent two days trying to understand why the following lines were giving me an EOF error message: surfaces ( constantPlane { type plane; basePoint (0 0 0.005); normalVector (0 1 0); } ); Now, I don't get that error message by using: surfaces ( triangleCut { // Cutingplane using iso surface type cuttingPlane; planeType pointAndNormal; pointAndNormalDict { basePoint (0 0 0.005); normalVector (0 1 0); } interpolate true; } ); But, I don't get any field data on that plane!!! :-( I get results for several line sets I have also defined in sampleDict, but nothing for that plane. I know I can go into paraView, but I'm trying to reduce the number of steps in my post-processing. Could anyone bring some light on this doubt I now have, please? Thanks! |
|
October 4, 2012, 05:34 |
|
#2 |
Senior Member
|
Please, forget about me saying I wasn't getting any results. I was looking inside the sub-directory 'sets'. Without realizing there was another one, called 'surfaces', next to it.
Embarrassing!!! :-( Still, why was I getting the EOF error message? mmmm ... thanks! |
|
October 5, 2012, 08:38 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi aerospain,
If I remember correctly, EOF can happen due to at least two situations:
Best regards, Bruno
__________________
|
|
October 8, 2012, 07:59 |
|
#4 |
Senior Member
|
Thanks wyldckat,
It must be a missing keyword/attribute. I used the original example file that comes with the OF installation, so there must be something I'm missing. regards! |
|
October 8, 2012, 10:30 |
|
#5 |
New Member
Matteo Carpentieri
Join Date: Mar 2009
Posts: 28
Rep Power: 17 |
Hi Aerospain,
I don't know if it's related to your problem, but I too had issues with surface sampling. See here: http://www.cfd-online.com/Forums/ope...-sampling.html I wasn't obtaining any output files. I wasn't able to figure out what's wrong, but using object functions during the simulation instead of sample (post-processing) works OK. It might be a bug, but I'm not sure. I couldn't even make the tutorials work, so it's either my OpenFOAM installation or a bug. |
|
October 8, 2012, 11:56 |
|
#6 |
Senior Member
|
Thanks Matteo!
I will look into it. I must find some more description about it my run-time sampling plane/surface should be a cut xz-plane through y=0. cheers! |
|
October 9, 2012, 08:16 |
|
#7 |
Senior Member
|
Hi Matteo,
I've been reading about the 'sampledPatch' you mention in the thread you mentioned yesterday, but I cannot understand how to use it. I've been looking in the OF installation directory in my computer with no luck. And, forums are not being quite informative. Would you be kind enough to share some notes/thoughts with me? BTW, my interest is in generating a vertical cut plane. Regards |
|
October 9, 2012, 12:19 |
|
#8 |
New Member
Matteo Carpentieri
Join Date: Mar 2009
Posts: 28
Rep Power: 17 |
Hi aerospain,
function objects can be executed during the simulations by putting the relevant code in the controlDict file. In your case I believe the correct one to use would be cuttingPlane. Your sampleDict entry can be translated as a run-time function object in controlDict as: Code:
cuttingPlane { type surfaces; functionObjectLibs ("libsampling.so"); outputControl outputTime; surfaceFormat raw; // you can change this to "vtk" fields ( p U ); // chose the fields you need interpolationScheme cellPoint; surfaces ( constantPlane { type cuttingPlane; planeType pointAndNormal; pointAndNormalDict { basePoint (0 0 0.005); normalVector (0 1 0); } interpolate true; } ); } For further info on function objects have a look here: http://www.openfoam.com/features/run...processing.php and also the motorBike tutorial in incompressible/simpleFoam. Cheers Matteo |
|
October 9, 2012, 12:27 |
|
#9 |
Senior Member
|
Thanks Matteo,
I'll try it right away! About the link you've given me. It takes me to a page, where I've been several times, where I can see a list of "available functionality" but without examples or further links :-/ sometimes, OF guidelines drive me crazy ;-( cheers! |
|
October 10, 2012, 07:05 |
|
#10 |
Senior Member
|
Hello Matteo,
I've tried your suggestion and got cut planes at each 'writeout' instance during the simulation, this will be quite useful when I start investigating unsteady phenomena in my research. Just one comment/question, I don't get a 'clean cut' meaning that for each x-coordinate (this is a structured mesh) I don't get the same number of z-points and their values get a bit noisy in some parts of the mesh. I'm attaching a scatter plot from matlab where you can observe what I'm trying to explain. cheers! |
|
October 11, 2012, 06:06 |
|
#11 | |
New Member
Matteo Carpentieri
Join Date: Mar 2009
Posts: 28
Rep Power: 17 |
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
View with cut plane | Mudblood | FLUENT | 5 | April 4, 2020 11:17 |
[ICEM] cut plane visualization | Will Anderson | ANSYS Meshing & Geometry | 12 | August 26, 2015 15:20 |
How to use values of a plane cutting the domain for inlet conditions? | StefanG | CFX | 9 | July 3, 2012 09:05 |
[OpenFOAM] View the pressure drop contour in a cut plane 2D in a right position | zhoubinwx | ParaView | 3 | February 13, 2008 05:46 |
cut plane? | qiaomu | FLUENT | 1 | May 12, 2003 18:24 |