CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   How to extract the data of all cells in the domain (https://www.cfd-online.com/Forums/openfoam-post-processing/226785-how-extract-data-all-cells-domain.html)

zhangyan November 21, 2020 13:20

Quote:

Originally Posted by Bodo1993 (Post 788293)
Hi zhangyan,
I am wondering if foam2Columns works for OpenFOAM v6. I tried to compile the code with wmake but I got the below error.
Code:

Making dependency list for source file foam2Columns.C
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -I/opt/openfoam6/src/finiteVolume/lnInclude -I/opt/openfoam6/src/meshTools/lnInclude -I/opt/openfoam6/src/sampling/lnInclude -I/opt/openfoam6/src/lagrangian/basic/lnInclude -IlnInclude -I. -I/opt/openfoam6/src/OpenFOAM/lnInclude -I/opt/openfoam6/src/OSspecific/POSIX/lnInclude  -fPIC -c foam2Columns.C -o Make/linux64GccDPInt32Opt/foam2Columns.o
foam2Columns.C: In function ‘int main(int, char**)’:
foam2Columns.C:109:21: error: ‘fileType’ has not been declared
                    fileType::directory
                    ^~~~~~~~
/opt/openfoam6/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/foam2Columns.o' failed
make: *** [Make/linux64GccDPInt32Opt/foam2Columns.o] Error 1



Hi Bodo,
You may try to replace
Code:

fileType::directory
with
Code:

fileName::Type::DIRECTORY
.

Bodo1993 November 23, 2020 16:53

Hello zhangyan,
Thanks a lot. It works now.
I have noticed that you also contributed to "conditionalAverage", I am wondering if I can ask you about it here.
Looking forward to hearing from you.

zhangyan November 25, 2020 07:49

Quote:

Originally Posted by Bodo1993 (Post 788620)
Hello zhangyan,
Thanks a lot. It works now.
I have noticed that you also contributed to "conditionalAverage", I am wondering if I can ask you about it here.
Looking forward to hearing from you.

We are open to questions. Please go to the right place.

Bodo1993 November 26, 2020 12:25

Quote:

Originally Posted by zhangyan (Post 788813)
We are open to questions. Please go to the right place.

Thanks. I opened a thread here: https://www.cfd-online.com/Forums/op...tml#post788977

Looking forward to hearing from you.


All times are GMT -4. The time now is 20:32.