CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

How to extract the data of all cells in the domain

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 21, 2020, 14:20
Default
  #21
Senior Member
 
zhangyan's Avatar
 
Yan Zhang
Join Date: May 2014
Posts: 116
Rep Power: 8
zhangyan is on a distinguished road
Quote:
Originally Posted by Bodo1993 View Post
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
.
__________________
https://openfoam.top
zhangyan is offline   Reply With Quote

Old   November 23, 2020, 17:53
Default
  #22
Senior Member
 
Join Date: Jul 2019
Posts: 128
Rep Power: 3
Bodo1993 is on a distinguished road
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.
Bodo1993 is offline   Reply With Quote

Old   November 25, 2020, 08:49
Default
  #23
Senior Member
 
zhangyan's Avatar
 
Yan Zhang
Join Date: May 2014
Posts: 116
Rep Power: 8
zhangyan is on a distinguished road
Quote:
Originally Posted by Bodo1993 View Post
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.
__________________
https://openfoam.top
zhangyan is offline   Reply With Quote

Old   November 26, 2020, 13:25
Default
  #24
Senior Member
 
Join Date: Jul 2019
Posts: 128
Rep Power: 3
Bodo1993 is on a distinguished road
Quote:
Originally Posted by zhangyan View Post
We are open to questions. Please go to the right place.
Thanks. I opened a thread here: conditionalAverage Function Object

Looking forward to hearing from you.
Bodo1993 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Foam::error::PrintStack almir OpenFOAM Running, Solving & CFD 90 October 3, 2019 08:01
[snappyHexMesh] snappyHexMesh sticking point natty_king OpenFOAM Meshing & Mesh Conversion 10 August 5, 2019 20:18
cellZone not taking all the cells inside rahulksoni OpenFOAM Running, Solving & CFD 6 January 25, 2019 01:11
[ICEM] Error in mesh writing helios ANSYS Meshing & Geometry 19 January 8, 2019 11:56
[snappyHexMesh] external flow with snappyHexMesh chelvistero OpenFOAM Meshing & Mesh Conversion 11 January 15, 2010 20:43


All times are GMT -4. The time now is 10:51.