|
[Sponsors] |
Measure the surface of the faces of a triangulated cutting plane |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 17, 2016, 11:07 |
Measure the surface of the faces of a triangulated cutting plane
|
#1 |
New Member
Matteo Cerminara
Join Date: Feb 2012
Posts: 15
Rep Power: 14 |
Dear Foamers,
I am using the cuttingPlane class to evaluate integrals over a slice of the three-dimensional domain. I need to use cuttingPlane itself, not function objects, because I have to take the slice only on a subset of the whole domain. My problem is how to measure the surface of the portion of plane inside a prescribed cell. To be more clear, given the cell indexes of the domain subset "subSetCells", and a field to be integrated "U", this is the code I use: Code:
\\ plane base point and vector point pt(0,0,1); dir (0,0,1); plane pln(pt, dir); \\ cutting plane triangulated (true), over a mesh subset cuttingPlane cutPln(pln, mesh, true, subSetCells); labelList cutLabels = cutPln.cutCells(); \\ loop over all the cut faces scalar US(0); scalar S(0); forAll(cutLabels, labelI) { scalar ui = U[cutLabels[labelI]]; scalar Si = ??????? // this should be the surface of the triangulated plane US += ui*Si; S += Si; } US /= S; Kind regards, Matteo |
|
May 12, 2017, 16:10 |
I have similar problem
|
#2 |
Member
Ashish Kumar
Join Date: Jun 2015
Posts: 33
Rep Power: 11 |
I want to calculate the area of the plane of intersection in a grid block.
For example, if blockMesh is used then I want to find out the area of the plane of intersection with a cube. |
|
August 20, 2018, 09:08 |
|
#3 |
New Member
Join Date: Sep 2010
Posts: 11
Rep Power: 16 |
Hi Have you found the solution to your question?
Regards, Gary |
|
August 20, 2018, 10:51 |
|
#4 |
Member
Ashish Kumar
Join Date: Jun 2015
Posts: 33
Rep Power: 11 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Foam::error::PrintStack | almir | OpenFOAM Running, Solving & CFD | 92 | May 21, 2024 08:56 |
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops | avinashjagdale | OpenFOAM Meshing & Mesh Conversion | 53 | March 8, 2019 10:42 |
Cluster ID's not contiguous in compute-nodes domain. ??? | Shogan | FLUENT | 1 | May 28, 2014 16:03 |
Unaligned accesses on IA64 | andre | OpenFOAM | 5 | June 23, 2008 11:37 |
CFX4.3 -build analysis form | Chie Min | CFX | 5 | July 13, 2001 00:19 |