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

[OpenFOAM.org] OpenFOAM 9 compatible with Swak4FOAM

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes
  • 5 Post By gschaider
  • 1 Post By Severus
  • 1 Post By Tobermory
  • 1 Post By thiagopl

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 26, 2021, 09:28
Default OpenFOAM 9 compatible with Swak4FOAM
  #1
New Member
 
Tiziano Maffei
Join Date: Jun 2013
Location: Milan (Italy)
Posts: 11
Rep Power: 12
tmaffei is on a distinguished road
Dear all,

I have tried to install swak4foam with the new version of OpenFoam-9, with the following commands:

Code:
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam swak4Foam cd swak4Foam
hg update develop
./AllwmakeAll
I get the following error message:

Code:
OpenFOAM.org version 9
OpenFOAM.org version 9
Make/linux64GccDPInt64Opt/files:29: *** missing separator.  Stop.
OpenFOAM.org version 9
Make/linux64GccDPInt64Opt/files:29: *** missing separator.  Stop.
Parser library did not compile OK. No sense continuing as everything else depends on it

Requirements for Library not satisfied. I see no sense in going on
Check the README before you go on to ask. And search: Most likely your problem occurred to 5 other people before and has been solved on the MessageBoard
Have anyone faced a similar issue?

Thank you

Tiziano
tmaffei is offline   Reply With Quote

Old   August 8, 2021, 21:44
Default
  #2
Member
 
Join Date: Apr 2019
Location: India
Posts: 81
Rep Power: 7
Pavithra is on a distinguished road
Quote:
Originally Posted by tmaffei View Post
Dear all,

I have tried to install swak4foam with the new version of OpenFoam-9, with the following commands:

Code:
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam swak4Foam cd swak4Foam
hg update develop
./AllwmakeAll
I get the following error message:

Code:
OpenFOAM.org version 9
OpenFOAM.org version 9
Make/linux64GccDPInt64Opt/files:29: *** missing separator.  Stop.
OpenFOAM.org version 9
Make/linux64GccDPInt64Opt/files:29: *** missing separator.  Stop.
Parser library did not compile OK. No sense continuing as everything else depends on it

Requirements for Library not satisfied. I see no sense in going on
Check the README before you go on to ask. And search: Most likely your problem occurred to 5 other people before and has been solved on the MessageBoard
Have anyone faced a similar issue?

Thank you

Tiziano



Hi, Were you able to solve this problem. I am also facing exactly the same issue. Kindly, pls help if you have already resolved it.

Thank You.
Pavithra is offline   Reply With Quote

Old   September 6, 2021, 08:45
Default
  #3
New Member
 
Tiziano Maffei
Join Date: Jun 2013
Location: Milan (Italy)
Posts: 11
Rep Power: 12
tmaffei is on a distinguished road
Dear Pavithra,
no yet.

Have you figured out how to solve it?

Tiziano
tmaffei is offline   Reply With Quote

Old   September 7, 2021, 05:42
Default
  #4
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 668
Rep Power: 14
Tobermory will become famous soon enough
I have exactly the same problem. After an hour of hacking I have found that the version of wmake in v9 does not like header files (.H) in the source file list (swak4Foam/Libraries/swak4FoamParsers/Make/files) - it does not process their names correctly, and this ends up corrupting the sourcefile (swak4Foam/Libraries/swak4FoamParsers/Make/liux64GccDPInt32Opt/files) for make:

...
SOURCE += repositories/GlobalVariablesRepository.C

SOURCE += namedEnums/MeshInterpolationOrder.C
namedEnums/LogicalAccumulationNamedEnum.H
namedEnums/NumericAccumulationNamedEnum.H


SOURCE += ExpressionDriverWriter.C
...


That's the cause of that error. A simple fix seems to be to adjust the files entry for LogicalAccumulationNamedEnum and NumericAccumulationNamedEnum to use their source file intead of their header file. That removes the make error, but the compilation then crashes later on complaining that it cannot find TableFile.H, which is true ... this has been removed in v9!

Still working on it.
Tobermory is offline   Reply With Quote

Old   September 7, 2021, 09:35
Default
  #5
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Tobermory View Post
I have exactly the same problem. After an hour of hacking I have found that the version of wmake in v9 does not like header files (.H) in the source file list (swak4Foam/Libraries/swak4FoamParsers/Make/files) - it does not process their names correctly, and this ends up corrupting the sourcefile (swak4Foam/Libraries/swak4FoamParsers/Make/liux64GccDPInt32Opt/files) for make:

...
SOURCE += repositories/GlobalVariablesRepository.C

SOURCE += namedEnums/MeshInterpolationOrder.C
namedEnums/LogicalAccumulationNamedEnum.H
namedEnums/NumericAccumulationNamedEnum.H


SOURCE += ExpressionDriverWriter.C
...


That's the cause of that error. A simple fix seems to be to adjust the files entry for LogicalAccumulationNamedEnum and NumericAccumulationNamedEnum to use their source file intead of their header file. That removes the make error, but the compilation then crashes later on complaining that it cannot find TableFile.H, which is true ... this has been removed in v9!

Still working on it.

Sorry. OF9 is still a work-in-progress - currently the problem is that the Lagrangian code has been changed severely and I'll have to see how to change that without breaking support for other OpenFOAM-forks.The other problem is motivation: I (and all of our customers) don't use the Foundation-release. So I'm basically doing the OF9-port in my free time. Work on my public stuff is driven by three points: a) I need it b) a customer needs c) it interests me. For the past releases c) has been getting smaller for the Foundation release: lots of purely cosmetic changes that break code (just an example: renaming a public method from neighbPatch to nbrPatch. Admittedly the old name was not perfect. But so is the new one) and give the feeling that they don't want other people to base their work on their stuff. For that reason I usually recommend the ESI-Release of foam-extend. They are not in the habit of breaking things that work fine just because "it was not perfect the way we did it three years ago". If things get broken there it is usually for a reason (feature addition, fix,...)



Anyway: I will finish the port to OF9. I hope in September. For OF10 (or whatever it will be called) I don't promise anything. Possibly I'll disable all features that take me more than a couple of hours to port (in this case this would mean: no support for Lagrangian particles)


I know that this is not optimal for people who want to use swak4foam. In these cases I recommend using it with OF8 (one of the challenges currently is to not break support for that version - I usually recommend not changing OF-versions in the middle of a projects that's why I try make swak work with all versions from the last couple of years) or to go to OF2106 (that one is already supported) or foam-extend
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   September 7, 2021, 10:00
Default
  #6
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 668
Rep Power: 14
Tobermory will become famous soon enough
Many thanks Bernhard for taking the time to respond so fully - and totally understood; I share your frustration/irritation!

From my amateur attempts today, there seem to be a whole bunch of things to be changed (I got buried in trying to understand Function2 and interpolation2DTable, and then my brain/patience overheated), so I have parked it for now, and will stick with v8 .. and possibly try install on the ESI v2012 which I am running alongside v8.

Thanks again.
Tobermory is offline   Reply With Quote

Old   February 8, 2023, 06:35
Default
  #7
Member
 
Shravan
Join Date: Mar 2017
Posts: 60
Rep Power: 9
Severus is on a distinguished road
Hello,
I tried compiling swak4Foam with OpenFOAM 9 and it is now compatible.

If you experience problems with compilation (like the one mentioned by Tiziano Maffei), look at the answer by Bernhard Gschaider here.

For me, using the "hg update develop" command fixed that error.

Thanks
Tobermory likes this.
Severus is offline   Reply With Quote

Old   February 9, 2023, 03:21
Default
  #8
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 668
Rep Power: 14
Tobermory will become famous soon enough
I can confirm that it is working fine for me, as well, on OF10 - many thanks Bernhard for updating the port for all of the latest Foundation gyrations. You're a star.
Severus likes this.
Tobermory is offline   Reply With Quote

Old   February 29, 2024, 12:54
Default
  #9
Member
 
Thiago Parente Lima
Join Date: Sep 2011
Location: Diamantina, Brazil.
Posts: 62
Rep Power: 14
thiagopl is on a distinguished road
Hi all,

For future reference, I confirm that the following worked for me on OpenFOAM 10:
Code:
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam
cd swak4Foam
hg update develop
./AllwmakeAll
When trying to compile without the "hg update develop" command I got an error message. Now everything works fine.
Severus likes this.
__________________
Fields of interest: buoyantFoam, chtMultRegionFoam.
thiagopl 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
[swak4Foam] swak4foam for OpenFOAM 4.0 mnikku OpenFOAM Community Contributions 80 May 17, 2022 08:06
[swak4Foam] swak4foam openfoam 7 installation problem Andrea23 OpenFOAM Community Contributions 1 February 17, 2020 18:11
OpenFOAM course for beginners Jibran OpenFOAM Announcements from Other Sources 2 November 4, 2019 08:51
OpenFOAM 4.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 2 October 6, 2017 05:40
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 13:36


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