# how to... calculate the volume of specified selection

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 LinkBack Thread Tools Search this Thread Display Modes
 May 21, 2013, 07:47 how to... calculate the volume of specified selection #1 Disabled   Join Date: Sep 2011 Posts: 13 Rep Power: 14 hi there, 1: sry if thread is redundant i tried looking for this in this forum and via guugle, but i couldnt find a satisfying answer to my problem, maybe also because im kind of a newbie, so any help is much wanted and greatly appreciated 2: the situation i have a case where i would like to find out the total volume of a specific field with values in a specified range, i.e. i want to know what the total volume of the selection is. a trivial example could be in multiphase flows (dambreak) to give the volume of one phase. 3: how i've been trying to solve it i basically searched for the solution using two approaches: paraview and OF utilities. since i postprocess most data via PV anyway, i tried this first, e.g making a specified selection: unfortunately the information panel only gives the bounds of the selection, if the geometry isnt cuboidal however this doesnt help. i looked in the filter section, but apart form the integrate variables filter - which doesnt seem to work or i simply cant handle it - i didnt find sth suitable. the OF utilities werent any help either, if foamCalc is able to do what i want, i dont know how to use it in that way. 4: request i can imagine that there is already a (simple) solution for that. unfortunately i dont know it and havent found a thread for it, a wiki-entry, an example that shows how it can be done, etc. can anyone help?

 May 30, 2013, 23:19 #2 Member   Thomas Boucheres Join Date: May 2013 Posts: 41 Rep Power: 12 Hi, not so direct with standard version of OpenFOAM Nevertheless you can process in two steps after the simulation finished: 1. use the topoSet utility with the cellSet/fieldToCell functionality (see source code in meshTools/sets/cellSet/fieldToCell to see how to parameter utility) 2. after that use the fieldValues utility. Take any operation and any field and apply it on the previous cellSet N.B : to use these tools after the simulation ran, you need to use the execFlowFunctionObject object.

 June 3, 2013, 08:16 #3 Disabled   Join Date: Sep 2011 Posts: 13 Rep Power: 14 hello thomas, thank you very much for your reply unfortunately i didnt mention that i am using OF 1.7.0, so the mentioned utilities are new to me..., i.e. i cant apply them because they are not implemented... and since my code-writing skills are very poor i wouldnt know how to implement this into the code nevertheless i appreciate ur answer... i imagine that you would hardly have the time and patience to guide me through making this - step by step... so no hard feelings... but online tutorials are hard to find, and if there are any, it's mostly not beginner level, so it is very difficult and time consuming to "learn" like that... ERGO, if you do have the time and patience to explain step by step, i shall follow ur guidance and do my very best to forever know the answer to my question further/different advice is also appreciated

 June 3, 2013, 08:31 #4 Member   Join Date: Nov 2012 Posts: 58 Rep Power: 13 Have you tried in ParaView the following? 1) "threshold" filter to select the appropriate cells according to your quantity of interest 2) "integrate variables" filter and click on "information" nikitin-pro likes this.

June 5, 2013, 07:12
#5
Disabled

Join Date: Sep 2011
Posts: 13
Rep Power: 14
Quote:
 Originally Posted by startingWithCFD Have you tried in ParaView the following? 1) "threshold" filter to select the appropriate cells according to your quantity of interest 2) "integrate variables" filter and click on "information"
i tried that now and it seems to work. previously i used "find Data..." + "extract selection" and that didn't work... this seems odd to me, but i shall remain content that there is an alternative solution

anyway, thx

 Tags calculate, openfoam, paraview, postprocessing, volume

 Thread Tools Search this Thread Search this Thread: Advanced Search Display Modes Linear Mode

 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 OffTrackbacks are Off Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post happysimulant ParaView 2 April 14, 2011 10:01 asaha OpenFOAM Running, Solving & CFD 25 October 21, 2009 04:34 [Commercial meshers] CuBit t42 OpenFOAM Meshing & Mesh Conversion 6 July 10, 2008 07:51 SSL FLUENT 2 January 26, 2008 11:55 x. simth FLUENT 2 April 26, 2001 15:40

All times are GMT -4. The time now is 07:05.

 Contact Us - CFD Online - Privacy Statement - Top