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, 03:55
Default swak4Foam
  #1
New Member
 
Sun
Join Date: Aug 2017
Posts: 4
Rep Power: 9
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 05:39.
PhD_Sun is offline   Reply With Quote

Old   February 16, 2024, 13:16
Default
  #2
Member
 
Shravan
Join Date: Mar 2017
Posts: 75
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, 10:50
Default
  #3
Member
 
Roland
Join Date: Mar 2009
Location: Netherlands
Posts: 93
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, 12:29
Default
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
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, 13:24
Default
  #5
Member
 
Roland
Join Date: Mar 2009
Location: Netherlands
Posts: 93
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, 02:49
Default problem solved
  #6
New Member
 
Sun
Join Date: Aug 2017
Posts: 4
Rep Power: 9
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, 09: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

Old   June 4, 2024, 01:10
Default
  #8
New Member
 
Andrew Arnold
Join Date: Apr 2024
Posts: 10
Rep Power: 2
instanton is on a distinguished road
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?

olesen - can one use OpenFOAM v2312 to create a spatially-varying boundary condition with expression handling?
instanton is offline   Reply With Quote

Old   June 10, 2024, 01:46
Default
  #9
New Member
 
Robert Baptist
Join Date: Jun 2024
Posts: 1
Rep Power: 0
baptist5 is on a distinguished road
Quote:
Originally Posted by plasmapotential View Post
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.
What steps did the user take to troubleshoot and resolve the issue, such as rolling back to an earlier version of the software and recompiling?
baptist5 is offline   Reply With Quote

Old   June 10, 2024, 08:12
Default
  #10
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by instanton View Post
olesen - can one use OpenFOAM v2312 to create a spatially-varying boundary condition with expression handling?

Any boundary condition that takes a PatchFunction1 has spatial handling and there is an expression PatchFunction1 too, which means for the most part you will never really need to the older expr boundary conditions anymore.
olesen is offline   Reply With Quote

Old   June 10, 2024, 08:14
Default
  #11
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by baptist5 View Post
What steps did the user take to troubleshoot and resolve the issue, such as rolling back to an earlier version of the software and recompiling?

If enough people have interest and can get together some support hours/funding, why not see about getting cloud expressions integrated directly?
olesen 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 24, 2021 00:42
[swak4Foam] swak4foam 0.4.2, groovyBC parallel diverging, openfoam extend 4.0 Kombinator OpenFOAM Community Contributions 4 November 24, 2020 09:42
source term in near wall cell rajcfd OpenFOAM Pre-Processing 5 February 1, 2016 11:31
[swak4Foam] Install swak4Foam on OpenFOAM1.7.1 on Ubuntu 13.04 kobayashi OpenFOAM Community Contributions 2 January 5, 2014 18:33
[swak4Foam] fails in parallel with -otherTime? Phicau OpenFOAM Community Contributions 3 June 26, 2013 14:00


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