CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [snappyHexMesh] How to use faceList instead of faceCompactList (https://www.cfd-online.com/Forums/openfoam-meshing/93142-how-use-facelist-instead-facecompactlist.html)

BTom October 6, 2011 04:47

How to use faceList instead of faceCompactList
 
Hi!

The new snappyHexMesh includes feature edge handling which may significantly improve the quality of your mesh.
http://www.openfoam.com/news/snappyH...ature-edge.php
Now my problem is that I need to perform my calculations on an older OpenFoam-Version 1.7.1 where this feature is not supported, yet. So I tried to create the mesh with version 2.0.0 and then use the mesh in Version 1.7.1. Unfortunately the new version 2.0.0 stores faces in a compact list "faceCompactList" which is not recognized in 1.7.1 where only "faceList" is known.

So my question is:

Does anybody know, how to deactivate the usage of faceCompactList and use faceList instead, so I can use the mesh in the older version 1.7.1???
Or maybe you have another idea to overcome this problem....

Thanks a lot

BTom

aliqasemi February 14, 2012 16:57

utility to convert from compactFaceList to faceList
 
1 Attachment(s)
It is easy to write the code, see the attached, if you havn't done this already

ajelahe74 August 4, 2021 17:00

Quote:

Originally Posted by aliqasemi (Post 344462)
It is easy to write the code, see the attached, if you havn't done this already

Hello! I'm very new to foam-extended. I'm trying to work there with a mesh I did in OpenFOAM v8. I see the .tar folder but I'm not sure how to use it, how to set it up in foam-extend 4.0 to get the utility to work.



Any help would be appreciated.

saladbowl April 12, 2022 22:02

Make sure your OpenFOAM environment variables are set. Download the tar.gz file and copy it to $WM_PROJECT_USER_DIR. Untar the file and edit Make/files, changing

Code:

EXE = $(I_DIR)/bin/compactFaceToFace
to

Code:

EXE = $(FOAM_USER_APPBIN)/compactFaceToFace
Run wmake in the compactFaceToFace folder. It may be necessary to add additional libraries to the Make/options file. In my case it was.

Code:

EXE_INC = \
    -I$(LIB_SRC)/finiteVolume/lnInclude \
    -I$(LIB_SRC)/meshTools/lnInclude

EXE_LIBS = \
    -lfiniteVolume \
    -lmeshTools

After compilation, you should be able to run the app compactFaceToFace from within the desired case directory.

Neb January 31, 2023 09:56

Hi, I have the same problem on foam-extend 4.1 e solids4Foam 2.0. When I go to run make I get these errors and it doesn't compile. Can you help me?


Making dependency list for source file compactFaceToFace.C
SOURCE=compactFaceToFace.C ; g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I/home/morgana2021/foam/foam-extend-4.1/src/finiteVolume/lnInclude -I/home/morgana2021/foam/foam-extend-4.1/src/meshTools/lnInclude -IlnInclude -I. -I/home/morgana2021/foam/foam-extend-4.1/src/foam/lnInclude -I/home/morgana2021/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/compactFaceToFace.o
compactFaceToFace.C: In function ‘int main(int, char**)’:
compactFaceToFace.C:67:6: error: ‘faceCompactIOList’ was not declared in this scope
faceCompactIOList facesCompact
^~~~~~~~~~~~~~~~~
compactFaceToFace.C:95:9: error: ‘facesCompact’ was not declared in this scope
facesCompact
^~~~~~~~~~~~
make[1]: *** [compactFaceToFace.dep:730: Make/linux64GccDPInt32Opt/compactFaceToFace.o] Error 1
make: *** [makefile:9: wmake] Error 2


All times are GMT -4. The time now is 09:42.