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

[OpenFOAM.com] swak4Foam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Severus

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 15, 2024, 02:55
Default swak4Foam
  #1
New Member
 
Sun
Join Date: Aug 2017
Posts: 4
Rep Power: 8
PhD_Sun is on a distinguished road
Hi
I am using openFoamv2312. I am trying to compile swak4Foam and received the following error
g++ -std=c++14 -m64 -pthread -DOPENFOAM=2312 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -I../swak4FoamParsers/lnInclude -I../simpleFunctionObjects/lnInclude -I../simpleCloudFunctionObjects/lnInclude -I../swakLagrangianParser/lnInclude -I/usr/lib/openfoam/openfoam2312/src/finiteVolume/lnInclude -I/usr/lib/openfoam/openfoam2312/src/meshTools/lnInclude -I/usr/lib/openfoam/openfoam2312/src/surfMesh/lnInclude -I/usr/lib/openfoam/openfoam2312/src/sampling/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/pdfs/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/specie/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/basic/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/liquids/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/liquidMixture/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/solids/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/solidMixture/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/reactionThermo/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/radiation/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/SLGThermo/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/properties/solidProperties/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/thermophysicalProperties/lnInclude -I/usr/lib/openfoam/openfoam2312/src/regionModels/regionModel/lnInclude -I/usr/lib/openfoam/openfoam2312/src/regionModels/surfaceFilmModels/lnInclude -I/usr/lib/openfoam/openfoam2312/src/finiteArea/lnInclude -I/usr/lib/openfoam/openfoam2312/src/faOptions/lnInclude -I/usr/lib/openfoam/openfoam2312/src/regionFaModels/lnInclude -I/usr/lib/openfoam/openfoam2312/src/lagrangian/basic/lnInclude -I/usr/lib/openfoam/openfoam2312/src/transportModels/compressible/lnInclude -I/usr/lib/openfoam/openfoam2312/src/lagrangian/intermediate/lnInclude -I/usr/lib/openfoam/openfoam2312/src/lagrangian/solidParticle/lnInclude -iquote. -IlnInclude -I/usr/lib/openfoam/openfoam2312/src/OpenFOAM/lnInclude -I/usr/lib/openfoam/openfoam2312/src/OSspecific/POSIX/lnInclude -fPIC -shared -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/EliminateBySwakExpressionInstances.o -L/usr/lib/openfoam/openfoam2312/platforms/linux64GccDPInt32Opt/lib \ -L/home/sun/OpenFOAM/sun-v2312/platforms/linux64GccDPInt32Opt/lib -lswakLagrangianParser -lswak4FoamParsers -lfiniteVolume -lmeshTools -lsampling -llagrangian -llagrangianIntermediate -lradiationModels -lsolidParticle -o /home/sun/OpenFOAM/sun-v2312/platforms/linux64GccDPInt32Opt/lib/libswakCloudFunctionObjects.so /usr/bin/ld: cannot find -lswakLagrangianParser collect2: error: ld returned 1 exit status make: *** [/usr/lib/openfoam/openfoam2312/wmake/makefiles/general:210: /home/sun/OpenFOAM/sun-v2312/platforms/linux64GccDPInt32Opt/lib/libswakCloudFunctionObjects.so] Error 1 Requirements for Library not satisfied. I see no sense in going on

Please help me to fix this problem
thank you

Last edited by PhD_Sun; February 16, 2024 at 04:39.
PhD_Sun is offline   Reply With Quote

Old   February 16, 2024, 12:16
Default
  #2
Member
 
Shravan
Join Date: Mar 2017
Posts: 63
Rep Power: 9
Severus is on a distinguished road
Hello,
I also see that you have posted here:
cannot find -lswakLagrangianParser

I also got a similar issue last year with swak4FoamParsers.

You use a recent release, so first check if swak4Foam is compatible with the new release.

Second, when I had this similar issue and Bernhard Gschaider gave me the following inputs (that could have caused such problems)
Error installing swak4Foam
This you may be give you some more idea about the issue.

In my case, in order to resolve it, I used the following command and then recompiled
HTML Code:
hg update develop
It finally worked (for v9)

So, since you also use a recent release I would suggest first to try this command and compile and check.
As it is mentioned by Bernard here (specifically for new releases):
https://openfoamwiki.net/index.php/Contrib/swak4Foam

Thanks
PhD_Sun likes this.
Severus is offline   Reply With Quote

Old   February 19, 2024, 09:50
Default
  #3
Member
 
Roland
Join Date: Mar 2009
Location: Netherlands
Posts: 92
Rep Power: 17
sylvester is on a distinguished road
I have the same problem.

Quote:
hg update develop
did not fix it me (v2312).
sylvester is offline   Reply With Quote

Old   February 19, 2024, 11:29
Default
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,695
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by sylvester View Post
I have the same problem.

did not fix it me (v2312).

I'm curious - which parts of swak4foam do you need that aren't covered by the built-in OpenFOAM expressions handling?
olesen is offline   Reply With Quote

Old   February 19, 2024, 12:24
Default
  #5
Member
 
Roland
Join Date: Mar 2009
Location: Netherlands
Posts: 92
Rep Power: 17
sylvester is on a distinguished road
Hi Mark, probably what I was trying to do with funkySetFields is covered by built-in OpenFOAM functionality. But, it is just easier to keep using our older workflow than to convert to a newer setup.

Quote:
Originally Posted by olesen View Post
I'm curious - which parts of swak4foam do you need that aren't covered by the built-in OpenFOAM expressions handling?
sylvester is offline   Reply With Quote

Old   February 21, 2024, 01:49
Default problem solved
  #6
New Member
 
Sun
Join Date: Aug 2017
Posts: 4
Rep Power: 8
PhD_Sun is on a distinguished road
thank you all. I tried hg update develop, but it did not work for me either. However, I found out that swak4Foam works perfectly well with openFoamv2012 and that is fine for me. I suppose there is some compatibility issue in OpenFoam2312.
PhD_Sun is offline   Reply With Quote

Old   March 20, 2024, 08:58
Default
  #7
New Member
 
Join Date: Mar 2020
Posts: 1
Rep Power: 0
plasmapotential is on a distinguished road
I had a similar problem with v2312. specifically swak4foam build failed when looking for -swakLagrangianParser.so and gave this error: usr/bin/ld: cannot find -lswakLagrangianParser.so. I rolled back to OF v2306 and recompiled and did not get the error. so something in v2312 changed that led to this shared object not being created or located in the same location.
plasmapotential 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
OpenFoam Case crashes using swak4Foam Miguel.Mendez Main CFD Forum 2 March 23, 2021 23:42
[swak4Foam] swak4foam 0.4.2, groovyBC parallel diverging, openfoam extend 4.0 Kombinator OpenFOAM Community Contributions 4 November 24, 2020 08:42
source term in near wall cell rajcfd OpenFOAM Pre-Processing 5 February 1, 2016 10:31
[swak4Foam] Install swak4Foam on OpenFOAM1.7.1 on Ubuntu 13.04 kobayashi OpenFOAM Community Contributions 2 January 5, 2014 17:33
[swak4Foam] fails in parallel with -otherTime? Phicau OpenFOAM Community Contributions 3 June 26, 2013 13:00


All times are GMT -4. The time now is 16:06.