|
[Sponsors] |
July 18, 2009, 08:46 |
Reading faceSet
|
#1 |
Senior Member
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20 |
Hallo again.
I'm currently playing with faceSets and how to access its information. I stole some code from splitMesh, which is reading a faceSet to split a mesh at these faces. For a very very basic understanding I tried to read an existing faceSet (named f0) and output its size. Here is the code Code:
#include "faceSet.H" #include "polyMesh.H" #include "argList.H" using namespace Foam; int main(int argc, char *argv[]) { word setName = argv[1]; Info<< "Reading faceSet from " << setName << endl; # include "setRootCase.H" # include "createMesh.H" # include "createTime.H" # include "createPolyMesh.H" faceSet facesSet(mesh, setName); Info<< "faceSet size: " << facesSet.size() << endl; } Here is the output from wmake: Code:
sega@deepblue:~/OpenFOAM/sega-1.5/applications/listFaceSet$ wmake SOURCE=listFaceSet.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home/sega/OpenFOAM/OpenFOAM-1.5/src/dynamicMesh/lnInclude -I/home/sega/OpenFOAM/OpenFOAM-1.5/src/meshTools/lnInclude -IlnInclude -I. -I/home/sega/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/home/sega/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/listFaceSet.o In file included from listFaceSet.C:74: /home/sega/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude/createMesh.H: In function ‘int main(int, char**)’: /home/sega/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude/createMesh.H:2: error: ‘runTime’ was not declared in this scope /home/sega/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude/createMesh.H:4: error: ‘fvMesh’ is not a member of ‘Foam’ /home/sega/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude/createMesh.H:4: error: expected `;' before ‘mesh’ In file included from listFaceSet.C:75: /home/sega/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude/createTime.H:5: error: incomplete type ‘Foam::Time’ used in nested name specifier make: *** [Make/linux64GccDPOpt/listFaceSet.o] Fehler 1 Code:
listFaceSet f0
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!" |
|
Tags |
faceset |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] Problem converting fluent mesh | vinz | OpenFOAM Meshing & Mesh Conversion | 28 | October 12, 2015 06:37 |
[blockMesh] StitchMesh on two patches | anita | OpenFOAM Meshing & Mesh Conversion | 31 | April 4, 2013 11:51 |
[Commercial meshers] Converting a mesh with splitted cells using fluentMeshToFoam | jlpelerin | OpenFOAM Meshing & Mesh Conversion | 4 | April 25, 2011 16:56 |
[Commercial meshers] TGridFluent mesh with internal by prism layer and internal face for diagnostic | sponiar | OpenFOAM Meshing & Mesh Conversion | 2 | March 30, 2009 15:02 |
[Commercial meshers] FluentMesh conversion problem | waynezw0618 | OpenFOAM Meshing & Mesh Conversion | 12 | November 30, 2006 23:12 |