CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Calculating volume of 3D object from its co-ordinates

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 16, 2013, 14:22
Default Calculating volume of 3D object from its co-ordinates
  #1
New Member
 
pkumar
Join Date: Jun 2010
Posts: 7
Rep Power: 16
purushotam85 is on a distinguished road
Dear Friends,

I am working on geometric reconstruction method for volume of fluid method. It is a 3D code. For this i need to evaluate the volume created by intersection of a cell (cube or cuboid) and a plane (may not be aligned with cell faces). I can calculate all the points of the geometry created by the intersection and store in (x,y,z) array but I do not know how to evaluate the volume of the entity.

It would be great help if you can suggest me of any existing idea or literature.

Sincerely,
Purushotam
purushotam85 is offline   Reply With Quote

Old   April 16, 2013, 19:02
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by purushotam85 View Post
Dear Friends,

I am working on geometric reconstruction method for volume of fluid method. It is a 3D code. For this i need to evaluate the volume created by intersection of a cell (cube or cuboid) and a plane (may not be aligned with cell faces). I can calculate all the points of the geometry created by the intersection and store in (x,y,z) array but I do not know how to evaluate the volume of the entity.

It would be great help if you can suggest me of any existing idea or literature.

Sincerely,
Purushotam
if you can subdivide your object in tethraedron (Lagrangian simplex) then you can compute volume from the four-node obiect by means of a simple formula you find in books on Finite Element.
FMDenaro is online now   Reply With Quote

Old   April 16, 2013, 21:29
Default
  #3
Senior Member
 
ztdep's Avatar
 
p ding
Join Date: Mar 2009
Posts: 427
Rep Power: 19
ztdep is on a distinguished road
Send a message via Yahoo to ztdep Send a message via Skype™ to ztdep
The volume of any volume in3D can be calculated with Gauss theorem.

int(divergence(xi))dV=int(xc*Sx)dS=sigma (xc*Sx)

that means the volume can be calcualted as the sum of (face center x coordinate multiply the surface vector x component)
hope this help you.
ztdep is offline   Reply With Quote

Old   April 18, 2013, 08:25
Default
  #4
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,195
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Once you have all the points of the surface you can triangulate it and use the following (already discussed by someone above):

http://www.public.iastate.edu/~zjw/p...1999-AIAAJ.pdf

In general, however, you should check some VOF literature to know if there are some specific issues to consider when applying this with VOF.
sbaffini is offline   Reply With Quote

Old   April 18, 2013, 09:14
Default
  #5
New Member
 
tita
Join Date: Apr 2013
Posts: 27
Rep Power: 13
ok___ko is on a distinguished road
hi, do you know how to creat a geometry and could change the length in different conditions.
ok___ko is offline   Reply With Quote

Old   April 18, 2013, 12:34
Default
  #6
Senior Member
 
Ahmed
Join Date: Mar 2009
Location: NY
Posts: 251
Rep Power: 18
Ahmed is on a distinguished road
Guys
It is much more simpler
It is the scaler tripple product of your linear algebra text book
Good Luck
Ahmed is offline   Reply With Quote

Reply

Tags
intersection, unstructured mesh, volume fraction


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 Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
engineFoam with layers - pressure problems when adding layers mturcios777 OpenFOAM Running, Solving & CFD 23 January 4, 2023 22:56
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
[ICEM] Negative volume error in hybrid mesh siw ANSYS Meshing & Geometry 4 September 3, 2014 06:25
[ICEM] Volume orientation MGF ANSYS Meshing & Geometry 2 September 19, 2012 12:55
blockMesh error ... balkrishna OpenFOAM Pre-Processing 0 August 17, 2010 03:39


All times are GMT -4. The time now is 17:36.