|
[Sponsors] |
June 18, 2010, 10:15 |
magSf: which surface?
|
#1 |
New Member
Join Date: Jun 2010
Posts: 14
Rep Power: 15 |
Hello!
I'd like to know how I can access/choose the area (of only one of the 6 faces) of a internal cubical finite volume (not near a patch). I know I have to use the magSf command, but I don't know which face area (or which direction) of the finite volume it gives me. Thanking you in advance, Maxime |
|
June 21, 2010, 02:27 |
|
#2 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,687
Rep Power: 40 |
Quote:
Either read the user documentation or look at the etc/cellModels to see what the face order means for any particular primitive cell shape. |
||
July 6, 2010, 16:08 |
|
#3 | |
New Member
Join Date: Jun 2010
Posts: 14
Rep Power: 15 |
Quote:
Excuse my incomprehension but is it possible to have a code example? I don't know what you mean. How can I get the face number and how do I use it to get the face surface? Someone else has the same problem (cf. http://www.cfd-online.com/Forums/ope...tml#post266026). Can you also give me an Internet address where I can find such examples (ideally on "how to use magSf() and Sf()", and not just huge lists of commands and enormous graphs like the ones on the pages you advised me to look at on a similar post I wrote) please? I'm sure it's not hard (at least it shouldn't be), but if the user documentation was more detailed/clear it would've helped everyone better. Thank you. Maxime |
||
July 7, 2010, 10:35 |
|
#4 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,687
Rep Power: 40 |
Quote:
Writing some sample code would not be difficult, but I'm unwilling to accept abuse in exchange to trying to help ... especially when you are apparently not willing to examine the existing documentation (doxygen + source code). Besides which, any sample code that I could provide would certainly not meet your exact needs anyhow and then you are back to where you started. |
||
January 10, 2011, 05:54 |
|
#5 |
Senior Member
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 22 |
I have looked through documentation and through various pieces of code that actually use magSf and I have to say that I am still uncertain how to access the values of magSf.
magSf returns a surfaceScalarField. This object has a method boundaryField() which allows to access values on each patch by boundaryField()[patchId]. Following olesen suggestion, I looked at etc/cellModels and I can clearly see cell shape definitions. The same thing seems to be described here in section 5.1.3: http://www.openfoam.com/docs/user/mesh-description.php For my purposes I am actually happy to use patch values. But out of curiosity I was wondering if you could give some additional suggestions on how to access the internal field of surface scalar field and extract the values in one direction only. I am looking at this function http://foam.sourceforge.net/doc/Doxy...ce.html#l00033 which seems to be just using magSf()[faceID]. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ICEM] surface mesh merging problem | everest | ANSYS Meshing & Geometry | 44 | April 14, 2016 06:41 |
[Gmsh] Error : Self intersecting surface mesh, computing intersections & Error : Impossible | velan | OpenFOAM Meshing & Mesh Conversion | 3 | October 22, 2015 11:05 |
[Gmsh] Problem with Gmsh | nishant_hull | OpenFOAM Meshing & Mesh Conversion | 23 | August 5, 2015 02:09 |
[Gmsh] boundaries with gmshToFoam | ouafa | OpenFOAM Meshing & Mesh Conversion | 7 | May 21, 2010 12:43 |
CFX4.3 -build analysis form | Chie Min | CFX | 5 | July 12, 2001 23:19 |