|
[Sponsors] |
March 20, 2005, 10:24 |
Does OpenFOAM has the function
|
#1 |
New Member
Kristaps Ermanis
Join Date: Mar 2009
Posts: 1
Rep Power: 0 |
Does OpenFOAM has the functionality to calculate the center of mass for a complex geometry? If yes, how to do that? If no, is it possible to implement it, using the libraries of OpenFOAM?
|
|
March 20, 2005, 10:35 |
Try:
vector c = sum(mesh.V(
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
Try:
vector c = sum(mesh.V()*mesh.C().internalField())/sum(mesh.V()); You will, of course, need a mesh for your geometry. Enjoy, Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
March 8, 2015, 05:59 |
how to use this code???
|
#3 |
Member
Muhammad Usman
Join Date: Feb 2014
Posts: 91
Rep Power: 0 |
can You guide me how to calculate centre of poressure???? can you tell me how to use it as i am new in openfoam vector c = sum(mesh.V()*mesh.C().internalField())/sum(mesh.V());
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
center of mass for naca airfoil | frederic Felten | Main CFD Forum | 4 | November 15, 2016 12:24 |
How to get the cellcell center to center distance dx dy dz | dbxmcf | OpenFOAM Running, Solving & CFD | 2 | August 8, 2008 05:37 |
Calculating mass flow rate | cfd novice | Main CFD Forum | 7 | April 21, 2008 07:38 |
Calculating mass flow rate | cfd novice | CFX | 2 | April 5, 2008 07:26 |
Calculating mass flow rate | cfd novice | FLUENT | 1 | April 3, 2008 19:31 |