CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] How to use faceList instead of faceCompactList

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes
  • 1 Post By BTom
  • 7 Post By aliqasemi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 6, 2011, 05:47
Post How to use faceList instead of faceCompactList
  #1
New Member
 
Join Date: Oct 2011
Posts: 1
Rep Power: 0
BTom is on a distinguished road
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
amuzeshi likes this.
BTom is offline   Reply With Quote

Old   February 14, 2012, 17:57
Default utility to convert from compactFaceList to faceList
  #2
New Member
 
Ali Q Raeini
Join Date: Feb 2010
Posts: 24
Rep Power: 16
aliqasemi is on a distinguished road
It is easy to write the code, see the attached, if you havn't done this already
Attached Files
File Type: gz compactFaceToFace.tar.gz (1.3 KB, 471 views)
aliqasemi is offline   Reply With Quote

Old   August 4, 2021, 18:00
Default
  #3
New Member
 
Alejandra Hernández Escobar
Join Date: Jun 2021
Posts: 4
Rep Power: 5
ajelahe74 is on a distinguished road
Quote:
Originally Posted by aliqasemi View Post
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.
ajelahe74 is offline   Reply With Quote

Old   April 12, 2022, 23:02
Default
  #4
New Member
 
Juan Salazar
Join Date: Jun 2019
Posts: 19
Rep Power: 7
saladbowl is on a distinguished road
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.

Last edited by saladbowl; April 12, 2022 at 23:03. Reason: Edit for clarity
saladbowl is offline   Reply With Quote

Old   January 31, 2023, 10:56
Default
  #5
Neb
Member
 
Join Date: Mar 2020
Posts: 66
Rep Power: 6
Neb is on a distinguished road
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
Neb is offline   Reply With Quote

Old   May 6, 2024, 07:34
Default
  #6
New Member
 
Erik Nijkamp
Join Date: Dec 2023
Posts: 5
Rep Power: 2
ErikNij is on a distinguished road
Dear Neb, (and anyone else)


I think that you need to put this function in an OpenFOAM instillation, and not a foam-extend . The error message that you are getting is saying that the class facesCompact is not known to the compiler. facesCompact does not exist in foam-extend 4.0 / 4.1, thus you must install this tool as a part of normal OpenFOAM.


Best,


Erik
ErikNij is offline   Reply With Quote

Reply

Tags
facecompactlist, facelist, feature edge handling


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a pointMesh with pointField and faceList Thilo OpenFOAM Programming & Development 0 July 19, 2012 07:36
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 09:19


All times are GMT -4. The time now is 23:36.