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

[Other] Compiling Wind Driven Rain solver error OF2.4 to OF5.0

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By alexeym

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 1, 2017, 10:42
Default Compiling Wind Driven Rain solver error OF2.4 to OF5.0
  #1
New Member
 
Olivier Dambron
Join Date: Mar 2017
Posts: 22
Rep Power: 9
olivierdambron is on a distinguished road
Hi guys,

I am trying to compile a solver for WindDrivenRainFoam that I found here: http://www.carmeliet.ethz.ch/researc...nrainfoam.html

The solver was written for OpenFOAM 2.2.x/2.3.x and when I try to compile it using 'wmake' in OpenFOAM 5.0 or 5.x I get the following error:

~/OpenFOAM/ODB-5.0/windDrivenRainFoam/windDrivenRainFoam$ wmake
Making dependency list for source file windDrivenRainFoam.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 -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam5/src/finiteVolume/lnInclude -I/opt/openfoam5/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam5/src/OpenFOAM/lnInclude -I/opt/openfoam5/src/OSspecific/POSIX/lnInclude -fPIC -c windDrivenRainFoam.C -o Make/linux64GccDPInt32Opt/windDrivenRainFoam.o
In file included from windDrivenRainFoam.C:138:0:
calculateCatchRatio.H: In function ‘int main(int, char**)’:
calculateCatchRatio.H:19:8: error: ‘GeometricBoundaryField’ in ‘Foam::surfaceScalarField {aka class Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>}’ does not name a type
const surfaceScalarField::GeometricBoundaryField& patchSurfaceScr = surfaceScr.boundaryField();
^
calculateCatchRatio.H:36:37: error: ‘patchSurfaceScr’ was not declared in this scope
scrtemp.boundaryField()[patchi] = patchSurfaceScr[patchi];
^
make: *** [Make/linux64GccDPInt32Opt/windDrivenRainFoam.o] Error 1


Would anyone be able to help me adapt the files for new versions of OF?

Kind regards,
Olivier
olivierdambron is offline   Reply With Quote

Old   December 3, 2017, 16:30
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

In 5.x surfaceScalarField::GeometricBoundaryField is just surfaceScalarField::Boundary.

You can take a look at my attempt to adapt solver to 5.x API: https://github.com/mrklein/windDrivenRain.
wyldckat likes this.
alexeym is offline   Reply With Quote

Old   December 3, 2017, 16:59
Default
  #3
New Member
 
Olivier Dambron
Join Date: Mar 2017
Posts: 22
Rep Power: 9
olivierdambron is on a distinguished road
Hi Alex,
Many thanks for this. installed your update nicely.

Am trying to update the tutorial files for testing.
olivierdambron is offline   Reply With Quote

Old   December 4, 2017, 16:50
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

I have added cubicBuilding adapted for 5.x conventions (and several corrections to solver). Solver runs, yet I do not know if it produces meaningful results.
alexeym is offline   Reply With Quote

Old   January 2, 2018, 10:27
Default
  #5
New Member
 
Olivier Dambron
Join Date: Mar 2017
Posts: 22
Rep Power: 9
olivierdambron is on a distinguished road
Hi Alexey,

Just wanted to thank you for this one, am still running tests. Will post later on my findings.

Best wishes,
Olivier
olivierdambron is offline   Reply With Quote

Old   January 3, 2018, 09:23
Default
  #6
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

You are welcome. I fact, after looking at the papers cited at the code page, I have doubts it was implemented correctly (even for version 2.4.0). For example, test cases, which come with the code are definitely differ from the cubic building case, described in the papers.
alexeym is offline   Reply With Quote

Reply


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
PEMFC model with FLUENT brahimchoice FLUENT 22 April 19, 2020 15:44
wmake compiling new solver mksca OpenFOAM Programming & Development 14 June 22, 2018 06:29
Working directory via command line Luiz CFX 4 March 6, 2011 20:02
Compiling new Solver with wmake lin123 OpenFOAM 3 April 13, 2010 14:18
compressible two phase flow in CFX4.4 youngan CFX 0 July 1, 2003 23:32


All times are GMT -4. The time now is 12:52.