|
[Sponsors] |
[swak4Foam] Swak4Foam-groovybc- face's vertices |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 30, 2018, 10:22 |
Swak4Foam-groovybc- face's vertices
|
#1 |
New Member
Ignacio Sarmiento
Join Date: Jul 2018
Posts: 8
Rep Power: 7 |
Hi, I don't want to extend too much, my doubt is:
when I use pts(), I got the position of all the vertices of the patch, and if I use pos() I got the cell's position, I need the height of the face or the cell, I was thinking about pow(area(),0.5) o pow(vol(),1/3), but that's not too exact if the mesh is uneven, I would like to approximate it like max(facepts().z)-min(facepts().z), but I don't know how to acced to the position of the face's vertices, is it possible? when I read the incomplete reference I understand it is possible to use pts() in diferent parsers, but I don't understand how to do it, any help? Edit: Solved~ I used hv=(max(toPoint(pos()).z)-min(toPoint(pos()).z)) I don't know why when I tried to use fpos() or face() I got error: Field not found thanks anyway~ Last edited by IgnacioSarmientoINH; July 31, 2018 at 10:53. |
|
Tags |
bounadry condition, groovy, groovybc, swak, swak4foam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Decomposing meshes | Tobi | OpenFOAM Pre-Processing | 22 | February 24, 2023 09:23 |
[snappyHexMesh] Add Mesh Layers doesnt work on the whole surface | Kryo | OpenFOAM Meshing & Mesh Conversion | 13 | February 17, 2022 07:34 |
[snappyHexMesh] No layers in a small gap | bobburnquist | OpenFOAM Meshing & Mesh Conversion | 6 | August 26, 2015 09:38 |
DecomposePar unequal number of shared faces | maka | OpenFOAM Pre-Processing | 6 | August 12, 2010 09:01 |
Unaligned accesses on IA64 | andre | OpenFOAM | 5 | June 23, 2008 10:37 |